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().
Published: 2026-08-15
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s EVM subsystem contains a flaw in evm_read_xattrs() where a buffer of size plus one bytes is allocated but never initialized before a strlen() call. When no extended attributes are enabled the buffer holds garbage, and strlen() traverses uninitialized memory, potentially exposing kernel memory contents to a user process. A fault could also occur if the read reaches an invalid memory region, possibly destabilizing the kernel.

Affected Systems

All Linux distributions that ship the unpatched EVM module and kernel code are affected. The vulnerability is not confined to a specific kernel release; any build that contains the pre‑fix code paths is susceptible. If the system’s kernel has not been updated with the upstream change that properly terminates the buffer and uses snprintf(), the system remains vulnerable.

Risk and Exploitability

The flaw is local; an attacker needs the ability to read EVM extended attributes on a file, typically granted to processes with file access rights. No public remote exploitation pathway is known. The CVSS score of 5.5 indicates moderate impact, and the EPSS score of < 1% suggests a low probability of exploitation. The issue is not listed in the CISA KEV catalog. The primary risk is information disclosure for environments that use EVM attributes, with limited impact otherwise.

Generated by OpenCVE AI on August 22, 2026 at 01:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a version that contains the upstream fix for evm_read_xattrs, such as by applying the latest distribution patches or rebuilding the kernel with the updated source.
  • If a kernel upgrade is not immediately possible, prevent the vulnerability from being exercised by disabling or unloading the EVM module, or configuring the kernel to reject EVM attributes completely.
  • Monitor kernel logs for abnormal EVM read errors or memory corruption signs, ensuring that any residual uninitialized buffer usage is detected and addressed promptly.

Generated by OpenCVE AI on August 22, 2026 at 01:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 00:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-126

Wed, 19 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sat, 15 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-126

Sat, 15 Aug 2026 06:15:00 +0000

Type Values Removed Values Added
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().
Title evm: terminate and bound the evm_xattrs read buffer
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:18:39.008Z

Reserved: 2026-08-15T05:44:03.891Z

Link: CVE-2026-74399

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:41.917

Modified: 2026-08-17T06:19:35.083

Link: CVE-2026-74399

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-74399 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T02:00:17Z

Weaknesses