CVE-2022-48697
nvmet: fix a use-after-free
Check your servers for CVE-2022-48697
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-48697 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.
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
Severity (CVSS)
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)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity low, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.59%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 49.4% of all scored CVEs. Scores of 2 Dec 2026.
The assessment of CISA (SSVC, 12 Jun 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.
| Product | Versions |
|---|---|
| Linux |
affected from a07b4970f464f13640e28e16dad6cfa33647cc99, before 17f121ca3ec6be0fb32d77c7f65362934a38cc8e affected from a07b4970f464f13640e28e16dad6cfa33647cc99, before 8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717 affected from a07b4970f464f13640e28e16dad6cfa33647cc99, before be01f1c988757b95f11f090a9f491365670a522b affected from a07b4970f464f13640e28e16dad6cfa33647cc99, before ebf46da50beb78066674354ad650606a467e33fa affected from a07b4970f464f13640e28e16dad6cfa33647cc99, before 4484ce97a78171668c402e0c45db7f760aea8060 affected from a07b4970f464f13640e28e16dad6cfa33647cc99, before 6a02a61e81c231cc5c680c5dbf8665275147ac52
Other versions: unaffected
|
| Linux |
affected 4.8 unaffected before 4.8 unaffected from 4.19.260 up to and including 4.19.* unaffected from 5.4.213 up to and including 5.4.* unaffected from 5.10.143 up to and including 5.10.* unaffected from 5.15.68 up to and including 5.15.* unaffected from 5.19.9 up to and including 5.19.* unaffected 6.0 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-48697 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-48697
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-48697
trivy image --scanners vuln IMAGE | grep CVE-2022-48697
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
- https://git.kernel.org/stable/c/17f121ca3ec6be0fb32d77c7f65362934a38cc8e git.kernel.org
- https://git.kernel.org/stable/c/8d66989b5f7bb28bba2f8e1e2ffc8bfef4a10717 git.kernel.org
- https://git.kernel.org/stable/c/be01f1c988757b95f11f090a9f491365670a522b git.kernel.org
- https://git.kernel.org/stable/c/ebf46da50beb78066674354ad650606a467e33fa git.kernel.org
- https://git.kernel.org/stable/c/4484ce97a78171668c402e0c45db7f760aea8060 git.kernel.org
- https://git.kernel.org/stable/c/6a02a61e81c231cc5c680c5dbf8665275147ac52 git.kernel.org
Source: the record CVE-2022-48697 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.
Vulnpocalypse