bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-99795

—unknown

linux6.18.60 · 6.18.54 · 6.18.8in 3 of 4 releases

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach linux · 6 builds in 3 of 4 releases

full reviewcross-check✓ a member decided

v25.03.1not in NVD's range
v26.01.06.18.8
v26.09.06.18.54
v26.10.0latest6.18.60
aarch64_minimal
x86_64
aarch64_minimal–
x86_64–
aarch64_minimalNot built · autox86_64Not built · autoaarch64_minimalNot built · autox86_64Not built · autoaarch64_minimalNot built · autox86_64Not built · auto

Description · NVD

cxl/features: Ensure that count is set before access to ent[] __counted_by()

get_supported_features() assigns entries->num_features only after the memcpy() loop that fills entries->ent[] has already run. Since ent[] is __counted_by(num_features), the compiler's bounds instrumentation sees a 0-length array during that loop and FORTIFY_SOURCE trips on the memcpy. Set @num_features right after allocation, before any write into ent[], so the bound is correct for the whole lifetime of the array.

This was found via a fortify panic:

 memcpy: detected buffer overflow: 384 byte write of buffer size 0
 WARNING: lib/string_helpers.c:1035 at __fortify_report+0x54/0xa0
 kernel BUG at lib/string_helpers.c:1043!
 Call trace:
  __fortify_panic+0x10/0x18
  get_supported_features.isra.0+0x4a0/0x4d0 [cxl_core]
  devm_cxl_setup_features+0x84/0x120 [cxl_core]
  cxl_pci_probe+0x254/0x5e0 [cxl_pci]

Same class of bug, same fix shape as commit 6c9d2e87df40 ("cxl/fwctl: Fix __fortify_panic"), which fixed the analogous issue in cxlctl_get_supported_features() but missed this one.

[ dj: Fixed up title typo per Jonathan. ]

Published 2026-11-20NVD

References 3

Build check · v26.10.0 aarch64_minimal

None of the source files the CNA lists for CVE-2026-99795 (drivers/cxl/core/features.c) produced an object file in linux-6.18.60, so the affected code is not compiled into this kernel configuration.

Evidence 1
  1. object file absent: not compiled

    output/build/linux-6.18.60/drivers/cxl/core/features.o

Members of Kernel Kit decide. Sign in if you are one.