{"id":"CVE-2026-98724","state":"PUBLISHED","title":"nvmet: pci-epf: reject too-short SGL segments","description":"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.","publishedAt":"2026-10-18T15:47:01.614Z","updatedAt":"2026-10-19T09:24:34.979Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186","status":"affected","lessThan":"2423a05dd0f21330c47ce0ae1cb54a8b0be821e2","versionType":"git"},{"version":"0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186","status":"affected","lessThan":"472df1d103dbe3e9d09156f0667e36180e912c46","versionType":"git"},{"version":"0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186","status":"affected","lessThan":"5d5fbfbbacd1efb13a9bf91317d4fde859ede4b9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/pci-epf.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.56","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.10","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/pci-epf.c"]}],"references":["https://git.kernel.org/stable/c/2423a05dd0f21330c47ce0ae1cb54a8b0be821e2","https://git.kernel.org/stable/c/472df1d103dbe3e9d09156f0667e36180e912c46","https://git.kernel.org/stable/c/5d5fbfbbacd1efb13a9bf91317d4fde859ede4b9"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98724.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98724","state":"PUBLISHED","datePublished":"2026-10-18T15:47:01.614Z","dateUpdated":"2026-10-19T09:24:34.979Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.366Z"},"containers":{"cna":{"title":"nvmet: pci-epf: reject too-short SGL segments","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186","status":"affected","lessThan":"2423a05dd0f21330c47ce0ae1cb54a8b0be821e2","versionType":"git"},{"version":"0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186","status":"affected","lessThan":"472df1d103dbe3e9d09156f0667e36180e912c46","versionType":"git"},{"version":"0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186","status":"affected","lessThan":"5d5fbfbbacd1efb13a9bf91317d4fde859ede4b9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/pci-epf.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.56","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.10","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/pci-epf.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2423a05dd0f21330c47ce0ae1cb54a8b0be821e2"},{"url":"https://git.kernel.org/stable/c/472df1d103dbe3e9d09156f0667e36180e912c46"},{"url":"https://git.kernel.org/stable/c/5d5fbfbbacd1efb13a9bf91317d4fde859ede4b9"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:24:34.979Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.18.56"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.2.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}