CVE-2024-36918

bpf: Check bloom filter map value size

State
Published
Severity
7.8 High
Published
May 30, 2024
Updated
Aug 5, 2026
Reserved
May 30, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 9330986c03006ab1d33d243b7cfe598a7a3c1baa to before fa6995eeb62e74b5a1480c73fb7b420c270784d3Affected
  • 9330986c03006ab1d33d243b7cfe598a7a3c1baa to before 608e13706c8b6c658a0646f09ebced74ec367f7cAffected
  • 9330986c03006ab1d33d243b7cfe598a7a3c1baa to before c418afb9bf23e2f2b76cb819601e4a5d9dbab42dAffected
  • 9330986c03006ab1d33d243b7cfe598a7a3c1baa to before a8d89feba7e54e691ca7c4efc2a6264fa83f3687Affected
LinuxLinux
  • 5.16Affected
  • before 5.16Not affected
  • 6.1.91 through 6.1.*Not affected
  • 6.6.31 through 6.6.*Not affected
  • 6.8.10 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.