CVE-2026-99517: nvmet: fix use-after-free of the old registrant in nvmet_pr_preempt()

Published Nov 19, 2026
·
Updated

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

nvmet: fix use-after-free of the old registrant in nvmetprpreempt()

nvmetprpreempt() handles a preempt sent by the reservation holder by changing the reservation type with nvmetprupdateregattr(), 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 kfreercu().

If the reservation type changed, nvmetprpreempt() then hands &reg->hostid of that old registrant to nvmetprresvreleased(). 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->prsem 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. kfreercu() 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 Software

2 affected componentsFixes available
linux/kernel>=6.13.0<6.18.61
6.18.61
linux/kernel>=6.19.0<7.3.2
7.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.61
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2

Event History

Nov 19, 2026
CVE Published
via MITRE·02:44 PM
Data Sourced
via MITRE·02:44 PM
Description
Data Sourced
via OSV·02:44 PM
DescriptionAffected Software
Data Sourced
via NVD·03:18 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203