Skip to content
Fencer Vulns
critical 9.8

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

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 more
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more
    affected: 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 more
    not 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
Technology feeds

References

Sources

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.