CVE-2026-139628: bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free on riscv

Published Nov 30, 2026
·
Updated

bpf: Adjust bpffunc to account for CFI offset in bpfjitfree on riscv

Affected Software

7 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.9.0<6.12.119
6.12.119
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6
debian/linux*
debian/linux<7.3.6-1
7.3.6-1
debian/linux<=6.12.117-1, <=6.12.118-1
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.119
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1
  5. Compensating control

    In bpf_jit_free() on riscv, subtract cfi_get_offset() from prog->bpf_func to restore the original JITed allocation address before freeing it.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:36 PM
Data Sourced
via MITRE·01:36 PM
Description
Data Sourced
via OSV·01:36 PM
DescriptionAffected Software
Data Sourced
via NVD·02:19 PM
Description

Frequently Asked Questions

1

Which systems are affected by this issue?

The issue applies to Linux kernel systems on RISC-V where CFI is enabled and BPF JIT-compiled programs are freed. The CFI preamble shifts the BPF program entry point from the original JIT allocation address.

2

What occurs during the vulnerable cleanup path?

During bpf_jit_free(), the shifted BPF function pointer can be used to retrieve the wrong ro_header, which can result in an invalid memory free. The fix restores the original allocation address by subtracting cfi_get_offset() from prog->bpf_func before freeing it.

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