# CVE-2026-142891: nvme-loop: don't BUG() if a scan runs beside a reset

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:25:43.657Z
- **Modified:** 2026-12-03T04:18:28.087Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker able to trigger a namespace scan during a controller reset can crash the Linux kernel via a BUG() check in the NVMe loop target driver.

## Who should check

- Anyone running Linux \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 99e4c17b26237416b0114a1303966647a648effd; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< c004d5911d19d6695578164ee723efd2ec3a561d; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 7eda07f7f8ccf7bf7a5e9514014eac99e8410dd0; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 9bd1ee9869deb35f962d93ec7b13a7c9f13bfc1d; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< eca0cfe5eb4b7a6488476a862cb38edae951aa64; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 586c80bd86228d759298aae3714f3a2dd39ed303; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< c93411299eb8c016588452d0af27dd47cba6df0f; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 64e21d782020e267ca57765a30216c38b34f296d
- Anyone running Linux 4.8

## Description

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

nvme-loop: don't BUG() if a scan runs beside a reset

A reset sets queue\_count to 1 while it destroys the I/O queues and
counts it back up when the new ones are made, and it doesn't stop the
scan work. A new namespace found in that window trips the check in
nvme\_loop\_init\_hctx() for every hctx but the first:

  kernel BUG at drivers/nvme/target/loop.c:224!
   nvme\_loop\_init\_hctx+0x7d/0x80
   \_\_blk\_mq\_realloc\_hw\_ctxs+0x3af/0xa80
   nvme\_alloc\_ns+0x1a2/0x22f0

The check protects nothing. ctrl-\>queues has nr\_io\_queues + 1 entries
for the life of the controller, the tag set never has more hardware
queues than that, and nvme\_loop\_queue\_rq() rejects requests until the
controller is live again.

Remove it.

## Affected and fixed versions

- Linux: \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 99e4c17b26237416b0114a1303966647a648effd; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< c004d5911d19d6695578164ee723efd2ec3a561d; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 7eda07f7f8ccf7bf7a5e9514014eac99e8410dd0; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 9bd1ee9869deb35f962d93ec7b13a7c9f13bfc1d; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< eca0cfe5eb4b7a6488476a862cb38edae951aa64; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 586c80bd86228d759298aae3714f3a2dd39ed303; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< c93411299eb8c016588452d0af27dd47cba6df0f; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 64e21d782020e267ca57765a30216c38b34f296d (cvelist)
- Linux: 4.8 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 64e21d782020e267ca57765a30216c38b34f296d or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-142891.md
Affected: Linux >= 3a85a5de29ea779634ddfd768059e06196687aba, < 99e4c17b26237416b0114a1303966647a648effd; >= 3a85a5de29ea779634ddfd768059e06196687aba, < c004d5911d19d6695578164ee723efd2ec3a561d; >= 3a85a5de29ea779634ddfd768059e06196687aba, < 7eda07f7f8ccf7bf7a5e9514014eac99e8410dd0; >= 3a85a5de29ea779634ddfd7…
Fixed in: Linux 99e4c17b26237416b0114a1303966647a648effd, Linux 7eda07f7f8ccf7bf7a5e9514014eac99e8410dd0, Linux 9bd1ee9869deb35f962d93ec7b13a7c9f13bfc1d, Linux 586c80bd86228d759298aae3714f3a2dd39ed303, Linux 64e21d782020e267ca57765a30216c38b34f296d

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-2026-142891 being exploited?

There is no confirmed exploitation: CVE-2026-142891 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142891?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142891?

Linux \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 99e4c17b26237416b0114a1303966647a648effd; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< c004d5911d19d6695578164ee723efd2ec3a561d; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 7eda07f7f8ccf7bf7a5e9514014eac99e8410dd0; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 9bd1ee9869deb35f962d93ec7b13a7c9f13bfc1d; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< eca0cfe5eb4b7a6488476a862cb38edae951aa64; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 586c80bd86228d759298aae3714f3a2dd39ed303; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< c93411299eb8c016588452d0af27dd47cba6df0f; \>= 3a85a5de29ea779634ddfd768059e06196687aba, \< 64e21d782020e267ca57765a30216c38b34f296d; Linux 4.8.

### Is there a fix for CVE-2026-142891?

Yes. Fixed in Linux 99e4c17b26237416b0114a1303966647a648effd, Linux 7eda07f7f8ccf7bf7a5e9514014eac99e8410dd0, Linux 9bd1ee9869deb35f962d93ec7b13a7c9f13bfc1d, Linux 586c80bd86228d759298aae3714f3a2dd39ed303, Linux 64e21d782020e267ca57765a30216c38b34f296d. Upgrade Linux to 64e21d782020e267ca57765a30216c38b34f296d or later.

### How do I check if I'm affected by CVE-2026-142891?

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

- other: <https://git.kernel.org/stable/c/99e4c17b26237416b0114a1303966647a648effd>
- other: <https://git.kernel.org/stable/c/c004d5911d19d6695578164ee723efd2ec3a561d>
- other: <https://git.kernel.org/stable/c/7eda07f7f8ccf7bf7a5e9514014eac99e8410dd0>
- other: <https://git.kernel.org/stable/c/9bd1ee9869deb35f962d93ec7b13a7c9f13bfc1d>
- other: <https://git.kernel.org/stable/c/eca0cfe5eb4b7a6488476a862cb38edae951aa64>
- other: <https://git.kernel.org/stable/c/586c80bd86228d759298aae3714f3a2dd39ed303>
- other: <https://git.kernel.org/stable/c/c93411299eb8c016588452d0af27dd47cba6df0f>
- other: <https://git.kernel.org/stable/c/64e21d782020e267ca57765a30216c38b34f296d>

## 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-2026-142891>

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