bpf: Limit bpf program signature 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 |
|
|
6.18.146.19.47.0In the Linux kernel, the following vulnerability has been resolved:
bpf: Limit bpf program signature size
Practical BPF signatures are significantly smaller than KMALLOC_MAX_CACHE_SIZE
Allowing larger sizes opens the door for abuse by passing excessive size values and forcing the kernel into expensive allocation paths (via kmalloc_large or vmalloc).
From the CVE record · Linux
The Linux kernel allowed BPF program signature sizes larger than practical signatures require. An attacker could pass an excessive size value and force expensive kernel allocation paths; the input does not specify whether this requires local access, authentication, or user interaction.
Engineers running Linux kernels should check whether their version includes the BPF signature size limit; affected versions are not specified.