Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Propagate scalar precision through stack arguments Outgoing stack arguments retain scalar verifier state separately from registers and ordinary spills. State comparison uses their precision marks, but propagate_precision() does not carry those dependencies from a reused state to the current path's ancestors. A path can consequently reuse a state without making earlier checkpoints distinguish scalar values that will later be used as memory offsets. Seed the existing backtracking batch with precise scalar argument slots from every frame. Incoming arguments live in the caller's outgoing slots, so include caller frames as well as the current frame. Also cover scalar argument slots in bpf_mark_all_scalars_precise(), so conservative fallback preserves the same invariant. Keep its existing ancestor-only traversal and leave pointer and uninitialized slots alone. AI assistance was used in preparing this patch.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
0f6bd5e7a804af27e7f34b8306afde7a6b269318 to < 6648daa69c802b096a22922c87cbd6dca4bb766faffected0f6bd5e7a804af27e7f34b8306afde7a6b269318 to < d537252cc8a53b6ed6a3e7d0d895cb1cdd3ba42caffected
Linux Linux
Default version status: affected
7.2affected0 to < 7.2unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected