bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2025-71306

7.1high

linux6.18.60 · 6.18.54 · 6.18.8in 3 of 4 releases

Reach linux · 6 builds in 3 of 4 releases

full reviewcross-check✓ a member decided

v25.03.1not in NVD's range
v26.01.06.18.8
v26.09.06.18.54
v26.10.0latest6.18.60
aarch64_minimal
x86_64
aarch64_minimal–
x86_64–
aarch64_minimalNot built · autox86_64Not built · autoaarch64_minimalNot built · autox86_64Not built · autoaarch64_minimalNot built · autox86_64Not built · auto

Description · NVD

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.

Published 2026-05-27NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
High
Integrity
None
Availability
High
Scope
Unchanged

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

References 3

Build check · v26.10.0 x86_64

None of the source files the CNA lists for CVE-2025-71306 (security/integrity/ima/ima_appraise.c, security/integrity/ima/ima_main.c) produced an object file in linux-6.18.60, so the affected code is not compiled into this kernel configuration.

Evidence 2

…/ is output/build/linux-6.18.60/security/integrity/ima/

  1. object file absent: not compiled

    …/ima_appraise.o

  2. object file absent: not compiled

    …/ima_main.o

Members of Kernel Kit decide. Sign in if you are one.