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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-30T15:29:13.904Z
- Modified: 2026-08-05T11:32:03.979Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 9330986c03006ab1d33d243b7cfe598a7a3c1baa before fa6995eeb62e74b5a1480c73fb7b420c270784d3; from 9330986c03006ab1d33d243b7cfe598a7a3c1baa before 608e13706c8b6c658a0646f09ebced74ec367f7c; from 9330986c03006ab1d33d243b7cfe598a7a3c1baa before c418afb9bf23e2f2b76cb819601e4a5d9dbab42d; from 9330986c03006ab1d33d243b7cfe598a7a3c1baa before a8d89feba7e54e691ca7c4efc2a6264fa83f3687; 5.16 (not affected: before 5.16; from 6.1.91 up to 6.1.*; from 6.6.31 up to 6.6.*; from 6.8.10 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 5.16 before 6.1.91; from 6.2 before 6.6.31; from 6.7 before 6.8.10; 6.9

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/fa6995eeb62e74b5a1480c73fb7b420c270784d3> (patch)
- <https://git.kernel.org/stable/c/608e13706c8b6c658a0646f09ebced74ec367f7c> (patch)
- <https://git.kernel.org/stable/c/c418afb9bf23e2f2b76cb819601e4a5d9dbab42d> (patch)
- <https://git.kernel.org/stable/c/a8d89feba7e54e691ca7c4efc2a6264fa83f3687> (patch)

## Sources

- CVE List: [CVE-2024-36918](https://www.cve.org/CVERecord?id=CVE-2024-36918), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-36918](https://nvd.nist.gov/vuln/detail/CVE-2024-36918), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-36918 · Whole record: https://cve.day/CVE-2024-36918.json · Rebuilt by cve.day 2026-11-25T22:58:41.279Z
