CVE-2025-71306
ima: Fix stack-out-of-bounds in is_bprm_creds_for_exec()
Description
In the Linux kernel, the following vulnerability has been resolved: ima: Fix stack-out-of-bounds in is_bprm_creds_for_exec() KASAN reported a stack-out-of-bounds access in ima_appraise_measurement from is_bprm_creds_for_exec: BUG: KASAN: stack-out-of-bounds in ima_appraise_measurement+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: ima_appraise_measurement+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 bprm_is_check boolean which can be set depending on how process_measurement is called. If the caller has a linux_binprm pointer and the function is BPRM_CHECK we can determine is_check and set it then. Otherwise set it to false.
INFO
Published Date :
May 27, 2026, 2:16 p.m.
Last Modified :
Oct. 21, 2026, 1:18 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update the Linux kernel to include the fix.
- Ensure bprm_is_check is set correctly based on caller context.
- Review usage of container_of with file pointers.
- Pass bprm_is_check boolean to process_measurement.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-71306.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-71306 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-71306
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-71306 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-71306 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 21, 2026
Action Type Old Value New Value Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/71xxx/CVE-2025-71306.json">CVE-2025-71306</a> Added Reference https://git.kernel.org/stable/c/0f39d936a34933ebfbdc13a04f0aba814d3b9709 Added Reference https://git.kernel.org/stable/c/377cae9851e8559e9d8b82a78c1ac0abeb18839c Added Reference https://git.kernel.org/stable/c/ab3d16da982a4ebb715d487dbf9dd66e3990d935 Removed Reference https://git.kernel.org/stable/c/377cae9851e8559e9d8b82a78c1ac0abeb18839c Removed Reference https://git.kernel.org/stable/c/ab3d16da982a4ebb715d487dbf9dd66e3990d935 Removed Reference Type https://git.kernel.org/stable/c/377cae9851e8559e9d8b82a78c1ac0abeb18839c Types: Patch Removed Reference Type https://git.kernel.org/stable/c/ab3d16da982a4ebb715d487dbf9dd66e3990d935 Types: Patch -
CVE Translated by [email protected]
Oct. 14, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ima: Corrección de acceso fuera de límites de la pila en is_bprm_creds_for_exec() KASAN informó un acceso fuera de límites de la pila en ima_appraise_measurement desde is_bprm_creds_for_exec: ERROR: KASAN: acceso fuera de límites de la pila en ima_appraise_measurement+0x12dc/0x16a0 Lectura de tamaño 1 en la dirección ffffc9000160f940 por la tarea sudo/550 La dirección defectuosa pertenece a la pila de la tarea sudo/550 y está ubicada en el desplazamiento 24 en el marco: ima_appraise_measurement+0x0/0x16a0 Este marco tiene 2 objetos: [48, 56) 'file' [80, 148) 'hash' Esto es causado por usar container_of en el puntero file. Este cálculo de desplazamiento es lo que desencadena el error de acceso fuera de límites de la pila. Para solucionar esto, pasar un booleano bprm_is_check que puede ser establecido dependiendo de cómo se llama a process_measurement. Si el llamador tiene un puntero linux_binprm y la función es BPRM_CHECK, podemos determinar is_check y establecerlo entonces. De lo contrario, establecerlo en falso. -
Initial Analysis by [email protected]
Jun. 25, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H Added CWE CWE-125 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.14 up to (excluding) 6.19.4 Added Reference Type kernel.org: https://git.kernel.org/stable/c/377cae9851e8559e9d8b82a78c1ac0abeb18839c Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/ab3d16da982a4ebb715d487dbf9dd66e3990d935 Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '95b3cdafd7cb74414070893445a9b731793f7b55', 'lessThan': 'ab3d16da982a4ebb715d487dbf9dd66e3990d935', 'versionType': 'git'}, {'status': 'affected', 'version': '95b3cdafd7cb74414070893445a9b731793f7b55', 'lessThan': '377cae9851e8559e9d8b82a78c1ac0abeb18839c', 'versionType': 'git'}], 'programFiles': ['security/integrity/ima/ima.h', 'security/integrity/ima/ima_appraise.c', 'security/integrity/ima/ima_main.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.14'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.14', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.19.4', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['security/integrity/ima/ima.h', 'security/integrity/ima/ima_appraise.c', 'security/integrity/ima/ima_main.c'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 27, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: ima: Fix stack-out-of-bounds in is_bprm_creds_for_exec() KASAN reported a stack-out-of-bounds access in ima_appraise_measurement from is_bprm_creds_for_exec: BUG: KASAN: stack-out-of-bounds in ima_appraise_measurement+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: ima_appraise_measurement+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 bprm_is_check boolean which can be set depending on how process_measurement is called. If the caller has a linux_binprm pointer and the function is BPRM_CHECK we can determine is_check and set it then. Otherwise set it to false. Added Reference https://git.kernel.org/stable/c/377cae9851e8559e9d8b82a78c1ac0abeb18839c Added Reference https://git.kernel.org/stable/c/ab3d16da982a4ebb715d487dbf9dd66e3990d935