# CVE-2024-56720: bpf, sockmap: Several fixes to bpf_msg_pop_data

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-12-29T11:29:58.345Z
- Modified: 2026-08-05T11:46:18.145Z
- Weaknesses: CWE-193, CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before d3f5763b3062514a234114e97bbde74d8d702449; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before d26d977633d1d0b8bf9407278189bd0a8d973323; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before e1f54c61c4c9a5244eb8159dce60d248f7d97b32; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before f58d3aa457e77a3d9b3df2ab081dcf9950f6029f; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before 98c7ea7d11f2588e8197db042e0291e4ac8f8346; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before 785180bed9879680d8e5c5e1b54c8ae8d948f4c8; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before 275a9f3ef8fabb0cb282a62b9e164dedba7284c5; from 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 before 5d609ba262475db450ba69b8e8a557bd768ac07a; 5.0 (not affected: before 5.0; from 5.4.287 up to 5.4.*; from 5.10.231 up to 5.10.*; from 5.15.174 up to 5.15.*; from 6.1.120 up to 6.1.*; from 6.6.64 up to 6.6.*; from 6.11.11 up to 6.11.*; from 6.12.2 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 5.0 before 5.4.287; from 5.5 before 5.10.231; from 5.11 before 5.15.174; from 5.16 before 6.1.120; from 6.2 before 6.6.64; from 6.7 before 6.11.11; from 6.12 before 6.12.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Sources

- CVE List: [CVE-2024-56720](https://www.cve.org/CVERecord?id=CVE-2024-56720), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-56720](https://nvd.nist.gov/vuln/detail/CVE-2024-56720), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-56720 · Whole record: https://cve.day/CVE-2024-56720.json · Rebuilt by cve.day 2026-11-25T22:58:50.554Z
