bpf: Let bpf_dynptr_write() mark a global function
- CVE-2026-139292
- GHSA-m47v-9x8q-xx8j
- EUVD-2026-138997
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Let bpf_dynptr_write() mark a global function The caller of a global function loses its packet pointers if the function may change packet data. That is found out by a scan for calls of the helpers which bpf_helper_changes_pkt_data() lists. bpf_dynptr_write() is not on the list, because it depends on the type of the dynptr: check_helper_call() looks at it. The scan cannot do that, and so a global function which makes a dynptr from the skb, or gets one as an argument, and writes through it counts as harmless. The write can reallocate the head of the skb, and the caller goes on with pointers into the old one, which has been freed. Let every call of bpf_dynptr_write() mark the function, as a tail call does. The same mark decides whether a program may replace a function.
Text from the CVE.org record.
Recommendation
Linux
- If you run 6.12.xupdate to 6.12.120 or laterPatch update: breaking changes are unlikely
- If you run a version from 6.6.90 to before 6.7update to 6.7 or laterMinor version change: check the release notes
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 6.12.25 to before 6.12.120 6.12.120 from 6.6.90 to before 6.7 6.7 6.13 none stated before 6.13: not affected none stated from 6.12.120 up to 6.12.*: not affected none stated from 6.18.66 up to 6.18.*: not affected none stated from 7.3.6 up to 7.3.*: not affected none stated from 7.4-rc1 onwards: not affected none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.