AZL-117007: CVE-2026-139286 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
bpf: Zero-extend the index in inlined bpfgetfuncarg()
bpfgetfuncarg() takes a u32 index, but the inlined expansion compared only the low 32 bits of R2 with the argument count and then shifted the full 64-bit register to compute the context address. R2 is ARGANYTHING, so nothing guarantees that its upper bits are zero: an index of 1ULL << 32 passes the bounds check as index zero while the load is performed at ctx + (1ULL << 35).
Shift the index as a 32-bit value. When the 32-bit bounds check passes, the low 32 bits of R2 are below R0, and R0 is at most 255: the trampoline arm masks the argument count with 0xFF and the rawtp arm uses the BTF argument count minus one, which the verifier caps at MAXBPFFUNCARGS. The 3-bit shift therefore cannot overflow and it clears the upper bits of the register. Widening the comparison instead would reject indices whose low 32 bits are valid. The check itself is unchanged, so this cannot change which programs are accepted, only the address that is computed.
Affected Software
Event History
Frequently Asked Questions
What input is required to trigger the incorrect address calculation?
The BPF program must supply an index whose low 32 bits pass the argument-count check while its upper 32 bits are nonzero. For example, an index of 1ULL << 32 passes as index zero but is used to calculate an address at ctx + (1ULL << 35).
Which paths constrain the argument count involved in this issue?
The trampoline path masks the argument count with 0xFF. The raw tracepoint path uses the BTF argument count minus one, and the verifier caps that count at MAX_BPF_FUNC_ARGS.
How can I identify whether this advisory applies to my system?
This advisory identifies the Azure Linux kernel package version 6.6.161.1-1 as affected. Check the installed Azure Linux kernel package version against that version.