Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-41009

published high CVSS 3.1 · 7.8

bpf: Fix overrunning reservations in ringbuf

Published
17 Jul 2024, 06:10:11 UTC
Updated
05 Aug 2026, 11:34:35 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux457f44363a8894135c85b7a9afd2bd8196db24ab to < be35504b959f2749bab280f4671e8df96dcf836f · 457f44363a8894135c85b7a9afd2bd8196db24ab to < 0f98f40eb1ed52af8b81f61901b6c0289ff59de4 · 457f44363a8894135c85b7a9afd2bd8196db24ab to < d1b9df0435bc61e0b44f578846516df8ef476686 · 457f44363a8894135c85b7a9afd2bd8196db24ab to < 511804ab701c0503b72eac08217eabfd366ba069 · 457f44363a8894135c85b7a9afd2bd8196db24ab to < 47416c852f2a04d348ea66ee451cbdcf8119f225 · 457f44363a8894135c85b7a9afd2bd8196db24ab to < cfa1a2329a691ffd991fcf7248a57d752e712881 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.10.223 through 5.10.* (unaffected · semver) · 5.15.164 through 5.15.* (unaffected · semver) · 6.1.97 through 6.1.* (unaffected · semver) · 6.6.37 through 6.6.* (unaffected · semver) · 6.9.8 through 6.9.* (unaffected · semver) · 6.10 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 AL2 Release evaluationALAS2KERNEL-5.10-2024-066 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2024-050 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2024-665 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
Debian bullseye linux Advisory build 5.10.223-1 DSA-5747-1
Show 99 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluationALAS2023-2024-714 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 kernel Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 perf Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 9 bpftool Advisory build 7.4.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-debug Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-devel Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-doc Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-headers Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-modules Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-rt Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-tools Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-uki-virt-addons Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 libperf Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 perf Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 python3-perf Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 rtla Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
AlmaLinux 9 rv Advisory build 5.14.0-503.15.1.el9_5 ALSA-2024:10274
Debian bullseye linux-6.1 Advisory build 6.1.119-1~deb11u1 DLA-4008-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: Fix overrunning reservations in ringbuf The BPF ring buffer internally is implemented as a power-of-2 sized circular buffer, with two logical and ever-increasing counters: consumer_pos is the consumer counter to show which logical position the consumer consumed the data, and producer_pos which is the producer counter denoting the amount of data reserved by all producers. Each time a record is reserved, the producer that "owns" the record will successfully advance producer counter. In user space each time a record is read, the consumer of the data advanced the consumer counter once it finished processing. Both counters are stored in separate pages so that from user space, the producer counter is read-only and the consumer counter is read-write. One aspect that simplifies and thus speeds up the implementation of both producers and consumers is how the data area is mapped twice contiguously back-to-back in the virtual memory, allowing to not take any special measures for samples that have to wrap around at the end of the circular buffer data area, because the next page after the last data page would be first data page again, and thus the sample will still appear completely contiguous in virtual memory. Each record has a struct bpf_ringbuf_hdr { u32 len; u32 pg_off; } header for book-keeping the length and offset, and is inaccessible to the BPF program. Helpers like bpf_ringbuf_reserve() return `(void *)hdr + BPF_RINGBUF_HDR_SZ` for the BPF program to use. Bing-Jhong and Muhammad reported that it is however possible to make a second allocated memory chunk overlapping with the first chunk and as a result, the BPF program is now able to edit first chunk's header. For example, consider the creation of a BPF_MAP_TYPE_RINGBUF map with size of 0x4000. Next, the consumer_pos is modified to 0x3000 /before/ a call to bpf_ringbuf_reserve() is made. This will allocate a chunk A, which is in [0x0,0x3008], and the BPF program is able to edit [0x8,0x3008]. Now, lets allocate a chunk B with size 0x3000. This will succeed because consumer_pos was edited ahead of time to pass the `new_prod_pos - cons_pos > rb->mask` check. Chunk B will be in range [0x3008,0x6010], and the BPF program is able to edit [0x3010,0x6010]. Due to the ring buffer memory layout mentioned earlier, the ranges [0x0,0x4000] and [0x4000,0x8000] point to the same data pages. This means that chunk B at [0x4000,0x4008] is chunk A's header. bpf_ringbuf_submit() / bpf_ringbuf_discard() use the header's pg_off to then locate the bpf_ringbuf itself via bpf_ringbuf_restore_from_rec(). Once chunk B modified chunk A's header, then bpf_ringbuf_commit() refers to the wrong page and could cause a crash. Fix it by calculating the oldest pending_pos and check whether the range from the oldest outstanding record to the newest would span beyond the ring buffer size. If that is the case, then reject the request. We've tested with the ring buffer benchmark in BPF selftests (./benchs/run_bench_ringbufs.sh) before/after the fix and while it seems a bit slower on some benchmarks, it is still not significantly enough to matter.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

69

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 through the bpf() syscall by loading and running a BPF program that calls bpf_ringbuf_reserve/submit, which is a local operation with no network or physical component. AC:L - The attacker deterministically controls both sides — the BPF producer and the writable consumer_pos mmap page — so the overlapping reservation is triggered reliably with no uncontrolled race or memory-layout precondition. PR:L - In the most severe reasonable configuration (unprivileged_bpf_disabled=0) any unprivileged local user can create a RINGBUF map and run a socket-filter program to reach this; the ringbuf helpers and map type are in the unprivileged class, and CAP_BPF is a delegatable sub-root capability. UI:N - The attacker performs the entire sequence (mmap, edit consumer_pos, reserve, submit) alone with no victim action required. S:U - The corruption stays within the kernel's own security authority; there is no cross-boundary escape such as VM or IOMMU. C:H - The overlapping-reservation primitive lets the program corrupt an adjacent record header so bpf_ringbuf_commit() dereferences an attacker-controlled rb pointer, enabling disclosure of kernel memory contents. I:H - Overlapping chunks give a controlled out-of-bounds write into another record's header, and the resulting attacker-controlled rb pointer feeding irq_work_queue() yields a write/control-flow primitive exploitable for corruption. A:H - The commit notes the corrupted header makes bpf_ringbuf_commit() reference the wrong page and can crash the kernel, a full denial of service.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 457f44363a8894135c85b7a9afd2bd8196db24ab to < be35504b959f2749bab280f4671e8df96dcf836f (affected · git)457f44363a8894135c85b7a9afd2bd8196db24ab to < 0f98f40eb1ed52af8b81f61901b6c0289ff59de4 (affected · git)457f44363a8894135c85b7a9afd2bd8196db24ab to < d1b9df0435bc61e0b44f578846516df8ef476686 (affected · git)457f44363a8894135c85b7a9afd2bd8196db24ab to < 511804ab701c0503b72eac08217eabfd366ba069 (affected · git)457f44363a8894135c85b7a9afd2bd8196db24ab to < 47416c852f2a04d348ea66ee451cbdcf8119f225 (affected · git)457f44363a8894135c85b7a9afd2bd8196db24ab to < cfa1a2329a691ffd991fcf7248a57d752e712881 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.8 (affected)0 to < 5.8 (unaffected · semver)5.10.223 through 5.10.* (unaffected · semver)5.15.164 through 5.15.* (unaffected · semver)6.1.97 through 6.1.* (unaffected · semver)6.6.37 through 6.6.* (unaffected · semver)6.9.8 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

7

Provider assertions

3

Linux · cna

bpf: Fix overrunning reservations in ringbuf

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
9cb98204677e59f782e6b3dc364160d3fe2011e3e8e4ae1c05a262fc53f71030
Ingested
23 Sep 2026, 08:26:02 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected