# CVE-2026-98723: nvmet: copy the hostid into the ctrl before creating PR pc\_refs

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:46:59.444Z
- **Modified:** 2026-10-19T10:19:36.500Z

## Who should check

- Anyone running Linux \>= 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd, \< d3d6d7efdacc08616d23b3ac42272a494951dc0f; \>= 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd, \< 23194531595c5d1d4454e3a607b0c8fc0c4e8695; \>= 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd, \< 5211fed41d7ec90e9ab7239dc4bffffe4d0b2b62
- Anyone running Linux 6.15

## Description

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

nvmet: copy the hostid into the ctrl before creating PR pc\_refs

Commit 6202783184bf ("nvmet: Improve nvmet\_alloc\_ctrl() interface and
implementation") added a second uuid\_copy() of args-\>hostid near the end
of nvmet\_alloc\_ctrl(), and commit 7b658153f1b8 ("nvmet: Remove duplicate
uuid\_copy") removed the original copy that sat before
nvmet\_ctrl\_init\_pr() instead of the new one.

Since then nvmet\_ctrl\_init\_pr() snapshots ctrl-\>hostid into the
per-controller per-namespace reservation refs while the uuid\_copy()
from the connect data runs later, after the controller is published.
The ctrl is allocated with kzalloc(), so every pc\_ref created on this
path stores the nil UUID.

pc\_ref-\>hostid has a single consumer: nvmet\_pr\_set\_ctrl\_to\_abort()
matches it against the preempted registrant's hostid to kill and drain
the victim's in-flight I/O for Preempt and Abort.  The match can never
hit with the nil UUID, so whenever a namespace with reservations
enabled exists before a host connects, which includes every reconnect,
Preempt and Abort silently degrades into a plain Preempt: the
preempting host sees success while the victim's in-flight I/O is still
in the air.

Copy the hostid where the rest of the connect data is consumed, before
the controller is published and before nvmet\_ctrl\_init\_pr() takes its
snapshot.

## Affected and fixed versions

- Linux: \>= 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd, \< d3d6d7efdacc08616d23b3ac42272a494951dc0f; \>= 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd, \< 23194531595c5d1d4454e3a607b0c8fc0c4e8695; \>= 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd, \< 5211fed41d7ec90e9ab7239dc4bffffe4d0b2b62 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-98723.md
Affected: Linux >= 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd, < d3d6d7efdacc08616d23b3ac42272a494951dc0f; >= 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd, < 23194531595c5d1d4454e3a607b0c8fc0c4e8695; >= 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd, < 5211fed41d7ec90e9ab7239dc4bffffe4d0b2b62; Linux 6.15
Fixed in: Linux 23194531595c5d1d4454e3a607b0c8fc0c4e8695, Linux 5211fed41d7ec90e9ab7239dc4bffffe4d0b2b62

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd, \< d3d6d7efdacc08616d23b3ac42272a494951dc0f; \>= 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd, \< 23194531595c5d1d4454e3a607b0c8fc0c4e8695; \>= 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd, \< 5211fed41d7ec90e9ab7239dc4bffffe4d0b2b62; Linux 6.15.

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

Yes. Fixed in Linux 23194531595c5d1d4454e3a607b0c8fc0c4e8695, Linux 5211fed41d7ec90e9ab7239dc4bffffe4d0b2b62. Upgrade Linux to 5211fed41d7ec90e9ab7239dc4bffffe4d0b2b62 or later.

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

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/d3d6d7efdacc08616d23b3ac42272a494951dc0f>
- other: <https://git.kernel.org/stable/c/23194531595c5d1d4454e3a607b0c8fc0c4e8695>
- other: <https://git.kernel.org/stable/c/5211fed41d7ec90e9ab7239dc4bffffe4d0b2b62>

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

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