CVE-2024-36918 bpf: Check bloom filter map value size

High 7.8 Published Updated

A missing size check in the Linux kernel's BPF bloom filter allows integer overflows, leading to kernel crashes and 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-36918?

CVE-2024-36918 is a high-severity vulnerability in Linux kernel, published on 30 May 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: Check bloom filter map value size

This patch adds a missing check to bloom filter creating, rejecting values above KMALLOC_MAX_SIZE. This brings the bloom map in line with many other map types.

The lack of this protection can cause kernel crashes for value sizes that overflow int's. Such a crash was caught by syzkaller. The next patch adds more guard-rails at a lower level.

Weakness: CWE-190

Which versions are affected by CVE-2024-36918?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-36918?

Apply the vendor's patch.

Is CVE-2024-36918 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-36918, DEBIAN-CVE-2024-36918, ROOT-OS-UBUNTU-2204-CVE-2024-36918, UBUNTU-CVE-2024-36918.

Is CVE-2024-36918 in your software?

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

Check your SBOMs for free