VDB

CVE-2024-50253

CVE-2024-50253 PUBLISHED CVSS 7.8 HIGH

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

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux4665415975b0827e9646cab91c61d02a6b364d59, 4665415975b0827e9646cab91c61d02a6b364d59
LinuxLinux6.11, 0, 6.11.7
linuxlinux_kernel6.11, 6.11
LinuxLinux4665415975b0827e9646cab91c61d02a6b364d59, 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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›