CVE-2024-50253
published high CVSS 3.1 · 7.8bpf: Check the validity of nr_words in bpf_iter_bits_new()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux4665415975b0827e9646cab91c61d02a6b364d59 to < c9539e09c67880ecd88b51188c346a2cc078b06c · 4665415975b0827e9646cab91c61d02a6b364d59 to < 393397fbdcad7396639d7077c33f86169184ba99 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.11 (affected) · 0 to < 6.11 (unaffected · semver) · 6.11.7 through 6.11.* (unaffected · semver) · 6.12 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| Ubuntu | noble | linux-buildinfo-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermaarch64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermppc64le | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longterms390x | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermx86_64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermaarch64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermppc64le | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longterms390x | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermx86_64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| Ubuntu | noble | linux-headers-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-image-unsigned-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-modules-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-modules-ipu6-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-modules-ipu7-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-modules-iwlwifi-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-modules-usbio-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-modules-vision-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-oem-6.11 | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-oem-6.11-headers-6.11.0-1015 | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-oem-6.11-tools-6.11.0-1015 | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-tools-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | oracular | linux | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-aws | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-aws-cloud-tools-6.11.0-1009 | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-aws-headers-6.11.0-1009 | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-aws-tools-6.11.0-1009 | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-azure | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-azure-cloud-tools-6.11.0-1009 | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-azure-headers-6.11.0-1009 | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-azure-tools-6.11.0-1009 | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-bpf-dev | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1005-realtime | Advisory build | 6.11.0-1005.5 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1008-raspi | Advisory build | 6.11.0-1008.8 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1009-aws | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1009-azure | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1009-gcp | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1010-lowlatency | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1010-lowlatency-64k | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1011-oracle | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1011-oracle-64k | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-18-generic | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-18-generic-64k | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-cloud-tools-6.11.0-1005-realtime | Advisory build | 6.11.0-1005.5 | USN-7277-1 |
| Ubuntu | oracular | linux-cloud-tools-6.11.0-1009-aws | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-cloud-tools-6.11.0-1009-azure | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-cloud-tools-6.11.0-1010-lowlatency | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-cloud-tools-6.11.0-18 | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-cloud-tools-6.11.0-18-generic | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-cloud-tools-common | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-doc | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-gcp | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-gcp-headers-6.11.0-1009 | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-gcp-tools-6.11.0-1009 | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1005-realtime | Advisory build | 6.11.0-1005.5 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1008-raspi | Advisory build | 6.11.0-1008.8 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1009-aws | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1009-azure | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1009-gcp | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1010-lowlatency | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1010-lowlatency-64k | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1011-oracle | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1011-oracle-64k | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-18 | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-headers-6.11.0-18-generic | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-headers-6.11.0-18-generic-64k | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-image-6.11.0-1008-raspi | Advisory build | 6.11.0-1008.8 | USN-7277-1 |
| Ubuntu | oracular | linux-image-6.11.0-1008-raspi-dbgsym | Advisory build | 6.11.0-1008.8 | USN-7277-1 |
| Ubuntu | oracular | linux-image-6.11.0-18-generic | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-image-6.11.0-18-generic-dbgsym | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1005-realtime | Advisory build | 6.11.0-1005.5 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1005-realtime-dbgsym | Advisory build | 6.11.0-1005.5 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1009-aws | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1009-aws-dbgsym | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1009-azure | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1009-azure-dbgsym | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1009-gcp | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1009-gcp-dbgsym | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1010-lowlatency | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1010-lowlatency-64k | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1010-lowlatency-64k-dbgsym | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1010-lowlatency-dbgsym | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1011-oracle | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1011-oracle-64k | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1011-oracle-64k-dbgsym | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is reached by loading and running an eBPF program via the bpf(2) syscall, which requires local system access. Per kernel CNA guidance, BPF subsystem bugs are Local. AC:L - Triggering is fully deterministic — the attacker simply calls bpf_iter_bits_new() with nr_words = 0x04000001, requiring no race, no memory-layout grooming, and no non-default configuration. The kfunc is in the COMMON kfunc set, available to every BPF program type on any stock kernel with CONFIG_DEBUG_INFO_BTF. PR:L - Calling the kfunc requires bpf_capable(), which is satisfied by an unprivileged container process holding a delegated BPF token (bpffs delegate_cmds/delegate_progs grants ns_capable(CAP_BPF) inside a user namespace) or by any non-root CAP_BPF-only daemon such as a tracing/observability or Cilium-style agent. CAP_BPF is a deliberately non-root, delegable capability, so this is Low rather than High privilege. UI:N - The attacker loads and triggers its own BPF program end to end; no victim action, mount, or file open is involved. S:U - The corruption stays within the kernel's own security authority — this is a standard local kernel memory-corruption/privilege-escalation primitive with no VM, IOMMU, or sandbox boundary crossed. C:H - The attacker supplies an arbitrary kernel source address whose contents are copied far past the 8-byte destination, and the resulting large-scale kernel memory corruption can be leveraged to disclose sensitive kernel data. Per guidance, out-of-bounds access of this magnitude is High. I:H - This is an unbounded out-of-bounds write of 512 MB to 3.5 GB starting at an 8-byte kernel-stack object, overwriting saved registers and return addresses with either attacker-chosen kernel memory contents or zeros; the commit itself states "stack corruption may occur." Such corruption is exploitable for control-flow hijacking and, on non-VMAP_STACK builds, zeroes adjacent kernel structures including credentials. A:H - Even the failure path unconditionally executes memset(dst, 0, 512MB) over the kernel stack, so the frame is destroyed and the write runs into the VMAP_STACK guard page, guaranteeing an oops or panic. The attacker can repeat this at will.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 4665415975b0827e9646cab91c61d02a6b364d59 to < c9539e09c67880ecd88b51188c346a2cc078b06c (affected · git)4665415975b0827e9646cab91c61d02a6b364d59 to < 393397fbdcad7396639d7077c33f86169184ba99 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.11 (affected)0 to < 6.11 (unaffected · semver)6.11.7 through 6.11.* (unaffected · semver)6.12 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-noinfo Not enough information
References
2Provider assertions
2Linux · cna
bpf: Check the validity of nr_words in bpf_iter_bits_new()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dcbda8c1d2404dfe58a769be223c976f9a663a6a387bb1f86e6e758c63dbb9fa
- Ingested
- 23 Sep 2026, 08:29:52 UTC
- Source record
- Official CVE record