Bug 2334811 (CVE-2024-56720) - CVE-2024-56720 kernel: bpf, sockmap: Several fixes to bpf_msg_pop_data
Summary: CVE-2024-56720 kernel: bpf, sockmap: Several fixes to bpf_msg_pop_data
Keywords:
Status: NEW
Alias: CVE-2024-56720
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-29 12:01 UTC by OSIDB Bzimport
Modified: 2024-12-30 04:57 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-29 12:01:34 UTC
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.

Comment 1 Avinash Hanwate 2024-12-30 04:53:29 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122920-CVE-2024-56720-614a@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.