CVE-2026-98724

nvmet: pci-epf: reject too-short SGL segments

Published Oct 18, 2026 CVSS 3.1 · 6.2 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

nvmet: pci-epf: reject too-short SGL segments

The host controls an SGL segment's length. A nonzero length smaller than
one SGL descriptor makes nr_descs zero, so
nvmet_pci_epf_get_sgl_segment() reads the type byte of sgls[-1] outside
the allocated buffer. If that byte contains a segment descriptor type,
the function also copies the preceding 16 bytes and returns a negative
descriptor count.

The read was reproduced in 3/3 KASAN boots with only the host transfer
mocked by a KUnit test:

BUG: KASAN: slab-out-of-bounds in nvmet_pci_epf_get_sgl_segment
Read of size 1 by task kunit_try_catch
Call Trace:
nvmet_pci_epf_get_sgl_segment
nvmet_pci_epf_short_sgl_test
Kernel panic - not syncing: KASAN: panic_on_warn set ...

Reject segments that cannot hold one descriptor before allocating or
transferring their contents.

Analysis

AI-generated

Technical impact

The vulnerability resides in the Linux kernel's nvmet subsystem, specifically within the pci-epf driver. The host controls the length of an SGL segment; when a non‑zero length that is shorter than the size of a single descriptor is reported, the driver sets the descriptor count to zero and then incorrectly reads the type byte from the byte immediately before the allocated buffer. This out‑of‑bounds read is reproduced as a KASAN slab‑out‑of‑bounds error that triggers a kernel panic. The fault can therefore be used to crash the system and potentially expose memory contents, but the description does not indicate that arbitrary code execution is possible.

Affected Systems

Any Linux kernel that has not yet integrated the nvmet‑pci‑epf fix is potentially vulnerable. The CVE does not list specific version numbers, so all kernels running the nvmet subsystem before the patch should be considered at risk.

Risk and Exploitability

The CVSS score of 6.2 reflects a medium severity rating, and the EPSS score of less than 1% indicates a very low probability of public exploitation. The vulnerability is not listed in the CISA KEV catalog, suggesting no known active exploitation. An attacker would almost certainly need local or privileged access to the NVMe subsystem to supply a malformed SGL, or would need to compromise a component that can relay such SGLs to the target. While the fault does not provide direct code execution, it can lead to a denial of service by forcing a kernel panic. Consequently, the risk is moderate but remains significant for systems that rely on nvmet.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the nvmet‑pci‑epf fix, which corrects an out‑of‑bounds read (CWE‑125) for SGL segment lengths.
  • If an update is not immediately possible, disable the nvmet target or restrict NVMe device access to trusted users or processes to limit exposure to malformed SGL submissions.
  • Monitor kernel logs for KASAN or NVMe BUG messages to detect attempts to exploit this fault and respond quickly.

Generated by OpenCVE AI on October 23, 2026 at 08:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9018-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9018-2 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-127
CWE-20
Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-127
CWE-20
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nvmet: pci-epf: reject too-short SGL segments The host controls an SGL segment's length. A nonzero length smaller than one SGL descriptor makes nr_descs zero, so nvmet_pci_epf_get_sgl_segment() reads the type byte of sgls[-1] outside the allocated buffer. If that byte contains a segment descriptor type, the function also copies the preceding 16 bytes and returns a negative descriptor count. The read was reproduced in 3/3 KASAN boots with only the host transfer mocked by a KUnit test: BUG: KASAN: slab-out-of-bounds in nvmet_pci_epf_get_sgl_segment Read of size 1 by task kunit_try_catch Call Trace: nvmet_pci_epf_get_sgl_segment nvmet_pci_epf_short_sgl_test Kernel panic - not syncing: KASAN: panic_on_warn set ... Reject segments that cannot hold one descriptor before allocating or transferring their contents.
Title nvmet: pci-epf: reject too-short SGL segments
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:24 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 19, 2026, 10:19 AM
Severity
Moderate
Public date
Oct 18, 2026, 12:00 AM