# CVE-2022-48789: nvme-tcp: fix possible use-after-free in transport error\_recovery work

> 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.87% (percentile 56, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-07-16T11:43:45.894Z
- **Modified:** 2026-08-05T08:52:19.606Z

## Who should check

- Anyone running Linux \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< 61a26ffd5ad3ece456d74c4c79f7b5e3f440a141; \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< e192184cf8bce8dd55d619f5611a2eaba996fa05; \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< 5e42fca37ccc76f39f73732661bd47254cad5982; \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< bb0d8fb35c4ff00a503c2c4dca4cce8d102a21c4; \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< ff9fc7ebf5c06de1ef72a69f9b1ab40af8b07f9e
- Anyone running Linux 5.0

## Description

In the Linux kernel, the following vulnerability has been resolved:

nvme-tcp: fix possible use-after-free in transport error\_recovery work

While nvme\_tcp\_submit\_async\_event\_work is checking the ctrl and queue
state before preparing the AER command and scheduling io\_work, in order
to fully prevent a race where this check is not reliable the error
recovery work must flush async\_event\_work before continuing to destroy
the admin queue after setting the ctrl state to RESETTING such that
there is no race .submit\_async\_event and the error recovery handler
itself changing the ctrl state.

## Affected and fixed versions

- Linux: \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< 61a26ffd5ad3ece456d74c4c79f7b5e3f440a141; \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< e192184cf8bce8dd55d619f5611a2eaba996fa05; \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< 5e42fca37ccc76f39f73732661bd47254cad5982; \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< bb0d8fb35c4ff00a503c2c4dca4cce8d102a21c4; \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< ff9fc7ebf5c06de1ef72a69f9b1ab40af8b07f9e (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-48789.md
Affected: Linux >= 3f2304f8c6d6ed97849057bd16fee99e434ca796, < 61a26ffd5ad3ece456d74c4c79f7b5e3f440a141; >= 3f2304f8c6d6ed97849057bd16fee99e434ca796, < e192184cf8bce8dd55d619f5611a2eaba996fa05; >= 3f2304f8c6d6ed97849057bd16fee99e434ca796, < 5e42fca37ccc76f39f73732661bd47254cad5982; >= 3f2304f8c6d6ed97849057b…
Fixed in: Linux 61a26ffd5ad3ece456d74c4c79f7b5e3f440a141, Linux 5e42fca37ccc76f39f73732661bd47254cad5982

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-48789 being exploited?

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

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

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

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

Linux \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< 61a26ffd5ad3ece456d74c4c79f7b5e3f440a141; \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< e192184cf8bce8dd55d619f5611a2eaba996fa05; \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< 5e42fca37ccc76f39f73732661bd47254cad5982; \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< bb0d8fb35c4ff00a503c2c4dca4cce8d102a21c4; \>= 3f2304f8c6d6ed97849057bd16fee99e434ca796, \< ff9fc7ebf5c06de1ef72a69f9b1ab40af8b07f9e; Linux 5.0.

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

Yes. Fixed in Linux 61a26ffd5ad3ece456d74c4c79f7b5e3f440a141, Linux 5e42fca37ccc76f39f73732661bd47254cad5982. No fix listed yet: follow the vendor advisory.

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

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/61a26ffd5ad3ece456d74c4c79f7b5e3f440a141>
- patch: <https://git.kernel.org/stable/c/e192184cf8bce8dd55d619f5611a2eaba996fa05>
- patch: <https://git.kernel.org/stable/c/5e42fca37ccc76f39f73732661bd47254cad5982>
- patch: <https://git.kernel.org/stable/c/bb0d8fb35c4ff00a503c2c4dca4cce8d102a21c4>
- patch: <https://git.kernel.org/stable/c/ff9fc7ebf5c06de1ef72a69f9b1ab40af8b07f9e>

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

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