Skip to content
Medium 6.8

nvmet: fix preempt of another registrant by the reservation holder

CVE-2026-138815 First seen on SecPulse

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 6.13.0, < 6.18.63→ 6.18.63
≥ 6.19.0, < 7.3.4→ 7.3.4

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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

nvmet: fix preempt of another registrant by the reservation holder

Unless the reservation is of an All Registrants type, nvmet_pr_preempt()
treats every Reservation Acquire command with the Preempt or Preempt and
Abort action that is sent by the reservation holder as the holder
preempting itself. It updates the reservation type to RTYPE and
completes the command successfully without looking at PRKEY.

NVMe Base Specification 2.1, section 8.1.22.7 makes the action depend
on PRKEY for these reservation types, no matter which registrant sends
the command:

  • PRKEY matches the key of the reservation holder: the reservation is
    preempted. This is how a holder preempts itself.
  • PRKEY does not match the key of the holder and is not 0h: the
    registrants whose key matches PRKEY are unregistered.
  • PRKEY does not match the key of the holder and is 0h: the command is
    aborted with Invalid Field in Command.

With the current code, a holder that preempts with the key of another
registrant leaves that registrant registered, changes the reservation
type to RTYPE and still gets a successful completion. With hosts A, B
and C registered with the keys 0xa, 0xb and 0xc, and A holding an
Exclusive Access - Registrants Only reservation, A sends:

nvme resv-acquire /dev/nvme1 -n 1 --crkey=0xa --prkey=0xb \

    --rtype=4 --racqa=1

NVME Reservation Acquire success

nvme resv-report /dev/nvme1 -n 1 --eds |…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details