bpf: Let bpf_dynptr_write() mark a global function

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux1d572c60488b52882b719ed273767ee3b280413d to before 8310beed4f3a8eaa9df17bac8897866a925d37cd Affected51081a3f25c742da5a659d7fc6fd77ebfdd555be to before 30c3198b5751f53a867ee34e25beb1522e78f142 Affected51081a3f25c742da5a659d7fc6fd77ebfdd555be to before 61726cccceda5b8e36ae912eb1d2109ea122b49c Affected51081a3f25c742da5a659d7fc6fd77ebfdd555be to before 589998616e0f9190ba6f6644a19532c5b2ba66d0 Affected79751e9227a5910c0e5a2c7186877d91821d957d Affected6.12.25 to before 6.12.120 Affected6.6.90 to before 6.7 Affected
Linux Linux6.13 Affectedbefore 6.13 Not Affected6.12.120 through 6.12.* Not Affected6.18.66 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.