CVE-2026-139607: bpf: Rebase the exception callback subprog when dead subprogs are removed

Published Nov 30, 2026
·
Updated

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

bpf: Rebase the exception callback subprog when dead subprogs are removed

adjustsubprogstartsafterremove() compacts subproginfo[] and the funcinfo when whole subprograms are removed as dead code, but leaves env->exceptioncallbacksubprog alone, so an exception callback declared through the exceptioncallback decl tag which sits behind a removed subprogram keeps its old index. jitsubprogs() then takes the exception callback from func[] at that index, which is past the end when the callback was the last subprogram, or another subprogram otherwise.

Rebase the index along with the entries it refers to.

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 conditions are needed to trigger the issue?

The BPF program must declare an exception callback through the exception_callback declaration tag, and dead-code removal must remove one or more whole subprograms before that callback. The callback is particularly affected when it is the final subprogram, though an outdated index can also select a different subprogram.

2

What can happen when the stale callback index is used?

During JIT subprogram processing, the kernel can select func[] using the old index. This can reference an entry past the end of the array when the callback was last, or reference another subprogram when it was not.

3

What is the available remediation?

Apply a Linux kernel update containing the referenced stable fixes. The correction rebases the exception callback subprogram index when dead subprogram removal compacts the subprogram metadata.

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