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 C2ED9145B2D for ; Sat, 17 Aug 2024 09:11:14 +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=1723885874; cv=none; b=U9iadj4zfAAxmY+0A7OvdyeeJYnCZQEYNGGGe0a0cUeKKFsoQEyRDSuy0z33irHouHn7Lk+qdZVrU76xkfBFOL5xMFov2PZTEoj2u/FbhYtUvEIJCTAc310u7g8kFoT7A+IaPdJRM5ZHesx/ej33U5g0TwdXRDmJi9W/CfEPffQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723885874; c=relaxed/simple; bh=Qkd4uDsn6Zn9ROK+oGpot0pP7xj5rLdLS5yRFHzwd4w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d7+HDYEI4dMEAXXDcPQBZCc7SNpi2LX+h6HxPnahkyqCukbLBjD740z+0NNEZzQ/FFT0i7vB0Zz6uZOOj1LBnxElyVGLa2TZ/HBrFW2j5vKNYhHaNf+TJZyYcJ4iTjSUqzobpmI72AuOmvS+4uUqmao98w3AJVGDm+NoNrwnDug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l8MBWqXR; 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="l8MBWqXR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9948C116B1; Sat, 17 Aug 2024 09:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723885874; bh=Qkd4uDsn6Zn9ROK+oGpot0pP7xj5rLdLS5yRFHzwd4w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=l8MBWqXR130vrumsx0EhspoGKh8DuXRmlLs28fV12ymg0KyfRrhYUCn4oOIIiWyAD CqeULQbcug28O8iA+Smgym8sNLzx0c8pusVfQPVN3Aode+4l8Nk3EBZLgiS3EKAabl +JY+8xKe6GP6bSE5fJknKykLD6gDuxrNv1aGSABY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42276: nvme-pci: add missing condition check for existence of mapped data Date: Sat, 17 Aug 2024 11:09:41 +0200 Message-ID: <2024081741-CVE-2024-42276-cb0a@gregkh> X-Mailer: git-send-email 2.46.0 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=2145; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Qkd4uDsn6Zn9ROK+oGpot0pP7xj5rLdLS5yRFHzwd4w=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHMq6uur2ImeEWP2Pdsyl3/83d+YH9YNnhgxrP1X5MP vL4i7lleEcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMJNqEYcGZWes7Vjyz52H4 8fdH0MyyNyIZdZ4Mc3hiJ75P2r5th4Ejg8esHR/6H89dYg8A 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: nvme-pci: add missing condition check for existence of mapped data nvme_map_data() is called when request has physical segments, hence the nvme_unmap_data() should have same condition to avoid dereference. The Linux kernel CVE team has assigned CVE-2024-42276 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 4aedb705437f and fixed in 6.1.103 with commit d135c3352f7c Issue introduced in 5.2 with commit 4aedb705437f and fixed in 6.6.44 with commit 77848b379e9f Issue introduced in 5.2 with commit 4aedb705437f and fixed in 6.10.3 with commit 70100fe72184 Issue introduced in 5.2 with commit 4aedb705437f and fixed in 6.11-rc1 with commit c31fad147038 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-2024-42276 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/nvme/host/pci.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/d135c3352f7c947a922da93c8e763ee6bc208b64 https://git.kernel.org/stable/c/77848b379e9f85a08048a2c8b3b4a7e8396f5f83 https://git.kernel.org/stable/c/70100fe721840bf6d8e5abd25b8bffe4d2e049b7 https://git.kernel.org/stable/c/c31fad1470389666ac7169fe43aa65bf5b7e2cfd