CVE-2022-48790

nvme: fix a possible use-after-free in controller reset during load

9.8 critical EPSS 0.79%

Published 16 Jul 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2022-48790

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-48790 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Severity (CVSS)

9.8 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.79%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 57.4% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from ad22c355b707a8d8d48e282aadc01c0b0604b2e9, before a25e460fbb0340488d119fb2e28fe3f829b7417e
affected from ad22c355b707a8d8d48e282aadc01c0b0604b2e9, before 70356b756a58704e5c8818cb09da5854af87e765
affected from ad22c355b707a8d8d48e282aadc01c0b0604b2e9, before 0ead57ceb21bbf15963b4874c2ac67143455382f
affected from ad22c355b707a8d8d48e282aadc01c0b0604b2e9, before e043fb5a0336ee74614e26f0d9f36f1f5bb6d606
affected from ad22c355b707a8d8d48e282aadc01c0b0604b2e9, before 9e956a2596ae276124ef0d96829c013dd0faf861
affected from ad22c355b707a8d8d48e282aadc01c0b0604b2e9, before 0fa0f99fc84e41057cbdd2efbfe91c6b2f47dd9d
Other versions: unaffected
Linux
affected 4.15
unaffected before 4.15
unaffected from 4.19.231 up to and including 4.19.*
unaffected from 5.4.181 up to and including 5.4.*
unaffected from 5.10.102 up to and including 5.10.*
unaffected from 5.15.25 up to and including 5.15.*
unaffected from 5.16.11 up to and including 5.16.*
unaffected 5.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-48790 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-48790

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-48790
trivy image --scanners vuln IMAGE | grep CVE-2022-48790

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-48790 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.