CVE-2026-74399
evm: terminate and bound the evm_xattrs read buffer
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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().
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
Version range not reported
- Linux Linux
4.18
References 7
git.kernel.org
- stable/c/8df81954d22a653a8b01d46692cd56f71137269b
- stable/c/0b9f8282b40af4a99d6243d2cb939d14ff36b049
- stable/c/a36cbfb85f26e6c6fb6529b1a364331b94dc88f3
- stable/c/12ad52dc45a0c8c9d25e85b4a84201de4c5420ed
- stable/c/a0f64cf8bfcb39e533d9e27aeb763a8d81b7f39d
- stable/c/38b7d63b23aa9d2ddde7688040e9426d32be4065
- stable/c/11143a19f5b8dc8f414deab87571134f9f447313