From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51DB221858D for ; Wed, 26 Feb 2025 02:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536085; cv=none; b=huw3TdekMQBRXC34Wfgp5t+dngsHOiYvUSP7d+W7tC41b+h19WckD3eitGYUuod/65qND/euIB2Cd7VEKL5OX0HKnw1TKTVDUPswWCC9D9SCgMFfHSajH1JH+rwq8KuOLLeUxq2+dhHaYx6hVihhKgBcrHOifhOkpTy0vZ5Qel0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536085; c=relaxed/simple; bh=qA58TJwzGVkfQtkphQUnbNOU3Mf4X3zswJQE3dA38j0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a/PuS+xNUXfK36c28LOslIBgZz+H+GUeL6RPdyPSXT5/ZzNvkHwpCmQOxb7vbRpNHoyvDX2aT/mHnWBOYoIx15lISQHD41huvKfAPD52salQK3WYs2FDJLVlcz9XVC32hvGpjRRxZxhYrK8PQRZmc5lc+ylZDc6xAuJ7or4Pyao= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xF8M5/ny; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xF8M5/ny" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28960C4CEDD; Wed, 26 Feb 2025 02:14:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536085; bh=qA58TJwzGVkfQtkphQUnbNOU3Mf4X3zswJQE3dA38j0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xF8M5/nyl5Zlp7RZ1wsYIPFlF480/Ch5iS4t6WgvLi/UBbl1/L4DEHsuHbf9Y8yLr OfVK/5l0oypPk856JmOVAfpZUUc45rmqbKS6r/tWDsLk1MUgdaYWu9MuXwE/tftFMq S1oacjaGbRNf/9m5f38ecdWX8iwGHfF0VtcyiMn0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49422: dmaengine: idxd: Fix the error handling path in idxd_cdev_register() Date: Wed, 26 Feb 2025 03:11:36 +0100 Message-ID: <2025022654-CVE-2022-49422-b047@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2600; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qA58TJwzGVkfQtkphQUnbNOU3Mf4X3zswJQE3dA38j0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yj9N75hZWr4jdydbtZRy6vtA47UuZ9IuNWx2VFS61 O9vKW/WEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMJP8KwoJ9pT+LS9EORz8/z lqemfXlrr6WwlGHBkbL+pm2TxF5t0Z9zR7644/O30DIvAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: dmaengine: idxd: Fix the error handling path in idxd_cdev_register() If a call to alloc_chrdev_region() fails, the already allocated resources are leaking. Add the needed error handling path to fix the leak. The Linux kernel CVE team has assigned CVE-2022-49422 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 42d279f9137ab7d5503836baec2739284b278d8f and fixed in 5.10.121 with commit 6073af78156b8c3fc1198f8bcc190b7ac3ac0143 Issue introduced in 5.6 with commit 42d279f9137ab7d5503836baec2739284b278d8f and fixed in 5.15.46 with commit b3c7b5d08e9d5b2ff31c03078c00ecf11042419f Issue introduced in 5.6 with commit 42d279f9137ab7d5503836baec2739284b278d8f and fixed in 5.17.14 with commit 5e88561eceb34ae3f88451c2b8e30fe403484189 Issue introduced in 5.6 with commit 42d279f9137ab7d5503836baec2739284b278d8f and fixed in 5.18.3 with commit c308a2e711a52a47f4b45e7add2b5200169e429a Issue introduced in 5.6 with commit 42d279f9137ab7d5503836baec2739284b278d8f and fixed in 5.19 with commit aab08c1aac01097815fbcf10fce7021d2396a31f Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-49422 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/dma/idxd/cdev.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/6073af78156b8c3fc1198f8bcc190b7ac3ac0143 https://git.kernel.org/stable/c/b3c7b5d08e9d5b2ff31c03078c00ecf11042419f https://git.kernel.org/stable/c/5e88561eceb34ae3f88451c2b8e30fe403484189 https://git.kernel.org/stable/c/c308a2e711a52a47f4b45e7add2b5200169e429a https://git.kernel.org/stable/c/aab08c1aac01097815fbcf10fce7021d2396a31f