FKIE_CVE-2026-138815

Vulnerability from fkie_nvd - Published: 2026-11-30 14:17 - Updated: 2026-11-30 14:17
Severity
Summary
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 | grep '^regctl ' regctl : 3 and B can still write to the namespace. Preempt and Abort (--racqa=2) gives the same result. When C sends the preempt instead (--crkey=0xc), B is unregistered and its writes fail with Reservation Conflict. This defeats fencing in the pNFS SCSI layout server. nfsd holds the reservation and fences a client that does not return its layout by calling pr_preempt() with the key of that client and the abort flag, which is the command RFC 9561 section 2.2.3 asks for. On an nvmet namespace the preempt succeeds, nfsd logs the client as fenced, and the client keeps writing to the device. In a test with an nfsd server and two clients on an nvmet-tcp namespace, the namespace still had three registrants after the fence and the fenced client went on writing to it. With this patch two registrants are left and the writes of the fenced client fail with a reservation conflict. Take the self preempt path only when PRKEY is the key of the holder. Any other PRKEY sent by the holder is then handled by the code that already serves a non-holder registrant, for Preempt and for Preempt and Abort. For a host that holds the reservation this changes the following: - A preempt with the key of another registrant unregisters the registrants with that key, sends them the registration preempted notification and leaves the reservation type alone. - A preempt with PRKEY 0h fails with Invalid Field in Command. A holder that changed its reservation type this way has to pass its own key in PRKEY, which works with and without this patch. - A preempt with a PRKEY that matches no registrant fails with Reservation Conflict. The specification defines that status only for the All Registrants types. It is what nvmet already returns to a non-holder registrant in this case and what the SCSI target returns for an unregistered key. nfsd treats it as a successful fence. Not changed: when the holder preempts itself, registrants that share its key stay registered.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/nvme/target/pr.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "7a4ee76f0e8f47f5eee3f63d8a3ed20f5c672e6a",
              "status": "affected",
              "version": "5a47c2080a7316f184107464e4f76737c0c05186",
              "versionType": "git"
            },
            {
              "lessThan": "53e5b0b2a2be40d09ed2a3e413e3ab9ed60b7cf2",
              "status": "affected",
              "version": "5a47c2080a7316f184107464e4f76737c0c05186",
              "versionType": "git"
            },
            {
              "lessThan": "d9e84d4e19994818b80846bd2abb7b396e4116a9",
              "status": "affected",
              "version": "5a47c2080a7316f184107464e4f76737c0c05186",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/nvme/target/pr.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.13"
            },
            {
              "lessThan": "6.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: fix preempt of another registrant by the reservation holder\n\nUnless the reservation is of an All Registrants type, nvmet_pr_preempt()\ntreats every Reservation Acquire command with the Preempt or Preempt and\nAbort action that is sent by the reservation holder as the holder\npreempting itself.  It updates the reservation type to RTYPE and\ncompletes the command successfully without looking at PRKEY.\n\nNVMe Base Specification 2.1, section 8.1.22.7 makes the action depend\non PRKEY for these reservation types, no matter which registrant sends\nthe command:\n\n - PRKEY matches the key of the reservation holder: the reservation is\n   preempted.  This is how a holder preempts itself.\n - PRKEY does not match the key of the holder and is not 0h: the\n   registrants whose key matches PRKEY are unregistered.\n - PRKEY does not match the key of the holder and is 0h: the command is\n   aborted with Invalid Field in Command.\n\nWith the current code, a holder that preempts with the key of another\nregistrant leaves that registrant registered, changes the reservation\ntype to RTYPE and still gets a successful completion.  With hosts A, B\nand C registered with the keys 0xa, 0xb and 0xc, and A holding an\nExclusive Access - Registrants Only reservation, A sends:\n\n  # nvme resv-acquire /dev/nvme1 -n 1 --crkey=0xa --prkey=0xb \\\n        --rtype=4 --racqa=1\n  NVME Reservation Acquire success\n  # nvme resv-report /dev/nvme1 -n 1 --eds | grep \u0027^regctl \u0027\n  regctl    : 3\n\nand B can still write to the namespace.  Preempt and Abort (--racqa=2)\ngives the same result.  When C sends the preempt instead (--crkey=0xc),\nB is unregistered and its writes fail with Reservation Conflict.\n\nThis defeats fencing in the pNFS SCSI layout server.  nfsd holds the\nreservation and fences a client that does not return its layout by\ncalling pr_preempt() with the key of that client and the abort flag,\nwhich is the command RFC 9561 section 2.2.3 asks for.  On an nvmet\nnamespace the preempt succeeds, nfsd logs the client as fenced, and the\nclient keeps writing to the device.  In a test with an nfsd server and\ntwo clients on an nvmet-tcp namespace, the namespace still had three\nregistrants after the fence and the fenced client went on writing to\nit.  With this patch two registrants are left and the writes of the\nfenced client fail with a reservation conflict.\n\nTake the self preempt path only when PRKEY is the key of the holder.\nAny other PRKEY sent by the holder is then handled by the code that\nalready serves a non-holder registrant, for Preempt and for Preempt and\nAbort.  For a host that holds the reservation this changes the\nfollowing:\n\n - A preempt with the key of another registrant unregisters the\n   registrants with that key, sends them the registration preempted\n   notification and leaves the reservation type alone.\n - A preempt with PRKEY 0h fails with Invalid Field in Command.  A\n   holder that changed its reservation type this way has to pass its\n   own key in PRKEY, which works with and without this patch.\n - A preempt with a PRKEY that matches no registrant fails with\n   Reservation Conflict.  The specification defines that status only\n   for the All Registrants types.  It is what nvmet already returns to\n   a non-holder registrant in this case and what the SCSI target\n   returns for an unregistered key.  nfsd treats it as a successful\n   fence.\n\nNot changed: when the holder preempts itself, registrants that share\nits key stay registered."
    }
  ],
  "id": "CVE-2026-138815",
  "lastModified": "2026-11-30T14:17:35.343",
  "metrics": {},
  "published": "2026-11-30T14:17:35.343",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/53e5b0b2a2be40d09ed2a3e413e3ab9ed60b7cf2"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/7a4ee76f0e8f47f5eee3f63d8a3ed20f5c672e6a"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/d9e84d4e19994818b80846bd2abb7b396e4116a9"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.