CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's handling of extended attributes (xattrs) in the evm_read_xattrs() function, where an uninitialized buffer can lead to reading beyond allocated memory. This could potentially allow an attacker to exploit the memory read to leak sensitive information. Organizations using Linux systems, particularly those managing sensitive data or relying on extended attributes, should prioritize addressing this issue to mitigate the risk of information disclosure.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: evm: terminate and bound the evm_xattrs read buffer evm_read_xattrs() allocates size + 1 bytes, fills them from the list of enabled xattrs, and then passes strlen(temp) to simple_read_from_buffer(). When no configured xattrs are enabled, the fill loop stores nothing and temp[0] remains uninitialized, so strlen() reads beyond initialized memory. Explicitly terminate the buffer after allocation, use snprintf() for each formatted line, and pass the accumulated length, without risk of truncation, to simple_read_from_buffer().