CVE-2026-74671

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

No CVSS score yet EPSS 0.18%

Published 22 Aug 2026 Updated 6 Nov 2026 CNA: Linux

Check your servers for CVE-2026-74671

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-74671 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.63% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 6 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 3ea7a56067e663278470c04fd655adf809e72d4d, before d823b5f4557083d1dd92096f796a78a2b1b06d10
affected from 3ea7a56067e663278470c04fd655adf809e72d4d, before caeb105c15ea2431fa8da7ecfa242d0c68272426
affected from 3ea7a56067e663278470c04fd655adf809e72d4d, before a784b4732ac7e51862b9b210c2d8b2ab9e83568c
affected from 3ea7a56067e663278470c04fd655adf809e72d4d, before b6cb134707a2127d90a58d69dd818679cae8033c
affected from 3ea7a56067e663278470c04fd655adf809e72d4d, before 7e515b6c9aab452a4f0734bd7208e4e780e164ca
affected from 3ea7a56067e663278470c04fd655adf809e72d4d, before 27f3924061592d0ef6b04e16f48754b6cb6adf27
affected from 3ea7a56067e663278470c04fd655adf809e72d4d, before dd04114af0d451091f7b8cbd26d9e37d011e9131
affected from 3ea7a56067e663278470c04fd655adf809e72d4d, before 5ff232d31106f45ac87c3b64e1d35a0667777797
Other versions: unaffected
Linux
affected 3.13
unaffected before 3.13
unaffected from 5.10.265 up to and including 5.10.*
unaffected from 5.15.216 up to and including 5.15.*
unaffected from 6.1.183 up to and including 6.1.*
unaffected from 6.6.152 up to and including 6.6.*
unaffected from 6.12.104 up to and including 6.12.*
unaffected from 6.18.45 up to and including 6.18.*
unaffected from 7.1.9 up to and including 7.1.*
unaffected 7.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-74671 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-74671

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-74671
trivy image --scanners vuln IMAGE | grep CVE-2026-74671

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-74671 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.