evm: terminate and bound the evm_xattrs read buffer

Summary

CVECVE-2026-74399
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-08-15 06:22:41 UTC
Updated2026-08-15 06:22:41 UTC
DescriptionIn 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().

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected fa516b66a1bfce1d72f1620c54bdfebc493000d1 8df81954d22a653a8b01d46692cd56f71137269b git Not specified
CNA Linux Linux affected fa516b66a1bfce1d72f1620c54bdfebc493000d1 0b9f8282b40af4a99d6243d2cb939d14ff36b049 git Not specified
CNA Linux Linux affected fa516b66a1bfce1d72f1620c54bdfebc493000d1 a36cbfb85f26e6c6fb6529b1a364331b94dc88f3 git Not specified
CNA Linux Linux affected fa516b66a1bfce1d72f1620c54bdfebc493000d1 12ad52dc45a0c8c9d25e85b4a84201de4c5420ed git Not specified
CNA Linux Linux affected fa516b66a1bfce1d72f1620c54bdfebc493000d1 a0f64cf8bfcb39e533d9e27aeb763a8d81b7f39d git Not specified
CNA Linux Linux affected fa516b66a1bfce1d72f1620c54bdfebc493000d1 38b7d63b23aa9d2ddde7688040e9426d32be4065 git Not specified
CNA Linux Linux affected fa516b66a1bfce1d72f1620c54bdfebc493000d1 11143a19f5b8dc8f414deab87571134f9f447313 git Not specified
CNA Linux Linux affected 4.18 Not specified
CNA Linux Linux unaffected 4.18 semver Not specified
CNA Linux Linux unaffected 5.15.212 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.178 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.145 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.97 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.40 6.18.* semver Not specified
CNA Linux Linux unaffected 7.1.5 7.1.* semver Not specified
CNA Linux Linux unaffected 7.2-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/11143a19f5b8dc8f414deab87571134f9f447313 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0b9f8282b40af4a99d6243d2cb939d14ff36b049 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8df81954d22a653a8b01d46692cd56f71137269b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a36cbfb85f26e6c6fb6529b1a364331b94dc88f3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/12ad52dc45a0c8c9d25e85b4a84201de4c5420ed 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/38b7d63b23aa9d2ddde7688040e9426d32be4065 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a0f64cf8bfcb39e533d9e27aeb763a8d81b7f39d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report