bpf: Check bloom filter map value size
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel lacks a value-size check when creating BPF bloom filter maps. An attacker who can create a map with an oversized value may cause a kernel crash; the input does not specify access or authentication requirements.
Teams running Linux kernels with BPF bloom filter map support should check their versions; affected versions were not specified.