CVE-2026-74399

evm: terminate and bound the evm_xattrs read buffer

State
Published
Severity
Not scored
Published
Aug 15, 2026
Updated
Aug 17, 2026
Reserved
Aug 15, 2026

Read the record on cve.org

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().

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to before 8df81954d22a653a8b01d46692cd56f71137269bAffected
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to before 0b9f8282b40af4a99d6243d2cb939d14ff36b049Affected
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to before a36cbfb85f26e6c6fb6529b1a364331b94dc88f3Affected
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to before 12ad52dc45a0c8c9d25e85b4a84201de4c5420edAffected
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to before a0f64cf8bfcb39e533d9e27aeb763a8d81b7f39dAffected
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to before 38b7d63b23aa9d2ddde7688040e9426d32be4065Affected
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to before 11143a19f5b8dc8f414deab87571134f9f447313Affected
LinuxLinux
  • 4.18Affected
  • before 4.18Not affected
  • 5.15.212 through 5.15.*Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.