CVE-2026-98045 PUBLISHED

bpf: Mark faultable stack helpers as sleepable

Assigner: Linux
Reserved: 25.09.2026 Published: 25.09.2026 Updated: 25.09.2026

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

bpf: Mark faultable stack helpers as sleepable

The faultable variants of bpf_get_stack() and bpf_get_task_stack() pass may_fault=true into the common stack collection code. Resolving user-space build IDs may then call build_id_parse_file() and block on filesystem reads.

Neither helper prototype sets might_sleep. Since prototype selection uses the sleepability of the whole program, the verifier can still allow these helpers from a non-sleepable region within that program, such as an explicit RCU or preemption-disabled region. The task-stack helper can also be called from a non-sleepable timer callback of a sleepable program.

Mark both faultable prototypes as sleepable. The existing helper context check then rejects these calls while continuing to allow them in genuinely sleepable contexts.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from d4dd9775ec242425576af93daadb80a34083a53c to 44b8d370f2725bad215da3e67668e98ba96671bd (excl.)
  • affected from d4dd9775ec242425576af93daadb80a34083a53c to 3014e8a8bdad55075d89836ad9c10710a9a69837 (excl.)
  • affected from d4dd9775ec242425576af93daadb80a34083a53c to 19e8d5a98afd071d8c1c5adeccf92b3c42eddc70 (excl.)
  • affected from d4dd9775ec242425576af93daadb80a34083a53c to 9d02927fdf4e930893c92e35fed01a2704496900 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.12 is affected
  • unaffected from 0 to 6.12 (excl.)
  • unaffected from 6.12.111 to 6.12.* (incl.)
  • unaffected from 6.18.53 to 6.18.* (incl.)
  • unaffected from 7.2.7 to 7.2.* (incl.)
  • unaffected from 7.3-rc2 to * (incl.)

References