Description
In the Linux kernel, the following vulnerability has been resolved:

ima: fix out-of-bounds read in xattr_verify()

The digest-length check in xattr_verify() mixes int and size_t:

if (xattr_len - sizeof(xattr_value->type) - hash_start >=
iint->ima_hash->length)

sizeof() yields size_t, so the usual arithmetic conversions promote
the whole left-hand side to unsigned 64-bit before the subtraction
runs. For a truncated xattr this underflows instead of going negative:
a 1-byte IMA_XATTR_DIGEST_NG xattr (xattr_len == 1, hash_start == 1)
turns "1 - 1 - 1" into SIZE_MAX, which is trivially >= ima_hash->length.
The check then passes and the following memcmp() reads
iint->ima_hash->length bytes starting past the end of the buffer
vfs_getxattr_alloc() allocated for it.

Nothing upstream clamps xattr_len back into a safe range first:
ima_get_hash_algo() only special-cases xattr_len < 2 to pick a default
algorithm, and evm_verifyxattr() returns INTEGRITY_UNKNOWN rather than
failing when no HMAC key is loaded, so a truncated security.ima value
reaches the length check as-is.

Rewrite the comparison so every operand stays a signed int and no
implicit conversion to size_t can occur.
Published: 2026-08-22
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Information disclosure
Action: Immediate Patch
AI Analysis

Impact

The Linux kernel Integrity Measurement Architecture contains a flaw in xattr_verify() where an integer subtraction involving a size_t can underflow, letting an attacker craft a truncated xattr that bypasses the length check. The subsequent memcmp then reads beyond the allocated buffer, exposing kernel memory contents. An attacker who can write or manipulate IMA xattrs could gain sensitive data or cause a crash. The weakness is an out‑of‑bounds read (CWE‑125).

Affected Systems

All Linux kernel builds before the patch commit are affected. The advisory lists commit references from the kernel git history; any distribution kernel that contains the IMA code without these commits can be vulnerable. Because the fix is in the mainline kernel, any system running an unpatched kernel from the affected range is at risk. Specific vendor or distribution details are not enumerated, but the kernel version span matches any upstream build prior to the commit. No specific affected version information is available.

Risk and Exploitability

The vulnerability is not in the CISA KEV catalog. The EPSS score indicates a very low exploitation probability (<1%). No public exploits are known, but the flaw allows a local attacker who can create or modify IMA xattrs to read kernel memory or crash the system. The CVSS score is 5.5, indicating a moderate severity. The potential to read sensitive kernel data classifies the impact as moderate for privileged users until the kernel is patched. Attackers would need local privileged access to write the relevant xattrs. The attack vector is not explicitly stated in the CVE description; it is inferred that local privileged access is required.

Generated by OpenCVE AI on August 24, 2026 at 19:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that contains the commit(s) 27f3924061592d0ef6b04e16f48754b6cb6adf27 and its related patches to correct the integer underflow in xattr_verify()
  • Reboot the system or reload the kernel to ensure the updated code is active
  • If a patched kernel is not yet available, configure IMA to disallow the creation or modification of the offending xattrs, or disable the IMA feature entirely until the fix is applied

Generated by OpenCVE AI on August 24, 2026 at 19:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4777-1 linux security update
Debian DSA Debian DSA DSA-6466-1 linux security update
History

Mon, 24 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-192

Mon, 24 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
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, 22 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
CWE-192

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

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ima: fix out-of-bounds read in xattr_verify() The digest-length check in xattr_verify() mixes int and size_t: if (xattr_len - sizeof(xattr_value->type) - hash_start >= iint->ima_hash->length) sizeof() yields size_t, so the usual arithmetic conversions promote the whole left-hand side to unsigned 64-bit before the subtraction runs. For a truncated xattr this underflows instead of going negative: a 1-byte IMA_XATTR_DIGEST_NG xattr (xattr_len == 1, hash_start == 1) turns "1 - 1 - 1" into SIZE_MAX, which is trivially >= ima_hash->length. The check then passes and the following memcmp() reads iint->ima_hash->length bytes starting past the end of the buffer vfs_getxattr_alloc() allocated for it. Nothing upstream clamps xattr_len back into a safe range first: ima_get_hash_algo() only special-cases xattr_len < 2 to pick a default algorithm, and evm_verifyxattr() returns INTEGRITY_UNKNOWN rather than failing when no HMAC key is loaded, so a truncated security.ima value reaches the length check as-is. Rewrite the comparison so every operand stays a signed int and no implicit conversion to size_t can occur.
Title ima: fix out-of-bounds read in xattr_verify()
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-22T15:32:41.480Z

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

Link: CVE-2026-74671

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T16:16:41.063

Modified: 2026-08-22T16:16:41.063

Link: CVE-2026-74671

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-74671 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-24T20:00:04Z

Weaknesses