CVE-2026-139606: bpf: Leave out the hidden exit edge of a subprogram without an exit

Published Nov 30, 2026
·
Updated

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

bpf: Leave out the hidden exit edge of a subprogram without an exit

visitabnormalreturninsn() gives tailcall and ld{abs,ind} insns a second successor, the exitidx of their subprogram, so that the hidden exit from the subprogram is part of the CFG. checksubprogs() only assigns exitidx when it walks over a BPFEXIT, and a subprogram whose last insn jumps back into itself never has one, so exitidx stays zero and the edge points at insn 0 of the program:

0: r0 = 0 1: r0 = (u8 )skb[0] 2: goto -2

For a subprogram other than main, updateinsn() then reads the liveness masks at a negative relative index. Such a subprogram can still load when it leaves through a bpfthrow(), so mark exitidx as unset in that case and leave the hidden edge out, as there is no exit for it to reach.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:36 PM
Data Sourced
via MITRE·01:36 PM
Description

Frequently Asked Questions

1

What BPF program structure is affected?

The issue involves a non-main BPF subprogram that has no BPF_EXIT instruction because its final instruction jumps back into the subprogram. The problematic control-flow handling applies when hidden exit edges are considered for tail_call or ld_abs/ld_ind instructions.

2

What is required for the problematic subprogram to load?

The description states that such a subprogram can still load when it leaves through bpf_throw(). This requires a non-main subprogram with no reachable normal exit, rather than an ordinary subprogram containing a BPF_EXIT.

3

How can I identify potentially affected BPF code?

Review BPF programs for non-main subprograms whose last instruction loops back into the subprogram and that contain no BPF_EXIT. Pay particular attention if those subprograms use bpf_throw() as their way to leave and include tail_call or ld_abs/ld_ind control-flow paths.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203