Linux kernel: bpf: Zero former ARG_PTR_TO_{LONG,INT} args in case of error
Overview
In the Linux kernel, the following vulnerability has been resolved: bpf: Zero former ARG_PTR_TO_{LONG,INT} args in case of error For all non-tracing helpers which formerly had ARG_PTR_TO_{LONG,INT} as input arguments, zero the value for the case of an error as otherwise it could leak memory. For tracing, it is not needed given CAP_PERFMON can already read all kernel memory anyway hence bpf_get_func_arg() and bpf_get_func_ret() is skipped in here. Also, the MTU helpers mtu_len pointer value is being written but also read. Technically, the MEM_UNINIT should not be there in order to always force init. Removing MEM_UNINIT needs more verifier rework though: MEM_UNINIT right now implies two things actually: i) write into memory, ii) memory does not have to be initialized. If we lift MEM_UNINIT, it then becomes: i) read into memory, ii) memory must be initialized. This means that for bpf_*_check_mtu() we're readding the issue we're trying to fix, that is, it would then be able to write back into things like .rodata BPF maps. Follow-up work will rework the MEM_UNINIT semantics such that the intent can be better expressed. For now just clear the *mtu_len on error path which can be lifted later again.
- Published
- 10/21/2024
- Last modified
- 6/17/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
linux kernel linux | ≥ 5.2, < 6.1.113 | Verify advisory | Source |
linux kernel linux | ≥ 6.2, < 6.6.54 | Verify advisory | Source |
linux kernel linux | ≥ 6.7, < 6.10.13 | Verify advisory | Source |
linux kernel linux | ≥ 6.11, < 6.11.2 | Verify advisory | Source |
Linux Linux | ≥ d7a4cb9b6705a89937d12c8158a35a3145dc967a, < 8397bf78988f3ae9dbebb0200189a62a57264980 | Verify advisory | Source |
Linux Linux | ≥ d7a4cb9b6705a89937d12c8158a35a3145dc967a, < a634fa8e480ac2423f86311a602f6295df2c8ed0 | Verify advisory | Source |
Linux Linux | ≥ d7a4cb9b6705a89937d12c8158a35a3145dc967a, < 599d15b6d03356a97bff7a76155c5604c42a2962 | Verify advisory | Source |
Linux Linux | ≥ d7a4cb9b6705a89937d12c8158a35a3145dc967a, < 594a9f5a8d2de2573a856e506f77ba7dd2cefc6a | Verify advisory | Source |
Linux Linux | ≥ d7a4cb9b6705a89937d12c8158a35a3145dc967a, < 4b3786a6c5397dc220b1483d8e2f4867743e966f | Verify advisory | Source |
Linux Linux | 5.2 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.