# CVE-2022-50388: nvme: fix multipath crash caused by flush request when blktrace is enabled

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-09-18T13:33:08.612Z
- **Modified:** 2026-06-17T05:23:24.610Z

## Who should check

- Anyone running Linux \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< f13301a69ababa6c2236fb4f0393b7e914e7e1e0; \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< 4df413d46960f11c8c105238cfc3f5ff4c95c003; \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< fcd2d199486033223e9b2a6a7f9a01dd0327eac3; \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< 183c2aaef40a91acbaae45c3824d6cde7bb62b10; \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< 3659fb5ac29a5e6102bebe494ac789fd47fb78f4
- Anyone running Linux 5.4

## Description

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

nvme: fix multipath crash caused by flush request when blktrace is enabled

The flush request initialized by blk\_kick\_flush has NULL bio,
and it may be dealt with nvme\_end\_req during io completion.
When blktrace is enabled, nvme\_trace\_bio\_complete with multipath
activated trying to access NULL pointer bio from flush request
results in the following crash:

\[ 2517.831677\] BUG: kernel NULL pointer dereference, address: 000000000000001a
\[ 2517.835213\] \#PF: supervisor read access in kernel mode
\[ 2517.838724\] \#PF: error\_code(0x0000) - not-present page
\[ 2517.842222\] PGD 7b2d51067 P4D 0
\[ 2517.845684\] Oops: 0000 \[\#1\] SMP NOPTI
\[ 2517.849125\] CPU: 2 PID: 732 Comm: kworker/2:1H Kdump: loaded Tainted: G S                5.15.67-0.cl9.x86\_64 \#1
\[ 2517.852723\] Hardware name: XFUSION 2288H V6/BC13MBSBC, BIOS 1.13 07/27/2022
\[ 2517.856358\] Workqueue: nvme\_tcp\_wq nvme\_tcp\_io\_work \[nvme\_tcp\]
\[ 2517.859993\] RIP: 0010:blk\_add\_trace\_bio\_complete+0x6/0x30
\[ 2517.863628\] Code: 1f 44 00 00 48 8b 46 08 31 c9 ba 04 00 10 00 48 8b 80 50 03 00 00 48 8b 78 50 e9 e5 fe ff ff 0f 1f 44 00 00 41 54 49 89 f4 55 \<0f\> b6 7a 1a 48 89 d5 e8 3e 1c 2b 00 48 89 ee 4c 89 e7 5d 89 c1 ba
\[ 2517.871269\] RSP: 0018:ff7f6a008d9dbcd0 EFLAGS: 00010286
\[ 2517.875081\] RAX: ff3d5b4be00b1d50 RBX: 0000000002040002 RCX: ff3d5b0a270f2000
\[ 2517.878966\] RDX: 0000000000000000 RSI: ff3d5b0b021fb9f8 RDI: 0000000000000000
\[ 2517.882849\] RBP: ff3d5b0b96a6fa00 R08: 0000000000000001 R09: 0000000000000000
\[ 2517.886718\] R10: 000000000000000c R11: 000000000000000c R12: ff3d5b0b021fb9f8
\[ 2517.890575\] R13: 0000000002000000 R14: ff3d5b0b021fb1b0 R15: 0000000000000018
\[ 2517.894434\] FS:  0000000000000000(0000) GS:ff3d5b42bfc80000(0000) knlGS:0000000000000000
\[ 2517.898299\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[ 2517.902157\] CR2: 000000000000001a CR3: 00000004f023e005 CR4: 0000000000771ee0
\[ 2517.906053\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[ 2517.909930\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[ 2517.913761\] PKRU: 55555554
\[ 2517.917558\] Call Trace:
\[ 2517.921294\]  \<TASK\>
\[ 2517.924982\]  nvme\_complete\_rq+0x1c3/0x1e0 \[nvme\_core\]
\[ 2517.928715\]  nvme\_tcp\_recv\_pdu+0x4d7/0x540 \[nvme\_tcp\]
\[ 2517.932442\]  nvme\_tcp\_recv\_skb+0x4f/0x240 \[nvme\_tcp\]
\[ 2517.936137\]  ? nvme\_tcp\_recv\_pdu+0x540/0x540 \[nvme\_tcp\]
\[ 2517.939830\]  tcp\_read\_sock+0x9c/0x260
\[ 2517.943486\]  nvme\_tcp\_try\_recv+0x65/0xa0 \[nvme\_tcp\]
\[ 2517.947173\]  nvme\_tcp\_io\_work+0x64/0x90 \[nvme\_tcp\]
\[ 2517.950834\]  process\_one\_work+0x1e8/0x390
\[ 2517.954473\]  worker\_thread+0x53/0x3c0
\[ 2517.958069\]  ? process\_one\_work+0x390/0x390
\[ 2517.961655\]  kthread+0x10c/0x130
\[ 2517.965211\]  ? set\_kthread\_struct+0x40/0x40
\[ 2517.968760\]  ret\_from\_fork+0x1f/0x30
\[ 2517.972285\]  \</TASK\>

To avoid this situation, add a NULL check for req-\>bio before
calling trace\_block\_bio\_complete.

## Affected and fixed versions

- Linux: \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< f13301a69ababa6c2236fb4f0393b7e914e7e1e0; \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< 4df413d46960f11c8c105238cfc3f5ff4c95c003; \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< fcd2d199486033223e9b2a6a7f9a01dd0327eac3; \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< 183c2aaef40a91acbaae45c3824d6cde7bb62b10; \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< 3659fb5ac29a5e6102bebe494ac789fd47fb78f4 (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- Upgrade Linux to 3659fb5ac29a5e6102bebe494ac789fd47fb78f4 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-50388. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50388.md
Affected: Linux >= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, < f13301a69ababa6c2236fb4f0393b7e914e7e1e0; >= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, < 4df413d46960f11c8c105238cfc3f5ff4c95c003; >= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, < fcd2d199486033223e9b2a6a7f9a01dd0327eac3; >= 35fe0d12c8a3d5e45f29756…
Fixed in: Linux 4df413d46960f11c8c105238cfc3f5ff4c95c003, Linux 183c2aaef40a91acbaae45c3824d6cde7bb62b10, Linux 3659fb5ac29a5e6102bebe494ac789fd47fb78f4

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

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

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

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< f13301a69ababa6c2236fb4f0393b7e914e7e1e0; \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< 4df413d46960f11c8c105238cfc3f5ff4c95c003; \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< fcd2d199486033223e9b2a6a7f9a01dd0327eac3; \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< 183c2aaef40a91acbaae45c3824d6cde7bb62b10; \>= 35fe0d12c8a3d5e45f297562732ddc9ba9dc58dd, \< 3659fb5ac29a5e6102bebe494ac789fd47fb78f4; Linux 5.4.

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

Yes. Fixed in Linux 4df413d46960f11c8c105238cfc3f5ff4c95c003, Linux 183c2aaef40a91acbaae45c3824d6cde7bb62b10, Linux 3659fb5ac29a5e6102bebe494ac789fd47fb78f4. Upgrade Linux to 3659fb5ac29a5e6102bebe494ac789fd47fb78f4 or later.

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

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/f13301a69ababa6c2236fb4f0393b7e914e7e1e0>
- patch: <https://git.kernel.org/stable/c/4df413d46960f11c8c105238cfc3f5ff4c95c003>
- patch: <https://git.kernel.org/stable/c/fcd2d199486033223e9b2a6a7f9a01dd0327eac3>
- patch: <https://git.kernel.org/stable/c/183c2aaef40a91acbaae45c3824d6cde7bb62b10>
- patch: <https://git.kernel.org/stable/c/3659fb5ac29a5e6102bebe494ac789fd47fb78f4>

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

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