{"id":"CVE-2026-98724","aliases":["CVE-2026-98724"],"related":[],"kind":"vulnerability","state":"published","title":"nvmet: pci-epf: reject too-short SGL segments","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: pci-epf: reject too-short SGL segments\n\nThe host controls an SGL segment's length. A nonzero length smaller than\none SGL descriptor makes nr_descs zero, so\nnvmet_pci_epf_get_sgl_segment() reads the type byte of sgls[-1] outside\nthe allocated buffer. If that byte contains a segment descriptor type,\nthe function also copies the preceding 16 bytes and returns a negative\ndescriptor count.\n\nThe read was reproduced in 3/3 KASAN boots with only the host transfer\nmocked by a KUnit test:\n\n  BUG: KASAN: slab-out-of-bounds in nvmet_pci_epf_get_sgl_segment\n  Read of size 1 by task kunit_try_catch\n  Call Trace:\n   nvmet_pci_epf_get_sgl_segment\n   nvmet_pci_epf_short_sgl_test\n  Kernel panic - not syncing: KASAN: panic_on_warn set ...\n\nReject segments that cannot hold one descriptor before allocating or\ntransferring their contents.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: pci-epf: reject too-short SGL segments\n\nThe host controls an SGL segment's length. A nonzero length smaller than\none SGL descriptor makes nr_descs zero, so\nnvmet_pci_epf_get_sgl_segment() reads the type byte of sgls[-1] outside\nthe allocated buffer. If that byte contains a segment descriptor type,\nthe function also copies the preceding 16 bytes and returns a negative\ndescriptor count.\n\nThe read was reproduced in 3/3 KASAN boots with only the host transfer\nmocked by a KUnit test:\n\n  BUG: KASAN: slab-out-of-bounds in nvmet_pci_epf_get_sgl_segment\n  Read of size 1 by task kunit_try_catch\n  Call Trace:\n   nvmet_pci_epf_get_sgl_segment\n   nvmet_pci_epf_short_sgl_test\n  Kernel panic - not syncing: KASAN: panic_on_warn set ...\n\nReject segments that cannot hold one descriptor before allocating or\ntransferring their contents.","source":"cvelist"}],"published":"2026-10-18T15:47:01.614Z","modified":"2026-10-19T10:19:36.590Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186","fixed":"2423a05dd0f21330c47ce0ae1cb54a8b0be821e2","status":"affected"},{"type":"git","introduced":"0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186","fixed":"472df1d103dbe3e9d09156f0667e36180e912c46","status":"affected"},{"type":"git","introduced":"0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186","fixed":"5d5fbfbbacd1efb13a9bf91317d4fde859ede4b9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.18.56","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.10","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/2423a05dd0f21330c47ce0ae1cb54a8b0be821e2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/472df1d103dbe3e9d09156f0667e36180e912c46","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d5fbfbbacd1efb13a9bf91317d4fde859ede4b9","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98724","url":"https://www.cve.org/CVERecord?id=CVE-2026-98724","licence":"CVE Terms of Use","modified":"2026-10-19T09:24:34.979Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98724","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98724","licence":"Public domain","modified":"2026-10-19T10:19:36.590Z"}],"updatedAt":"2026-11-25T22:59:45.281Z","epss":{"score":0.00198,"percentile":0.10032,"date":"2026-12-01T12:00:22.000Z"}}