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 C7EE4BA55 for ; Fri, 3 May 2024 17:46:06 +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=1714758366; cv=none; b=YPUvl5tY6QeRWeSEEqvsCX9+VNfz8mDwoiIGq30RLYJHPT56pXL8Jq9Kyjg27nd+qfnEfAPHr48xsNVU0NH4b9d0ri/RMqHjYDYBCqdJK0eY1qxgCe4JLLI7Behw/HqATrMWlrNcsw+QeBzgEwZKJKGVdy0pl9OaYBVD6POnjRs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714758366; c=relaxed/simple; bh=MUqZ3Oyo2SyxagLCpGeXf7lggxtgRW6AsmHCznWdCMc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h4mHjZorF62xuqbwAjnrOBYxSGqQVIaPLTld4T6fqnPpFRK0d4X4aEvdPuR+7bJ07DBYm5bCyCllXebNZ3cqHiGbCxDSqHeGeY1DmQylXzHMNhwzrk/SubPdEQQ+9m2Ygq1GRAdviR3IG07buaKKp5X+/tv18O8iytTr8kvdtjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jUKclvMX; 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="jUKclvMX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FF56C116B1; Fri, 3 May 2024 17:46:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714758366; bh=MUqZ3Oyo2SyxagLCpGeXf7lggxtgRW6AsmHCznWdCMc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jUKclvMXoKCTS3Vgbmt+JxGc0NTOFAUpBm6sb8Gk1d2xqx1JgbGDHBucV3ewIOF42 EuIi4H1Cy14nzg7D+UfLNGXk4iwrSITRQUNEbLuWXBTY8FV1D4kWMtuu14tHNp5Mbe EaWGwggrqD/i6s8UEU5xFSTWbEdP3wMDamHJ0t3A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48697: nvmet: fix a use-after-free Date: Fri, 3 May 2024 19:45:53 +0200 Message-ID: <2024050348-CVE-2022-48697-1df4@gregkh> X-Mailer: git-send-email 2.45.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=3109; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MUqZ3Oyo2SyxagLCpGeXf7lggxtgRW6AsmHCznWdCMc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmmSmdWOxUtPJVm9UrAvcL8Rn/856zNChtmNr1jOlyiz FUg0SHYEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM56cyw4GztnLu88xnZMpb+ bey8+u2Uy7w2H4b5WZOmswlFPKi6UD7xWfmyv9LWRpNmAAA= 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: nvmet: fix a use-after-free Fix the following use-after-free complaint triggered by blktests nvme/004: BUG: KASAN: user-memory-access in blk_mq_complete_request_remote+0xac/0x350 Read of size 4 at addr 0000607bd1835943 by task kworker/13:1/460 Workqueue: nvmet-wq nvme_loop_execute_work [nvme_loop] Call Trace: show_stack+0x52/0x58 dump_stack_lvl+0x49/0x5e print_report.cold+0x36/0x1e2 kasan_report+0xb9/0xf0 __asan_load4+0x6b/0x80 blk_mq_complete_request_remote+0xac/0x350 nvme_loop_queue_response+0x1df/0x275 [nvme_loop] __nvmet_req_complete+0x132/0x4f0 [nvmet] nvmet_req_complete+0x15/0x40 [nvmet] nvmet_execute_io_connect+0x18a/0x1f0 [nvmet] nvme_loop_execute_work+0x20/0x30 [nvme_loop] process_one_work+0x56e/0xa70 worker_thread+0x2d1/0x640 kthread+0x183/0x1c0 ret_from_fork+0x1f/0x30 The Linux kernel CVE team has assigned CVE-2022-48697 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit a07b4970f464 and fixed in 4.19.260 with commit 17f121ca3ec6 Issue introduced in 4.8 with commit a07b4970f464 and fixed in 5.4.213 with commit 8d66989b5f7b Issue introduced in 4.8 with commit a07b4970f464 and fixed in 5.10.143 with commit be01f1c98875 Issue introduced in 4.8 with commit a07b4970f464 and fixed in 5.15.68 with commit ebf46da50beb Issue introduced in 4.8 with commit a07b4970f464 and fixed in 5.19.9 with commit 4484ce97a781 Issue introduced in 4.8 with commit a07b4970f464 and fixed in 6.0 with commit 6a02a61e81c2 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-48697 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/target/core.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/17f121ca3ec6be0fb32d77c7f65362934a38cc8e https://git.kernel.org/stable/c/8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717 https://git.kernel.org/stable/c/be01f1c988757b95f11f090a9f491365670a522b https://git.kernel.org/stable/c/ebf46da50beb78066674354ad650606a467e33fa https://git.kernel.org/stable/c/4484ce97a78171668c402e0c45db7f760aea8060 https://git.kernel.org/stable/c/6a02a61e81c231cc5c680c5dbf8665275147ac52