CVE-2024-50253
bpf: Check the validity of nr_words in bpf_iter_bits_new()
Reported by linux · Published November 9, 2024
In the Linux kernel, the following vulnerability has been resolved: bpf: Check the validity of nr_words in bpf_iter_bits_new() Check the validity of nr_words in bpf_iter_bits_new(). Without this check, when multiplication overflow occurs for nr_bits (e.g., when nr_words = 0x0400-0001, nr_bits becomes 64), stack corruption may occur due to bpf_probe_read_kernel_common(..., nr_bytes = 0x2000-0008). Fix it by limiting the maximum value of nr_words to 511. The value is derived from the current implementation of BPF memory allocator. To ensure compatibility if the BPF memory allocator's size limitation changes in the future, use the helper bpf_mem_alloc_check_size() to check whether nr_bytes is too larger. And return -E2BIG instead of -ENOMEM for oversized nr_bytes.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 4665415975b0827e9646cab91c61d02a6b364d59, 4665415975b0827e9646cab91c61d02a6b364d59 |
| Linux | Linux | 6.11, 0, 6.11.7 |
| linux | linux_kernel | 6.11, 6.11 |
| Linux | Linux | 4665415975b0827e9646cab91c61d02a6b364d59, 6.11, 6.11.7 |
Timeline
- Nov 9, 2024 Coalition ESS Score (8 in total, the first dated here)
- Nov 9, 2024 CVE Published
- Nov 10, 2024 EPSS Score (30 in total, the first dated here)
- Jan 2, 2026 Security Advisory (128 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (111 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-50253
vulnetix vdb fixes CVE-2024-50253
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-50253/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart