CVE-2022-48790 in the critical feed json
nvme: fix a possible use-after-free in controller reset during load
published 2024-07-16 2 y ago modified 2026-08-05 3 mo ago also EUVD-2022-53669
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
nvme: fix a possible use-after-free in controller reset during load
Unlike .queue_rq, in .submit_async_event drivers may not check the ctrl readiness for AER submission. This may lead to a use-after-free condition that was observed with nvme-tcp.
The race condition may happen in the following scenario: 1. driver executes its reset_ctrl_work 2. -> nvme_stop_ctrl - flushes ctrl async_event_work 3. ctrl sends AEN which is received by the host, which in turn schedules AEN handling 4. teardown admin queue (which releases the queue socket) 5. AEN processed, submits another AER, calling the driver to submit 6. driver attempts to send the cmd ==> use-after-free
In order to fix that, add ctrl state check to validate the ctrl is actually able to accept the AER submission.
This addresses the above race in controller resets because the driver during teardown should: 1. change ctrl state to RESETTING 2. flush async_event_work (as well as other async work elements)
So after 1,2, any other AER command will find the ctrl state to be RESETTING and bail out without submitting the AER.
Patch / fix
- Linux Linux 4.19.231, 5.4.181, 5.10.102, 5.15.25, 5.16.11, 5.17
- linux Debian 14, Debian 13, Debian 12 5.16.11-1
debian advisories DEBIAN-CVE-2022-48790
- linux Ubuntu 20.04 LTS 5.4.0-110.124
- linux-aws Ubuntu 20.04 LTS 5.4.0-1073.78
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1073.78
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1021.23
- linux-iot Ubuntu 20.04 LTS 5.4.0-1004.6
- linux-kvm Ubuntu 20.04 LTS 5.4.0-1063.66
- linux-azure Ubuntu 20.04 LTS 5.4.0-1078.81
- linux-gkeop Ubuntu 20.04 LTS 5.4.0-1040.41
ubuntu advisories UBUNTU-CVE-2022-48790
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-azure SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-16.200.1
- kernel-syms-azure SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-16.200.1
- kernel-source-azure SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-16.200.1
- kernel-rt SLE Real Time 12 SP5 4.12.14-10.203.1
- kernel-syms-rt SLE Real Time 12 SP5 4.12.14-10.203.1
- kernel-rt_debug SLE Real Time 12 SP5 4.12.14-10.203.1
- kernel-source-rt SLE Real Time 12 SP5 4.12.14-10.203.1
- kernel-syms SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.231.1
suse advisories SUSE-SU-2025:0034-1SUSE-SU-2024:4100-1SUSE-SU-2024:3591-1SUSE-SU-2024:3566-1SUSE-SU-2024:3559-1SUSE-SU-2024:3249-1
- git.kernel.org/stable/c/a25e460fbb0340488d119fb2e28fe3f829b7417e commit
- git.kernel.org/stable/c/70356b756a58704e5c8818cb09da5854af87e765 commit
- git.kernel.org/stable/c/0ead57ceb21bbf15963b4874c2ac67143455382f commit
- git.kernel.org/stable/c/e043fb5a0336ee74614e26f0d9f36f1f5bb6d606 commit
- git.kernel.org/stable/c/9e956a2596ae276124ef0d96829c013dd0faf861 commit
- git.kernel.org/stable/c/0fa0f99fc84e41057cbdd2efbfe91c6b2f47dd9d commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-48790 updated cvss 6.4
kernel: nvme: fix a possible use-after-free in controller reset during load
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 moreaffected: workaround, no fix planned “Will not fix”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.79% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/a25e460fbb0340488d119fb2e28fe3f829b7417e
patch
-
git.kernel.org
/stable/c/70356b756a58704e5c8818cb09da5854af87e765
patch
-
git.kernel.org
/stable/c/0ead57ceb21bbf15963b4874c2ac67143455382f
patch
-
git.kernel.org
/stable/c/e043fb5a0336ee74614e26f0d9f36f1f5bb6d606
patch
-
git.kernel.org
/stable/c/9e956a2596ae276124ef0d96829c013dd0faf861
patch
-
git.kernel.org
/stable/c/0fa0f99fc84e41057cbdd2efbfe91c6b2f47dd9d
patch
Sources
- CVE List CVE-2022-48790
- NVD CVE-2022-48790
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.