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

High 7.8 Published Updated

A memory corruption vulnerability in the Linux kernel's BPF sockmap allows attackers to potentially execute code or cause a denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-56720?

CVE-2024-56720 is a high-severity memory corruption vulnerability in Linux kernel, published on 29 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-193, CWE-401

Which versions are affected by CVE-2024-56720?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-56720?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-56720 being exploited?

There is no known exploitation of CVE-2024-56720 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-55259, AZL-55265, BELL-CVE-2024-56720, DEBIAN-CVE-2024-56720, GHSA-4x48-ph6h-wfmf, UBUNTU-CVE-2024-56720.

Is CVE-2024-56720 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free