{"id":"CVE-2025-71306","aliases":["CVE-2025-71306"],"related":[],"kind":"vulnerability","state":"published","title":"ima: Fix stack-out-of-bounds in is_bprm_creds_for_exec()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nima: Fix stack-out-of-bounds in is_bprm_creds_for_exec()\n\nKASAN reported a stack-out-of-bounds access in ima_appraise_measurement\nfrom is_bprm_creds_for_exec:\n\nBUG: KASAN: stack-out-of-bounds in ima_appraise_measurement+0x12dc/0x16a0\n Read of size 1 at addr ffffc9000160f940 by task sudo/550\nThe buggy address belongs to stack of task sudo/550\nand is located at offset 24 in frame:\n  ima_appraise_measurement+0x0/0x16a0\nThis frame has 2 objects:\n  [48, 56) 'file'\n  [80, 148) 'hash'\n\nThis is caused by using container_of on the *file pointer. This offset\ncalculation is what triggers the stack-out-of-bounds error.\n\nIn order to fix this, pass in a bprm_is_check boolean which can be set\ndepending on how process_measurement is called. If the caller has a\nlinux_binprm pointer and the function is BPRM_CHECK we can determine\nis_check and set it then. Otherwise set it to false.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nima: Fix stack-out-of-bounds in is_bprm_creds_for_exec()\n\nKASAN reported a stack-out-of-bounds access in ima_appraise_measurement\nfrom is_bprm_creds_for_exec:\n\nBUG: KASAN: stack-out-of-bounds in ima_appraise_measurement+0x12dc/0x16a0\n Read of size 1 at addr ffffc9000160f940 by task sudo/550\nThe buggy address belongs to stack of task sudo/550\nand is located at offset 24 in frame:\n  ima_appraise_measurement+0x0/0x16a0\nThis frame has 2 objects:\n  [48, 56) 'file'\n  [80, 148) 'hash'\n\nThis is caused by using container_of on the *file pointer. This offset\ncalculation is what triggers the stack-out-of-bounds error.\n\nIn order to fix this, pass in a bprm_is_check boolean which can be set\ndepending on how process_measurement is called. If the caller has a\nlinux_binprm pointer and the function is BPRM_CHECK we can determine\nis_check and set it then. Otherwise set it to false.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nima: Corrección de acceso fuera de límites de la pila en is_bprm_creds_for_exec()\n\nKASAN informó un acceso fuera de límites de la pila en ima_appraise_measurement desde is_bprm_creds_for_exec:\n\nERROR: KASAN: acceso fuera de límites de la pila en ima_appraise_measurement+0x12dc/0x16a0\n Lectura de tamaño 1 en la dirección ffffc9000160f940 por la tarea sudo/550\nLa dirección defectuosa pertenece a la pila de la tarea sudo/550\ny está ubicada en el desplazamiento 24 en el marco:\n  ima_appraise_measurement+0x0/0x16a0\nEste marco tiene 2 objetos:\n  [48, 56) 'file'\n  [80, 148) 'hash'\n\nEsto 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.\n\nPara 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.","source":"nvd"}],"published":"2026-05-27T12:14:57.182Z","modified":"2026-10-21T13:18:26.440Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"95b3cdafd7cb74414070893445a9b731793f7b55","fixed":"0f39d936a34933ebfbdc13a04f0aba814d3b9709","status":"affected"},{"type":"git","introduced":"95b3cdafd7cb74414070893445a9b731793f7b55","fixed":"ab3d16da982a4ebb715d487dbf9dd66e3990d935","status":"affected"},{"type":"git","introduced":"95b3cdafd7cb74414070893445a9b731793f7b55","fixed":"377cae9851e8559e9d8b82a78c1ac0abeb18839c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.18.58","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.4","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.14","fixed":"6.19.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0f39d936a34933ebfbdc13a04f0aba814d3b9709","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab3d16da982a4ebb715d487dbf9dd66e3990d935","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/377cae9851e8559e9d8b82a78c1ac0abeb18839c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71306","url":"https://www.cve.org/CVERecord?id=CVE-2025-71306","licence":"CVE Terms of Use","modified":"2026-10-21T12:38:43.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71306","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71306","licence":"Public domain","modified":"2026-10-21T13:18:26.440Z"}],"updatedAt":"2026-11-25T22:59:12.229Z","epss":{"score":0.00184,"percentile":0.0838,"date":"2026-12-02T12:00:21.000Z"}}