# CVE-2022-49003: nvme: fix SRCU protection of nvme\_ns\_head list

> 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.77% (percentile 52, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-10-21T20:06:16.737Z
- **Modified:** 2026-08-05T08:53:24.890Z

## Who should check

- Anyone running Linux \>= e7d65803e2bb5bc739548b67a5fc72c626cf7e3b, \< 787d81d4eb150e443e5d1276c6e8f03cfecc2302; \>= e7d65803e2bb5bc739548b67a5fc72c626cf7e3b, \< 5b566d09ab1b975566a53f9c5466ee260d087582; \>= e7d65803e2bb5bc739548b67a5fc72c626cf7e3b, \< 899d2a05dc14733cfba6224083c6b0dd5a738590
- Anyone running Linux 5.15

## Description

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

nvme: fix SRCU protection of nvme\_ns\_head list

Walking the nvme\_ns\_head siblings list is protected by the head's srcu
in nvme\_ns\_head\_submit\_bio() but not nvme\_mpath\_revalidate\_paths().
Removing namespaces from the list also fails to synchronize the srcu.
Concurrent scan work can therefore cause use-after-frees.

Hold the head's srcu lock in nvme\_mpath\_revalidate\_paths() and
synchronize with the srcu, not the global RCU, in nvme\_ns\_remove().

Observed the following panic when making NVMe/RDMA connections
with native multipath on the Rocky Linux 8.6 kernel
(it seems the upstream kernel has the same race condition).
Disassembly shows the faulting instruction is cmp 0x50(%rdx),%rcx;
computing capacity != get\_capacity(ns-\>disk).
Address 0x50 is dereferenced because ns-\>disk is NULL.
The NULL disk appears to be the result of concurrent scan work
freeing the namespace (note the log line in the middle of the panic).

\[37314.206036\] BUG: unable to handle kernel NULL pointer dereference at 0000000000000050
\[37314.206036\] nvme0n3: detected capacity change from 0 to 11811160064
\[37314.299753\] PGD 0 P4D 0
\[37314.299756\] Oops: 0000 \[\#1\] SMP PTI
\[37314.299759\] CPU: 29 PID: 322046 Comm: kworker/u98:3 Kdump: loaded Tainted: G        W      X --------- -  - 4.18.0-372.32.1.el8test86.x86\_64 \#1
\[37314.299762\] Hardware name: Dell Inc. PowerEdge R720/0JP31P, BIOS 2.7.0 05/23/2018
\[37314.299763\] Workqueue: nvme-wq nvme\_scan\_work \[nvme\_core\]
\[37314.299783\] RIP: 0010:nvme\_mpath\_revalidate\_paths+0x26/0xb0 \[nvme\_core\]
\[37314.299790\] Code: 1f 44 00 00 66 66 66 66 90 55 53 48 8b 5f 50 48 8b 83 c8 c9 00 00 48 8b 13 48 8b 48 50 48 39 d3 74 20 48 8d 42 d0 48 8b 50 20 \<48\> 3b 4a 50 74 05 f0 80 60 70 ef 48 8b 50 30 48 8d 42 d0 48 39 d3
\[37315.058803\] RSP: 0018:ffffabe28f913d10 EFLAGS: 00010202
\[37315.121316\] RAX: ffff927a077da800 RBX: ffff92991dd70000 RCX: 0000000001600000
\[37315.206704\] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff92991b719800
\[37315.292106\] RBP: ffff929a6b70c000 R08: 000000010234cd4a R09: c0000000ffff7fff
\[37315.377501\] R10: 0000000000000001 R11: ffffabe28f913a30 R12: 0000000000000000
\[37315.462889\] R13: ffff92992716600c R14: ffff929964e6e030 R15: ffff92991dd70000
\[37315.548286\] FS:  0000000000000000(0000) GS:ffff92b87fb80000(0000) knlGS:0000000000000000
\[37315.645111\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[37315.713871\] CR2: 0000000000000050 CR3: 0000002208810006 CR4: 00000000000606e0
\[37315.799267\] Call Trace:
\[37315.828515\]  nvme\_update\_ns\_info+0x1ac/0x250 \[nvme\_core\]
\[37315.892075\]  nvme\_validate\_or\_alloc\_ns+0x2ff/0xa00 \[nvme\_core\]
\[37315.961871\]  ? \_\_blk\_mq\_free\_request+0x6b/0x90
\[37316.015021\]  nvme\_scan\_work+0x151/0x240 \[nvme\_core\]
\[37316.073371\]  process\_one\_work+0x1a7/0x360
\[37316.121318\]  ? create\_worker+0x1a0/0x1a0
\[37316.168227\]  worker\_thread+0x30/0x390
\[37316.212024\]  ? create\_worker+0x1a0/0x1a0
\[37316.258939\]  kthread+0x10a/0x120
\[37316.297557\]  ? set\_kthread\_struct+0x50/0x50
\[37316.347590\]  ret\_from\_fork+0x35/0x40
\[37316.390360\] Modules linked in: nvme\_rdma nvme\_tcp(X) nvme\_fabrics nvme\_core netconsole iscsi\_tcp libiscsi\_tcp dm\_queue\_length dm\_service\_time nf\_conntrack\_netlink br\_netfilter bridge stp llc overlay nft\_chain\_nat ipt\_MASQUERADE nf\_nat xt\_addrtype xt\_CT nft\_counter xt\_state xt\_conntrack nf\_conntrack nf\_defrag\_ipv6 nf\_defrag\_ipv4 xt\_comment xt\_multiport nft\_compat nf\_tables libcrc32c nfnetlink dm\_multipath tg3 rpcrdma sunrpc rdma\_ucm ib\_srpt ib\_isert iscsi\_target\_mod target\_core\_mod ib\_iser libiscsi scsi\_transport\_iscsi ib\_umad rdma\_cm ib\_ipoib iw\_cm ib\_cm intel\_rapl\_msr iTCO\_wdt iTCO\_vendor\_support dcdbas intel\_rapl\_common sb\_edac x86\_pkg\_temp\_thermal intel\_powerclamp coretemp kvm\_intel ipmi\_ssif kvm irqbypass crct10dif\_pclmul crc32\_pclmul mlx5\_ib ghash\_clmulni\_intel ib\_uverbs rapl intel\_cstate intel\_uncore ib\_core ipmi\_si joydev mei\_me pcspkr ipmi\_devintf mei lpc\_ich wmi ipmi\_msghandler acpi\_power\_meter ex
---truncated---

## Affected and fixed versions

- Linux: \>= e7d65803e2bb5bc739548b67a5fc72c626cf7e3b, \< 787d81d4eb150e443e5d1276c6e8f03cfecc2302; \>= e7d65803e2bb5bc739548b67a5fc72c626cf7e3b, \< 5b566d09ab1b975566a53f9c5466ee260d087582; \>= e7d65803e2bb5bc739548b67a5fc72c626cf7e3b, \< 899d2a05dc14733cfba6224083c6b0dd5a738590 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 899d2a05dc14733cfba6224083c6b0dd5a738590 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49003.md
Affected: Linux >= e7d65803e2bb5bc739548b67a5fc72c626cf7e3b, < 787d81d4eb150e443e5d1276c6e8f03cfecc2302; >= e7d65803e2bb5bc739548b67a5fc72c626cf7e3b, < 5b566d09ab1b975566a53f9c5466ee260d087582; >= e7d65803e2bb5bc739548b67a5fc72c626cf7e3b, < 899d2a05dc14733cfba6224083c6b0dd5a738590; Linux 5.15
Fixed in: Linux 787d81d4eb150e443e5d1276c6e8f03cfecc2302, Linux 5b566d09ab1b975566a53f9c5466ee260d087582, Linux 899d2a05dc14733cfba6224083c6b0dd5a738590

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

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

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

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

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

Linux \>= e7d65803e2bb5bc739548b67a5fc72c626cf7e3b, \< 787d81d4eb150e443e5d1276c6e8f03cfecc2302; \>= e7d65803e2bb5bc739548b67a5fc72c626cf7e3b, \< 5b566d09ab1b975566a53f9c5466ee260d087582; \>= e7d65803e2bb5bc739548b67a5fc72c626cf7e3b, \< 899d2a05dc14733cfba6224083c6b0dd5a738590; Linux 5.15.

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

Yes. Fixed in Linux 787d81d4eb150e443e5d1276c6e8f03cfecc2302, Linux 5b566d09ab1b975566a53f9c5466ee260d087582, Linux 899d2a05dc14733cfba6224083c6b0dd5a738590. Upgrade Linux to 899d2a05dc14733cfba6224083c6b0dd5a738590 or later.

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

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/787d81d4eb150e443e5d1276c6e8f03cfecc2302>
- patch: <https://git.kernel.org/stable/c/5b566d09ab1b975566a53f9c5466ee260d087582>
- patch: <https://git.kernel.org/stable/c/899d2a05dc14733cfba6224083c6b0dd5a738590>

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

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