CVE-2025-71306

Source
https://cve.org/CVERecord?id=CVE-2025-71306
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71306.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-71306
Downstream
Published
2026-05-27T12:14:57.182Z
Modified
2026-07-08T07:43:44.317239505Z
Summary
ima: Fix stack-out-of-bounds in is_bprm_creds_for_exec()
Details

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

ima: Fix stack-out-of-bounds in isbprmcredsforexec()

KASAN reported a stack-out-of-bounds access in imaappraisemeasurement from isbprmcredsforexec:

BUG: KASAN: stack-out-of-bounds in imaappraisemeasurement+0x12dc/0x16a0 Read of size 1 at addr ffffc9000160f940 by task sudo/550 The buggy address belongs to stack of task sudo/550 and is located at offset 24 in frame: imaappraisemeasurement+0x0/0x16a0 This frame has 2 objects: [48, 56) 'file' [80, 148) 'hash'

This is caused by using container_of on the *file pointer. This offset calculation is what triggers the stack-out-of-bounds error.

In order to fix this, pass in a bprmischeck boolean which can be set depending on how processmeasurement is called. If the caller has a linuxbinprm pointer and the function is BPRMCHECK we can determine ischeck and set it then. Otherwise set it to false.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71306.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
95b3cdafd7cb74414070893445a9b731793f7b55
Fixed
ab3d16da982a4ebb715d487dbf9dd66e3990d935
Fixed
377cae9851e8559e9d8b82a78c1ac0abeb18839c

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71306.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.19.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71306.json"