bpf, sockmap: Several fixes to bpf_msg_pop_data
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7246d8ed4dcce23f7509949a77be15fa9f0e3d28 · < 785180bed9879680d8e5c5e1b54c8ae8d948f4c8| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s BPF sockmap bpf_msg_pop_data handling has several flaws, including a missing page release and an iteration error that may trigger a kernel BUG. The input does not specify how an attacker could reach the vulnerable code or whether access, authentication, or user interaction is required.
Anyone running the Linux kernel should check their version against the vendor advisory; affected versions were not provided.