---
id: CVE-2026-98964
title: 'nvmet: use the local P2P device on metadata allocation failure'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  nvmet: use the local P2P device on metadata allocation failure

  nvmet_req_alloc_p2pmem_sgls() assigns req->p2p_dev only after the data
  and metadata SGL allocations succ…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= bcd9a0797d73eeff659582f23277e7ab6e5f18f3 <
    3c231142c4f4bb96836469eb276026ec55940093
  - >-
    Linux >= bcd9a0797d73eeff659582f23277e7ab6e5f18f3 <
    32f21607911a1f69c8f0f93a6c28fe6f8490aa98
  - >-
    Linux >= bcd9a0797d73eeff659582f23277e7ab6e5f18f3 <
    ce79a6c5cc1b8054ec8d3eba16adda4a36113438
  - >-
    Linux >= bcd9a0797d73eeff659582f23277e7ab6e5f18f3 <
    73bf0f9579633b531098a475e6e55c9316763aed
  - >-
    Linux >= bcd9a0797d73eeff659582f23277e7ab6e5f18f3 <
    4aa9c0f377a4de5e8fddce76b34ee4529639a1ff
  - Linux c440cd080761b18a52cac20f2a42e5da1e3995af
  - Linux 8a452d62e7cea3c8a2676a3b89a9118755a1a271
  - Linux >= 5.10.43 < 5.11
  - Linux >= 5.12.10 < 5.13
  - Linux 5.13
published: '2026-10-23'
updated: '2026-10-24'
sourceUpdated: '2026-10-24T14:09:40.850Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-98964'
references:
  - url: 'https://git.kernel.org/stable/c/3c231142c4f4bb96836469eb276026ec55940093'
  - url: 'https://git.kernel.org/stable/c/32f21607911a1f69c8f0f93a6c28fe6f8490aa98'
  - url: 'https://git.kernel.org/stable/c/ce79a6c5cc1b8054ec8d3eba16adda4a36113438'
  - url: 'https://git.kernel.org/stable/c/73bf0f9579633b531098a475e6e55c9316763aed'
  - url: 'https://git.kernel.org/stable/c/4aa9c0f377a4de5e8fddce76b34ee4529639a1ff'
tags:
  - cve.org
epss: 0.00209
epssPercentile: 0.1049
ingestedAt: '2026-10-23T13:24:55.553Z'
---

## Overview

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

nvmet: use the local P2P device on metadata allocation failure

nvmet_req_alloc_p2pmem_sgls() assigns req->p2p_dev only after the data
and metadata SGL allocations succeed. If the data allocation succeeds
but the metadata allocation fails, out_free_sg passes req->p2p_dev to
pci_p2pmem_free_sgl() before that assignment has taken place.

Pass the local p2p_dev argument instead, so cleanup uses the same PCI
device as the successful data allocation.

## Affected

- `Linux >= bcd9a0797d73eeff659582f23277e7ab6e5f18f3 < 3c231142c4f4bb96836469eb276026ec55940093`
- `Linux >= bcd9a0797d73eeff659582f23277e7ab6e5f18f3 < 32f21607911a1f69c8f0f93a6c28fe6f8490aa98`
- `Linux >= bcd9a0797d73eeff659582f23277e7ab6e5f18f3 < ce79a6c5cc1b8054ec8d3eba16adda4a36113438`
- `Linux >= bcd9a0797d73eeff659582f23277e7ab6e5f18f3 < 73bf0f9579633b531098a475e6e55c9316763aed`
- `Linux >= bcd9a0797d73eeff659582f23277e7ab6e5f18f3 < 4aa9c0f377a4de5e8fddce76b34ee4529639a1ff`
- `Linux c440cd080761b18a52cac20f2a42e5da1e3995af`
- `Linux 8a452d62e7cea3c8a2676a3b89a9118755a1a271`
- `Linux >= 5.10.43 < 5.11`
- `Linux >= 5.12.10 < 5.13`
- `Linux 5.13`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
