# CVE-2026-99517: nvmet: fix use-after-free of the old registrant in nvmet\_pr\_preempt()

- **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-28)
- **Published:** 2026-11-19T14:44:21.976Z
- **Modified:** 2026-11-19T15:18:07.237Z

## Who should check

- Anyone running Linux \>= 5a47c2080a7316f184107464e4f76737c0c05186, \< 506c066da8fb2cef32210ca84439c7bb9855504f; \>= 5a47c2080a7316f184107464e4f76737c0c05186, \< fd7843365a9e73f6ee32c30487c21cb62b84c0a2; \>= 5a47c2080a7316f184107464e4f76737c0c05186, \< f316aa7f018840523939183425394931b373e4d7
- Anyone running Linux 6.13

## Description

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

nvmet: fix use-after-free of the old registrant in nvmet\_pr\_preempt()

nvmet\_pr\_preempt() handles a preempt sent by the reservation holder by
changing the reservation type with nvmet\_pr\_update\_reg\_attr(), unless
the reservation is of an All Registrants type.  For the holder that
helper does not modify the registrant in place: it puts a copy on the
registrant list, points pr-\>holder to the copy and passes the old
registrant to kfree\_rcu().

If the reservation type changed, nvmet\_pr\_preempt() then hands
&reg-\>hostid of that old registrant to nvmet\_pr\_resv\_released().  Unless
the reservation released notification is masked, that function takes
subsys-\>lock and compares the host id against every controller of the
subsystem.  The caller only holds pr-\>pr\_sem and is not in an RCU
read-side critical section, so nothing keeps the old registrant alive
while it is read.

The result is a read of 16 freed bytes that decides which controllers
get the notification.  Found by code inspection.  kfree\_rcu() defers
the free, so it usually happens after the read; when the pending free
is forced to run before the read, KASAN reports the host id as freed
memory.

Pass the host id of the controller that sent the command instead.  The
registrant was looked up by that host id, and the controller outlives
the request.

## Affected and fixed versions

- Linux: \>= 5a47c2080a7316f184107464e4f76737c0c05186, \< 506c066da8fb2cef32210ca84439c7bb9855504f; \>= 5a47c2080a7316f184107464e4f76737c0c05186, \< fd7843365a9e73f6ee32c30487c21cb62b84c0a2; \>= 5a47c2080a7316f184107464e4f76737c0c05186, \< f316aa7f018840523939183425394931b373e4d7 (cvelist)
- Linux: 6.13 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-99517.md
Affected: Linux >= 5a47c2080a7316f184107464e4f76737c0c05186, < 506c066da8fb2cef32210ca84439c7bb9855504f; >= 5a47c2080a7316f184107464e4f76737c0c05186, < fd7843365a9e73f6ee32c30487c21cb62b84c0a2; >= 5a47c2080a7316f184107464e4f76737c0c05186, < f316aa7f018840523939183425394931b373e4d7; Linux 6.13
Fixed in: Linux 506c066da8fb2cef32210ca84439c7bb9855504f

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

There is no confirmed exploitation: CVE-2026-99517 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-28).

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

It has no CVSS score yet. Unknown.

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

Linux \>= 5a47c2080a7316f184107464e4f76737c0c05186, \< 506c066da8fb2cef32210ca84439c7bb9855504f; \>= 5a47c2080a7316f184107464e4f76737c0c05186, \< fd7843365a9e73f6ee32c30487c21cb62b84c0a2; \>= 5a47c2080a7316f184107464e4f76737c0c05186, \< f316aa7f018840523939183425394931b373e4d7; Linux 6.13.

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

Yes. Fixed in Linux 506c066da8fb2cef32210ca84439c7bb9855504f. No fix listed yet: follow the vendor advisory.

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

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/506c066da8fb2cef32210ca84439c7bb9855504f>
- other: <https://git.kernel.org/stable/c/fd7843365a9e73f6ee32c30487c21cb62b84c0a2>
- other: <https://git.kernel.org/stable/c/f316aa7f018840523939183425394931b373e4d7>

## 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-99517>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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