Buffer Overflow Vulnerability in Linux Kernel Affecting CXL Features
CVE-2026-99795
What is CVE-2026-99795?
A buffer overflow vulnerability exists in the Linux kernel related to the handling of CXL features. In the function get_supported_features(), the assignment of entries->num_features occurs after a memcpy() operation, which fills the entries->ent[] array. This misalignment causes the compiler’s bounds instrumentation to interpret the array as having a length of zero, resulting in a security risk. The solution is to set num_features immediately following memory allocation, ensuring the bound remains valid throughout the array's lifetime. This issue was identified via a fortify panic, which triggered a warning due to the detected buffer overflow during the write operation, highlighting the need for stringent check mechanisms within the kernel code. The vulnerability is reminiscent of a previously resolved issue in the codebase, indicating the necessity for continuous vigilance in addressing similar coding errors.
Affected Version(s)
Linux f0e6a2329bf9d44138be2163370ae9537cbdaf74 < 63714fa4033b51ce615be6f083be0b19847d0d1e
Linux f0e6a2329bf9d44138be2163370ae9537cbdaf74
Linux f0e6a2329bf9d44138be2163370ae9537cbdaf74