Skip to content
FlawDB
Sign in

CVE-2026-142942

UNSCORED

bpf: Destroy callee-local dynptrs on subprog return

AI summary AI generated

An attacker with local access can use stale dynptr-derived slices that escape a BPF subprogram, letting the verifier accept invalid memory accesses in the Linux kernel BPF verifier.

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 308c7a0ae8859b34d9d90a3dff953b2d14242145, < abf9f320f9d615358a768aa7b238dbedb79f566c; >= 308c7a0ae8859b34d9d90a3dff953b2d14242145, < b65cc81792eb07436879d9f0be8ebd18a78fffb4
  • Anyone running Linux 7.2

Vulnerability facts

Affected
Linux >= 308c7a0ae8859b34d9d90a3dff953b2d14242145, < abf9f320f9d615358a768aa7b238dbedb79f566c; >= 308c7a0ae8859b34d9d90a3dff953b2d14242145, < b65cc81792eb07436879d9f0be8ebd18a78fffb4; Linux 7.2
Fixed in
No fix listed yet
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Destroy callee-local dynptrs on subprog return A data slice is valid only while the specific dynptr that produced it remains valid. prepare_func_exit() copies a subprogram return value into the caller and then frees the callee state without applying the normal destruction semantics to dynptrs in the callee stack. A callee can therefore derive a slice from a local dynptr, return or spill the slice into its caller, and then let the dynptr disappear with the callee frame. The slice retains the id of a dynptr that is no longer in the verifier state, so the verifier continues to accept accesses through it. Before the object relationship refactor, bpf_dynptr_data() slices from referenced dynptrs also carried the shared reference id, allowing a later release to catch some of these escaped slices. The refactor made those slices precise children of their source dynptr and exposed the missing teardown as an accepted stale access even after the shared resource is released. Add destroy_dynptrs_in_stack_slots() to apply the existing dynptr teardown to an inclusive range of stack slots. Reuse it for dynptr initialization, variable-offset stack writes, and the entire callee stack before freeing the frame. The teardown rejects losing the last dynptr for a referenced resource and invalidates the dynptr and all its descendants, including slices held in the caller. Propagate errors through prepare_func_exit(). Reuse the existing teardown API and diagnostic. Update the affected callback test expectation in this change so the commit remains test-clean.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 308c7a0ae8859b34d9d90a3dff953b2d14242145, < abf9f320f9d615358a768aa7b238dbedb79f566c; >= 308c7a0ae8859b34d9d90a3dff953b2d14242145, < b65cc81792eb07436879d9f0be8ebd18a78fffb4—cvelist
Linux7.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-142942. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142942.md
Affected: Linux >= 308c7a0ae8859b34d9d90a3dff953b2d14242145, < abf9f320f9d615358a768aa7b238dbedb79f566c; >= 308c7a0ae8859b34d9d90a3dff953b2d14242145, < b65cc81792eb07436879d9f0be8ebd18a78fffb4; Linux 7.2
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-142942 being exploited?

There is no confirmed exploitation: CVE-2026-142942 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is CVE-2026-142942?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2026-142942?

Linux >= 308c7a0ae8859b34d9d90a3dff953b2d14242145, < abf9f320f9d615358a768aa7b238dbedb79f566c; >= 308c7a0ae8859b34d9d90a3dff953b2d14242145, < b65cc81792eb07436879d9f0be8ebd18a78fffb4; Linux 7.2.

Is there a fix for CVE-2026-142942?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2026-142942?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
UNSCOREDCVE-2026-142948

i2c: designware: queue only one read command for block reads

Linux kernel
UNSCOREDCVE-2026-142947

cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails

Linux kernel
UNSCOREDCVE-2026-142946

ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device()

Linux kernel
UNSCOREDCVE-2026-142945

ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device()

Linux kernel
UNSCOREDCVE-2026-142944

ASoC: amd: acp-es8336: Use an owned codec device reference

Linux kernel
Sponsors