{"id":"CVE-2026-99795","aliases":[],"cve":{"records":[{"id":"CVE-2026-99795","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.435Z","published":"2026-11-20T05:51:54.478Z","modified":"2026-11-20T05:51:54.478Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-20T05:51:54.478Z"}],"references":[{"url":"https://git.kernel.org/stable/c/63714fa4033b51ce615be6f083be0b19847d0d1e","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/deb8b87c027db150de626a5808f648b1e52d90a1","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/c1031c2474f73261d8d5e4deef2b5dc20fb964f5","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"cxl/features: Ensure that count is set before access to ent[] __counted_by()","titleSource":"Linux","descriptionSource":"Linux","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/features: Ensure that count is set before access to ent[] __counted_by()\n\nget_supported_features() assigns entries->num_features only after the\nmemcpy() loop that fills entries->ent[] has already run. Since ent[]\nis __counted_by(num_features), the compiler's bounds instrumentation\nsees a 0-length array during that loop and FORTIFY_SOURCE trips on\nthe memcpy. Set @num_features right after allocation, before any\nwrite into ent[], so the bound is correct for the whole lifetime of\nthe array.\n\nThis was found via a fortify panic:\n\n memcpy: detected buffer overflow: 384 byte write of buffer size 0\n WARNING: lib/string_helpers.c:1035 at __fortify_report+0x54/0xa0\n kernel BUG at lib/string_helpers.c:1043!\n Call trace:\n  __fortify_panic+0x10/0x18\n  get_supported_features.isra.0+0x4a0/0x4d0 [cxl_core]\n  devm_cxl_setup_features+0x84/0x120 [cxl_core]\n  cxl_pci_probe+0x254/0x5e0 [cxl_pci]\n\nSame class of bug, same fix shape as commit 6c9d2e87df40\n(\"cxl/fwctl: Fix __fortify_panic\"), which fixed the analogous issue\nin cxlctl_get_supported_features() but missed this one.\n\n[ dj: Fixed up title typo per Jonathan. ]","score":null,"severity":"unknown","published":"2026-11-20T05:51:54.478Z","modified":"2026-11-20T05:51:54.478Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"f0e6a2329bf9d44138be2163370ae9537cbdaf74","status":"affected","lessThan":"63714fa4033b51ce615be6f083be0b19847d0d1e","versionType":"git"},{"version":"f0e6a2329bf9d44138be2163370ae9537cbdaf74","status":"affected","lessThan":"deb8b87c027db150de626a5808f648b1e52d90a1","versionType":"git"},{"version":"f0e6a2329bf9d44138be2163370ae9537cbdaf74","status":"affected","lessThan":"c1031c2474f73261d8d5e4deef2b5dc20fb964f5","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99795"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.5","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99795"}],"remediation":[],"references":["https://git.kernel.org/stable/c/63714fa4033b51ce615be6f083be0b19847d0d1e","https://git.kernel.org/stable/c/deb8b87c027db150de626a5808f648b1e52d90a1","https://git.kernel.org/stable/c/c1031c2474f73261d8d5e4deef2b5dc20fb964f5"],"sources":[{"name":"CVE","id":"CVE-2026-99795","modified":"2026-11-20T05:51:54.478Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99795"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-20T05:58:09.272Z","kev":{"status":"not-listed","checkedAt":"2026-11-22T12:45:32.449Z"},"coverage":[{"source":"NVD","status":"no-result","checkedAt":"2026-11-20T06:00:31.845Z","attemptedAt":"2026-11-20T06:00:31.845Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-20T06:00:32.794Z","attemptedAt":"2026-11-20T06:00:32.794Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-20T06:00:32.786Z","attemptedAt":"2026-11-20T06:00:32.786Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-20T06:00:32.794Z","attemptedAt":"2026-11-20T06:00:32.794Z"}],"evidence":[],"aiSummary":{"text":"The Linux kernel has a vulnerability in cxl/features where the count is not set before accessing ent[], causing a buffer overflow. This issue affects Linux kernel versions 6.15 and possibly others. The vulnerability may cause a fortify panic due to a detected buffer overflow.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-20T06:11:08.605Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-99795"}]}}