CVE-2024-56720
bpf, sockmap: Several fixes to bpf_msg_pop_data
Mitigation
- Upgrade Linux to 5d609ba262475db450ba69b8e8a557bd768ac07a or later.
Who should check
- Anyone running Linux >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < d3f5763b3062514a234114e97bbde74d8d702449; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < d26d977633d1d0b8bf9407278189bd0a8d973323; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < e1f54c61c4c9a5244eb8159dce60d248f7d97b32; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < f58d3aa457e77a3d9b3df2ab081dcf9950f6029f; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 98c7ea7d11f2588e8197db042e0291e4ac8f8346; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 785180bed9879680d8e5c5e1b54c8ae8d948f4c8; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 275a9f3ef8fabb0cb282a62b9e164dedba7284c5; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 5d609ba262475db450ba69b8e8a557bd768ac07a
- Anyone running Linux 5.0
Vulnerability facts
- Affected
- Linux >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < d3f5763b3062514a234114e97bbde74d8d702449; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < d26d977633d1d0b8bf9407278189bd0a8d973323; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < e1f54c61c4c9a5244eb8159dce60d248f7d97b32; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < f58d3aa457e77a3d9b3df2ab081dcf9950f6029f; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 98c7ea7d11f2588e8197db042e0291e4ac8f8346; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 785180bed9879680d8e5c5e1b54c8ae8d948f4c8; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 275a9f3ef8fabb0cb282a62b9e164dedba7284c5; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 5d609ba262475db450ba69b8e8a557bd768ac07a; Linux 5.0
- Fixed in
- Linux 98c7ea7d11f2588e8197db042e0291e4ac8f8346, Linux 785180bed9879680d8e5c5e1b54c8ae8d948f4c8, Linux 275a9f3ef8fabb0cb282a62b9e164dedba7284c5, Linux 5d609ba262475db450ba69b8e8a557bd768ac07a
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.34% chance of exploitation in 30 days (percentile 20, 2026-11-26)
- CWE
- CWE-193, CWE-401
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Several fixes to bpf_msg_pop_data Several fixes to bpf_msg_pop_data, 1. In sk_msg_shift_left, we should put_page 2. if (len == 0), return early is better 3. pop the entire sk_msg (last == msg->sg.size) should be supported 4. Fix for the value of variable "a" 5. In sk_msg_shift_left, after shifting, i has already pointed to the next element. Addtional sk_msg_iter_var_next may result in BUG.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < d3f5763b3062514a234114e97bbde74d8d702449; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < d26d977633d1d0b8bf9407278189bd0a8d973323; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < e1f54c61c4c9a5244eb8159dce60d248f7d97b32; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < f58d3aa457e77a3d9b3df2ab081dcf9950f6029f; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 98c7ea7d11f2588e8197db042e0291e4ac8f8346; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 785180bed9879680d8e5c5e1b54c8ae8d948f4c8; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 275a9f3ef8fabb0cb282a62b9e164dedba7284c5; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 5d609ba262475db450ba69b8e8a557bd768ac07a | — | cvelist |
| Linux | 5.0 | — | 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-2024-56720. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-56720.md Affected: Linux >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < d3f5763b3062514a234114e97bbde74d8d702449; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < d26d977633d1d0b8bf9407278189bd0a8d973323; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < e1f54c61c4c9a5244eb8159dce60d248f7d97b32; >= 7246d8ed4dcce23f7509949… Fixed in: Linux 98c7ea7d11f2588e8197db042e0291e4ac8f8346, Linux 785180bed9879680d8e5c5e1b54c8ae8d948f4c8, Linux 275a9f3ef8fabb0cb282a62b9e164dedba7284c5, Linux 5d609ba262475db450ba69b8e8a557bd768ac07a 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.
References
Patches
- https://git.kernel.org/stable/c/d3f5763b3062514a234114e97bbde74d8d702449
- https://git.kernel.org/stable/c/d26d977633d1d0b8bf9407278189bd0a8d973323
- https://git.kernel.org/stable/c/e1f54c61c4c9a5244eb8159dce60d248f7d97b32
- https://git.kernel.org/stable/c/f58d3aa457e77a3d9b3df2ab081dcf9950f6029f
- https://git.kernel.org/stable/c/98c7ea7d11f2588e8197db042e0291e4ac8f8346
- https://git.kernel.org/stable/c/785180bed9879680d8e5c5e1b54c8ae8d948f4c8
- https://git.kernel.org/stable/c/275a9f3ef8fabb0cb282a62b9e164dedba7284c5
- https://git.kernel.org/stable/c/5d609ba262475db450ba69b8e8a557bd768ac07a
FAQ
Is CVE-2024-56720 being exploited?
There is no confirmed exploitation: CVE-2024-56720 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-56720?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-56720?
Linux >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < d3f5763b3062514a234114e97bbde74d8d702449; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < d26d977633d1d0b8bf9407278189bd0a8d973323; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < e1f54c61c4c9a5244eb8159dce60d248f7d97b32; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < f58d3aa457e77a3d9b3df2ab081dcf9950f6029f; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 98c7ea7d11f2588e8197db042e0291e4ac8f8346; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 785180bed9879680d8e5c5e1b54c8ae8d948f4c8; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 275a9f3ef8fabb0cb282a62b9e164dedba7284c5; >= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, < 5d609ba262475db450ba69b8e8a557bd768ac07a; Linux 5.0.
Is there a fix for CVE-2024-56720?
Yes. Fixed in Linux 98c7ea7d11f2588e8197db042e0291e4ac8f8346, Linux 785180bed9879680d8e5c5e1b54c8ae8d948f4c8, Linux 275a9f3ef8fabb0cb282a62b9e164dedba7284c5, Linux 5d609ba262475db450ba69b8e8a557bd768ac07a. Upgrade Linux to 5d609ba262475db450ba69b8e8a557bd768ac07a or later.
How do I check if I'm affected by CVE-2024-56720?
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.