CVE-2024-56720
JSON

7.8high

bpf, sockmap: Several fixes to bpf_msg_pop_data

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 1 more
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.*
CVE List
linux linux_kernelfrom 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.2NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-193CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf, sockmap: Varias correcciones para bpf_msg_pop_data Varias correcciones para bpf_msg_pop_data, 1. En sk_msg_shift_left, deberíamos put_page 2. si (len == 0), es mejor regresar antes 3. Debería ser compatible con la extracción de todo el sk_msg (last == msg->sg.size) 4. Corrección para el valor de la variable "a" 5. En sk_msg_shift_left, después de cambiar, i ya ha apuntado al siguiente elemento. La adición de sk_msg_iter_var_next puede provocar un ERROR.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-56720 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-56720 changed 2026-08-04Public domain