# CVE-2024-56720: bpf, sockmap: Several fixes to bpf\_msg\_pop\_data

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-28)
- **CWE:** CWE-193, CWE-401
- **Published:** 2024-12-29T11:29:58.345Z
- **Modified:** 2026-08-05T11:46:18.145Z

## 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

## 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

- Linux: \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< d3f5763b3062514a234114e97bbde74d8d702449; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< d26d977633d1d0b8bf9407278189bd0a8d973323; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< e1f54c61c4c9a5244eb8159dce60d248f7d97b32; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< f58d3aa457e77a3d9b3df2ab081dcf9950f6029f; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 98c7ea7d11f2588e8197db042e0291e4ac8f8346; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 785180bed9879680d8e5c5e1b54c8ae8d948f4c8; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 275a9f3ef8fabb0cb282a62b9e164dedba7284c5; \>= 7246d8ed4dcce23f7509949a77be15fa9f0e3d28, \< 5d609ba262475db450ba69b8e8a557bd768ac07a (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- Upgrade Linux to 5d609ba262475db450ba69b8e8a557bd768ac07a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-28).

### 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.

## References

- patch: <https://git.kernel.org/stable/c/d3f5763b3062514a234114e97bbde74d8d702449>
- patch: <https://git.kernel.org/stable/c/d26d977633d1d0b8bf9407278189bd0a8d973323>
- patch: <https://git.kernel.org/stable/c/e1f54c61c4c9a5244eb8159dce60d248f7d97b32>
- patch: <https://git.kernel.org/stable/c/f58d3aa457e77a3d9b3df2ab081dcf9950f6029f>
- patch: <https://git.kernel.org/stable/c/98c7ea7d11f2588e8197db042e0291e4ac8f8346>
- patch: <https://git.kernel.org/stable/c/785180bed9879680d8e5c5e1b54c8ae8d948f4c8>
- patch: <https://git.kernel.org/stable/c/275a9f3ef8fabb0cb282a62b9e164dedba7284c5>
- patch: <https://git.kernel.org/stable/c/5d609ba262475db450ba69b8e8a557bd768ac07a>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56720>

HTML: <https://flawdb.com/CVE-2024-56720> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56720>
