CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's OrangeFS implementation, specifically in the `orangefs_prepare_cdm_array()` function, where improper handling of leading spaces in client debug masks can lead to a buffer overflow. This flaw allows for potential memory corruption, which could be exploited to execute arbitrary code or crash the system. Organizations using Linux with OrangeFS should prioritize addressing this issue to mitigate risks associated with memory safety vulnerabilities.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: orangefs: skip leading spaces before parsing client debug masks orangefs_prepare_cdm_array() sizes each client debug keyword buffer with strcspn(cds_head, " "), but then parses the keyword with %s. The %s conversion skips leading whitespace, while strcspn() does not. If a client debug entry starts with a space, the allocation can be sized for an empty keyword while sscanf() copies the following non-empty token. This can write past the end of the allocated keyword buffer. Skip leading spaces before computing the keyword length so the allocation matches the string parsed by sscanf().