CVE-2026-138942: powerpc64/bpf: fix percpu private stack leak on JIT failure

Published Nov 30, 2026
·
Updated

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

powerpc64/bpf: fix percpu private stack leak on JIT failure

The existing conditional statement in bpfintjitcompile() frees the percpu private stack at outaddrs only when the image buffer was never allocated.

If bpfjitbuildbody() fails during a code-generation pass, the image buffer has already been allocated, so !image is false and the percpu stack is not freed.

Because JIT compilation failed, fp->jited remains at 0. The subsequent bpfjitfree() path only frees privstackptr when fp->jited is set, so freeing is skipped here too, leaking the percpu allocation.

Fix implements freeing the private stack whenever fp->jited was not set, i.e. compilation did not succeed, instead of keying off !image. !fp->jited already covers the !image case, since image is only NULL on early-failure paths where fp->jited is likewise 0.

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=7.1.0<7.3.4
7.3.4
debian/linux<7.3.4-1
7.3.4-1
debian/linux
7.3.4-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 7.3.4
  2. Upgrade

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

    Fixed in 7.3.4-1

Event History

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

Frequently Asked Questions

1

When does the allocation leak occur?

The leak occurs when powerpc64 BPF JIT compilation reaches a code-generation pass, allocates the image buffer, and then bpf_jit_build_body() fails. Early failures where no image buffer was allocated are also covered by the corrected condition, but were not the problematic case described.

2

Why does the normal BPF cleanup path not reclaim the memory?

After failed JIT compilation, fp->jited remains 0. The subsequent bpf_jit_free() path frees priv_stack_ptr only when fp->jited is set, so it skips the per-CPU private stack allocation.

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