CVE-2026-138942

Not scored yetLast modified Nov 30, 2026

Description

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 bpf_int_jit_compile() frees the percpu private stack at out_addrs only when the image buffer was never allocated.

If bpf_jit_build_body() 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 bpf_jit_free() path only frees priv_stack_ptr 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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138943In the Linux kernel, the following vulnerability has been resolved: media: iris: Fix iova allocation from restrict region The VPU issues DCVE-2026-138944In the Linux kernel, the following vulnerability has been resolved: media: venus: Fix iova allocation from restrict region The VPU issues CVE-2026-138945In the Linux kernel, the following vulnerability has been resolved: media: qcom: camss: vfe: Fix VFE reset while another line is streaming CVE-2026-138946In the Linux kernel, the following vulnerability has been resolved: cxl/acpi: Check ACPI companion before use Platform drivers can be forcCVE-2026-138947In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: fix integer overflow in find_log_rec() causing OOB read findCVE-2026-138948In the Linux kernel, the following vulnerability has been resolved: iio: accel: sca3000: reject devices without match data SPI driver_overCVE-2026-138949In the Linux kernel, the following vulnerability has been resolved: iio: accel: adxl380: reject devices without match data SPI driver_overCVE-2026-138954.2Inappropriate implementation in Autofill in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who convinced a user to engage inCVE-2026-138950In the Linux kernel, the following vulnerability has been resolved: iio: accel: adxl372: reject devices without match data SPI driver_overCVE-2026-138951In the Linux kernel, the following vulnerability has been resolved: iio: accel: adxl313: reject devices without match data SPI driver_overCVE-2026-138952In the Linux kernel, the following vulnerability has been resolved: iio: adc: ti-ads7950: validate SPI match data SPI driver_override alloCVE-2026-138953In the Linux kernel, the following vulnerability has been resolved: iio: adc: ti-ads131m02: reject devices without match data SPI driver_o
CVE-2026-138942: Unscored | Vulnix