# CVE-2022-48697: nvmet: fix a use-after-free

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.59% (percentile 49, 2026-12-04)
- **CWE:** CWE-416
- **Published:** 2024-05-03T15:10:30.963Z
- **Modified:** 2026-08-05T08:51:50.506Z

## Who should check

- Anyone running Linux \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 17f121ca3ec6be0fb32d77c7f65362934a38cc8e; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< be01f1c988757b95f11f090a9f491365670a522b; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< ebf46da50beb78066674354ad650606a467e33fa; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 4484ce97a78171668c402e0c45db7f760aea8060; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 6a02a61e81c231cc5c680c5dbf8665275147ac52
- Anyone running Linux 4.8

## 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

## Affected and fixed versions

- Linux: \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 17f121ca3ec6be0fb32d77c7f65362934a38cc8e; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< be01f1c988757b95f11f090a9f491365670a522b; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< ebf46da50beb78066674354ad650606a467e33fa; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 4484ce97a78171668c402e0c45db7f760aea8060; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 6a02a61e81c231cc5c680c5dbf8665275147ac52 (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- Upgrade Linux to 6a02a61e81c231cc5c680c5dbf8665275147ac52 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48697. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48697.md
Affected: Linux >= a07b4970f464f13640e28e16dad6cfa33647cc99, < 17f121ca3ec6be0fb32d77c7f65362934a38cc8e; >= a07b4970f464f13640e28e16dad6cfa33647cc99, < 8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717; >= a07b4970f464f13640e28e16dad6cfa33647cc99, < be01f1c988757b95f11f090a9f491365670a522b; >= a07b4970f464f13640e28e1…
Fixed in: Linux 17f121ca3ec6be0fb32d77c7f65362934a38cc8e, Linux 8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717, Linux 4484ce97a78171668c402e0c45db7f760aea8060, Linux 6a02a61e81c231cc5c680c5dbf8665275147ac52

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-48697 being exploited?

There is no confirmed exploitation: CVE-2022-48697 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.59% chance of exploitation in the next 30 days (as of 2026-12-04).

### How serious is CVE-2022-48697?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2022-48697?

Linux \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 17f121ca3ec6be0fb32d77c7f65362934a38cc8e; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< be01f1c988757b95f11f090a9f491365670a522b; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< ebf46da50beb78066674354ad650606a467e33fa; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 4484ce97a78171668c402e0c45db7f760aea8060; \>= a07b4970f464f13640e28e16dad6cfa33647cc99, \< 6a02a61e81c231cc5c680c5dbf8665275147ac52; Linux 4.8.

### Is there a fix for CVE-2022-48697?

Yes. Fixed in Linux 17f121ca3ec6be0fb32d77c7f65362934a38cc8e, Linux 8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717, Linux 4484ce97a78171668c402e0c45db7f760aea8060, Linux 6a02a61e81c231cc5c680c5dbf8665275147ac52. Upgrade Linux to 6a02a61e81c231cc5c680c5dbf8665275147ac52 or later.

### How do I check if I'm affected by CVE-2022-48697?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/17f121ca3ec6be0fb32d77c7f65362934a38cc8e>
- patch: <https://git.kernel.org/stable/c/8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717>
- patch: <https://git.kernel.org/stable/c/be01f1c988757b95f11f090a9f491365670a522b>
- patch: <https://git.kernel.org/stable/c/ebf46da50beb78066674354ad650606a467e33fa>
- patch: <https://git.kernel.org/stable/c/4484ce97a78171668c402e0c45db7f760aea8060>
- patch: <https://git.kernel.org/stable/c/6a02a61e81c231cc5c680c5dbf8665275147ac52>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48697>

HTML: <https://flawdb.com/CVE-2022-48697> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48697>
