{"id":"CVE-2022-48697","state":"PUBLISHED","title":"nvmet: fix a use-after-free","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: fix a use-after-free\n\nFix the following use-after-free complaint triggered by blktests nvme/004:\n\nBUG: KASAN: user-memory-access in blk_mq_complete_request_remote+0xac/0x350\nRead of size 4 at addr 0000607bd1835943 by task kworker/13:1/460\nWorkqueue: nvmet-wq nvme_loop_execute_work [nvme_loop]\nCall Trace:\n show_stack+0x52/0x58\n dump_stack_lvl+0x49/0x5e\n print_report.cold+0x36/0x1e2\n kasan_report+0xb9/0xf0\n __asan_load4+0x6b/0x80\n blk_mq_complete_request_remote+0xac/0x350\n nvme_loop_queue_response+0x1df/0x275 [nvme_loop]\n __nvmet_req_complete+0x132/0x4f0 [nvmet]\n nvmet_req_complete+0x15/0x40 [nvmet]\n nvmet_execute_io_connect+0x18a/0x1f0 [nvmet]\n nvme_loop_execute_work+0x20/0x30 [nvme_loop]\n process_one_work+0x56e/0xa70\n worker_thread+0x2d1/0x640\n kthread+0x183/0x1c0\n ret_from_fork+0x1f/0x30","publishedAt":"2024-05-03T15:10:30.963Z","updatedAt":"2026-08-05T08:51:50.506Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a07b4970f464f13640e28e16dad6cfa33647cc99","status":"affected","lessThan":"17f121ca3ec6be0fb32d77c7f65362934a38cc8e","versionType":"git"},{"version":"a07b4970f464f13640e28e16dad6cfa33647cc99","status":"affected","lessThan":"8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717","versionType":"git"},{"version":"a07b4970f464f13640e28e16dad6cfa33647cc99","status":"affected","lessThan":"be01f1c988757b95f11f090a9f491365670a522b","versionType":"git"},{"version":"a07b4970f464f13640e28e16dad6cfa33647cc99","status":"affected","lessThan":"ebf46da50beb78066674354ad650606a467e33fa","versionType":"git"},{"version":"a07b4970f464f13640e28e16dad6cfa33647cc99","status":"affected","lessThan":"4484ce97a78171668c402e0c45db7f760aea8060","versionType":"git"},{"version":"a07b4970f464f13640e28e16dad6cfa33647cc99","status":"affected","lessThan":"6a02a61e81c231cc5c680c5dbf8665275147ac52","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.8","versionType":"semver"},{"version":"4.19.260","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.213","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.143","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.68","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.9","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/core.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/48xxx/CVE-2022-48697.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-48697","state":"PUBLISHED","datePublished":"2024-05-03T15:10:30.963Z","dateUpdated":"2026-08-05T08:51:50.506Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-03T14:55:07.145Z"},"containers":{"cna":{"title":"nvmet: fix a use-after-free","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: fix a use-after-free\n\nFix the following use-after-free complaint triggered by blktests nvme/004:\n\nBUG: KASAN: user-memory-access in blk_mq_complete_request_remote+0xac/0x350\nRead of size 4 at addr 0000607bd1835943 by task kworker/13:1/460\nWorkqueue: nvmet-wq nvme_loop_execute_work [nvme_loop]\nCall Trace:\n show_stack+0x52/0x58\n dump_stack_lvl+0x49/0x5e\n print_report.cold+0x36/0x1e2\n kasan_report+0xb9/0xf0\n __asan_load4+0x6b/0x80\n blk_mq_complete_request_remote+0xac/0x350\n nvme_loop_queue_response+0x1df/0x275 [nvme_loop]\n __nvmet_req_complete+0x132/0x4f0 [nvmet]\n nvmet_req_complete+0x15/0x40 [nvmet]\n nvmet_execute_io_connect+0x18a/0x1f0 [nvmet]\n nvme_loop_execute_work+0x20/0x30 [nvme_loop]\n process_one_work+0x56e/0xa70\n worker_thread+0x2d1/0x640\n kthread+0x183/0x1c0\n ret_from_fork+0x1f/0x30"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a07b4970f464f13640e28e16dad6cfa33647cc99","status":"affected","lessThan":"17f121ca3ec6be0fb32d77c7f65362934a38cc8e","versionType":"git"},{"version":"a07b4970f464f13640e28e16dad6cfa33647cc99","status":"affected","lessThan":"8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717","versionType":"git"},{"version":"a07b4970f464f13640e28e16dad6cfa33647cc99","status":"affected","lessThan":"be01f1c988757b95f11f090a9f491365670a522b","versionType":"git"},{"version":"a07b4970f464f13640e28e16dad6cfa33647cc99","status":"affected","lessThan":"ebf46da50beb78066674354ad650606a467e33fa","versionType":"git"},{"version":"a07b4970f464f13640e28e16dad6cfa33647cc99","status":"affected","lessThan":"4484ce97a78171668c402e0c45db7f760aea8060","versionType":"git"},{"version":"a07b4970f464f13640e28e16dad6cfa33647cc99","status":"affected","lessThan":"6a02a61e81c231cc5c680c5dbf8665275147ac52","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.8","versionType":"semver"},{"version":"4.19.260","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.213","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.143","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.68","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.9","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/17f121ca3ec6be0fb32d77c7f65362934a38cc8e"},{"url":"https://git.kernel.org/stable/c/8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717"},{"url":"https://git.kernel.org/stable/c/be01f1c988757b95f11f090a9f491365670a522b"},{"url":"https://git.kernel.org/stable/c/ebf46da50beb78066674354ad650606a467e33fa"},{"url":"https://git.kernel.org/stable/c/4484ce97a78171668c402e0c45db7f760aea8060"},{"url":"https://git.kernel.org/stable/c/6a02a61e81c231cc5c680c5dbf8665275147ac52"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The bug is in nvmet core `__nvmet_req_complete()`, shared by all NVMe target transports including nvmet-tcp, which accepts and processes NVMe-oF commands from remote TCP peers.\nAC:L - This is a use-after-free in the request completion path that a remote client can drive via ordinary I/O and connect/teardown traffic; per guidance UAFs are AC:L unless the attacker cannot influence the triggering conditions.\nPR:N - In the most severe reasonable deployment (nvmet-tcp with allow_any_host and without DH-HMAC-CHAP), an unauthenticated remote client can connect and issue commands that reach the vulnerable completion path.\nUI:N - Exploitation requires no victim user action beyond the target already serving NVMe-oF; the attacker initiates the network connection and commands themselves.\nS:U - Impact is memory corruption within the target kernel's authority; this is not a VM/IOMMU/sandbox boundary escape.\nC:H - Use-after-free of the namespace reference around queue_response enables heap reuse and attacker-controlled object contents, which can be leveraged for arbitrary kernel memory disclosure.\nI:H - The same UAF provides a heap corruption primitive that can be shaped for arbitrary write or control-flow hijacking in the kernel.\nA:H - The UAF was observed as a KASAN fault in blk_mq completion and can cause kernel oops/panic even without full exploitation."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:51:50.506Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"4.19.260"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.4.213"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.10.143"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.15.68"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.19.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.3,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","integrityImpact":"LOW","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"LOW","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-06-12T20:35:15.754942Z","id":"CVE-2022-48697","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"type":"CWE","lang":"en","description":"CWE-noinfo Not enough information"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-30T15:52:41.996Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/17f121ca3ec6be0fb32d77c7f65362934a38cc8e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/be01f1c988757b95f11f090a9f491365670a522b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ebf46da50beb78066674354ad650606a467e33fa","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4484ce97a78171668c402e0c45db7f760aea8060","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/6a02a61e81c231cc5c680c5dbf8665275147ac52","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T15:17:55.813Z"}}]}}}