Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-74399

evm: terminate and bound the evm_xattrs read buffer

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

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to < 8df81954d22a653a8b01d46692cd56f71137269baffected
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to < 0b9f8282b40af4a99d6243d2cb939d14ff36b049affected
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to < a36cbfb85f26e6c6fb6529b1a364331b94dc88f3affected
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to < 12ad52dc45a0c8c9d25e85b4a84201de4c5420edaffected
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to < a0f64cf8bfcb39e533d9e27aeb763a8d81b7f39daffected
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to < 38b7d63b23aa9d2ddde7688040e9426d32be4065affected
  • fa516b66a1bfce1d72f1620c54bdfebc493000d1 to < 11143a19f5b8dc8f414deab87571134f9f447313affected

Linux Linux

Default version status: affected

  • 4.18affected
  • 0 to < 4.18unaffected
  • 5.15.212 to ≤ 5.15.*unaffected
  • 6.1.178 to ≤ 6.1.*unaffected
  • 6.6.145 to ≤ 6.6.*unaffected
  • 6.12.97 to ≤ 6.12.*unaffected
  • 6.18.40 to ≤ 6.18.*unaffected
  • 7.1.5 to ≤ 7.1.*unaffected
  • 7.2 to ≤ *unaffected

References