bpf: Fix overflow of jump offset in may_goto expansion

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

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

bpf: Fix overflow of jump offset in may_goto expansion

may_goto is expanded into 'if AX == 0 goto off + 5' when it's timed, off + 2 when it's not and off - 1 when it jumps backward. The sum is stored into 16-bit off without a range check, so may_goto +32763 turns into:

if r12 == 0x0 goto pc-32768

and the prog jumps backward when may_goto expires.

Emit 'if AX != 0 goto +1; gotol' when the offset doesn't fit and compute the offset from the number of insns in the expansion. JITs that don't support gotol will reject such prog.

ProductVersions
Linux Linux011832b97b311bb9e3c27945bc0d1089a14209c9 to before 90bf9ec4c063f478a0a822f664b819eb0a7b4a00 Affected011832b97b311bb9e3c27945bc0d1089a14209c9 to before cd6f4f06637dff4df789ff733585c93ddbec8fb8 Affected011832b97b311bb9e3c27945bc0d1089a14209c9 to before 65014bb72d9ad73118ca2fe1936e1847b4556762 Affected011832b97b311bb9e3c27945bc0d1089a14209c9 to before 8a12a00f6c5dba70a6d908fe27a3c980d42b9515 Affected
Linux Linux6.9 Affectedbefore 6.9 Not Affected6.12.120 through 6.12.* Not Affected6.18.66 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.