# CVE-2026-74671: ima: fix out-of-bounds read in xattr\_verify()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-22 · Modified: 2026-11-06
- Aliases: UBUNTU-CVE-2026-74671, DEBIAN-CVE-2026-74671
- Record: https://cvemate.com/vulnerability/CVE-2026-74671 · JSON: https://cvemate.com/vulnerability/CVE-2026-74671/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v4.0, OSV · Ubuntu) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- EPSS: 0.177%, percentile 7.59%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 172)

- debian linux (Debian): \< 6.1.187-1 \| \< 6.12.105-1 \| \< 7.1.9-1
- debian linux-6.12 (Debian): \< 6.12.107-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-198.208 \| \< 6.8.0-149.149 \| \< 7.0.0-42.42
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1117.124 \| \< 6.8.0-1069.74 \| \< 7.0.0-1016.17
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1117.124~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74~22.04.1
- ubuntu linux-aws-7.0 (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-1017.18~24.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1117.124+fips1 \| \< 6.8.0-1069.74+fips1

## References (first 20 of 36)

- <https://git.kernel.org/stable/c/d823b5f4557083d1dd92096f796a78a2b1b06d10>
- <https://git.kernel.org/stable/c/caeb105c15ea2431fa8da7ecfa242d0c68272426>
- <https://git.kernel.org/stable/c/a784b4732ac7e51862b9b210c2d8b2ab9e83568c>
- <https://git.kernel.org/stable/c/b6cb134707a2127d90a58d69dd818679cae8033c>
- <https://git.kernel.org/stable/c/7e515b6c9aab452a4f0734bd7208e4e780e164ca>
- <https://git.kernel.org/stable/c/27f3924061592d0ef6b04e16f48754b6cb6adf27>
- <https://git.kernel.org/stable/c/dd04114af0d451091f7b8cbd26d9e37d011e9131>
- <https://git.kernel.org/stable/c/5ff232d31106f45ac87c3b64e1d35a0667777797>
- <https://ubuntu.com/security/CVE-2026-74671>
- <https://www.cve.org/CVERecord?id=CVE-2026-74671>
- <https://git.kernel.org/linus/5ff232d31106f45ac87c3b64e1d35a0667777797>
- <https://ubuntu.com/security/notices/USN-8878-1>
- <https://ubuntu.com/security/notices/USN-8879-1>
- <https://ubuntu.com/security/notices/USN-8877-1>
- <https://ubuntu.com/security/notices/USN-8875-1>
- <https://ubuntu.com/security/notices/USN-8875-2>
- <https://security-tracker.debian.org/tracker/CVE-2026-74671>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-74671>
- <https://ubuntu.com/security/notices/USN-8959-1>
- <https://ubuntu.com/security/notices/USN-8963-1>

---

Data as of 2026-12-05T08:24:13.666Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
