Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.18.56, 7.2.10
CVEs
CVE-2026-98724
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 03:10 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 18 Oct 2026, 15:47 UTC

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.

osv:CVE-2026-98724

Kernel

Fixed versions: 6.18.56, 7.2.10

Complete source record
{
  "id": "6fafa0ebb47f7da427304c015bc95d46d174cd323b04f5b81e1a5556b59a31fe",
  "url": "https://osv.dev/vulnerability/CVE-2026-98724",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "nvmet: pci-epf: reject too-short SGL segments",
    "summary": "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.",
    "evidence": "osv:CVE-2026-98724",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.18.56",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-98724",
      "aliases": [
        "CVE-2026-98724"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186"
                },
                {
                  "fixed": "2423a05dd0f21330c47ce0ae1cb54a8b0be821e2"
                },
                {
                  "fixed": "472df1d103dbe3e9d09156f0667e36180e912c46"
                },
                {
                  "fixed": "5d5fbfbbacd1efb13a9bf91317d4fde859ede4b9"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98724.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.14.0"
                },
                {
                  "fixed": "6.18.56"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98724.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.414491906Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2423a05dd0f21330c47ce0ae1cb54a8b0be821e2",
        "https://git.kernel.org/stable/c/472df1d103dbe3e9d09156f0667e36180e912c46",
        "https://git.kernel.org/stable/c/5d5fbfbbacd1efb13a9bf91317d4fde859ede4b9",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98724.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-98724",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98724.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-98724",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 492122,
  "published_at": "2026-10-18T15:47:01.614+00:00"
}