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-26737

published high CVSS 3.1 · 7.8

bpf: Fix racing between bpf_timer_cancel_and_free and bpf_timer_cancel

Published
03 Apr 2024, 17:00:23 UTC
Updated
05 Aug 2026, 11:26:56 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxb00628b1c7d595ae5b544e059c27b1f5828314b4 to < 5268bb02107b9eedfdcd51db75b407d10043368c · b00628b1c7d595ae5b544e059c27b1f5828314b4 to < addf5e297e6cbf5341f9c07720693ca9ba0057b5 · b00628b1c7d595ae5b544e059c27b1f5828314b4 to < 8327ed12e8ebc5436bfaa1786c49988894f9c8a6 · b00628b1c7d595ae5b544e059c27b1f5828314b4 to < 7d80a9e745fa5b47da3bca001f186c02485c7c33 · b00628b1c7d595ae5b544e059c27b1f5828314b4 to < 0281b919e175bb9c3128bd3872ac2903e9436e3f · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.150 through 5.15.* (unaffected · semver) · 6.1.80 through 6.1.* (unaffected · semver) · 6.6.19 through 6.6.* (unaffected · semver) · 6.7.7 through 6.7.* (unaffected · semver) · 6.8 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.15-2024-058 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2024-784 Fixed Not stated Amazon Linux assessment
AlmaLinux 9 bpftool Advisory build 7.3.0-427.28.1.el9_4 ALSA-2024:4928
Oracle Linux 9 bpftoolaarch64 Advisory build 0:7.3.0-427.28.1.el9_4 ELSA-2024-4928
Red Hat Enterprise Linux RHEL-9 bpftoolaarch64 Advisory build 7.0.0-284.77.1.el9_2 RHSA-2024:5066
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 9 kernel Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-debug Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-devel Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-doc Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-headers Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-modules Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-rt Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-tools Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 libperf Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 perf Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 python3-perf Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 rtla Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
AlmaLinux 9 rv Advisory build 5.14.0-427.28.1.el9_4 ALSA-2024:4928
Oracle Linux 9 bpftoolx86_64 Advisory build 0:7.3.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernelx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-abi-stablelistsx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-corex86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-cross-headersaarch64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-cross-headersx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-debugx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-debug-corex86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-debug-develx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-debug-devel-matchedx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-debug-modulesx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-debug-modules-corex86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-debug-modules-extrax86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-debug-uki-virtx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-develx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-devel-matchedx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-docx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-headersaarch64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-headersx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-modulesx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-modules-corex86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-modules-extrax86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-toolsaarch64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-toolsx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-tools-libsaarch64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-tools-libsx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-tools-libs-develaarch64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-tools-libs-develx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 kernel-uki-virtx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 libperfx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 perfaarch64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 perfx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 python3-perfaarch64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 python3-perfx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 rtlax86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928
Oracle Linux 9 rvx86_64 Advisory build 0:5.14.0-427.28.1.el9_4 ELSA-2024-4928

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 racing between bpf_timer_cancel_and_free and bpf_timer_cancel The following race is possible between bpf_timer_cancel_and_free and bpf_timer_cancel. It will lead a UAF on the timer->timer. bpf_timer_cancel(); spin_lock(); t = timer->time; spin_unlock(); bpf_timer_cancel_and_free(); spin_lock(); t = timer->timer; timer->timer = NULL; spin_unlock(); hrtimer_cancel(&t->timer); kfree(t); /* UAF on t */ hrtimer_cancel(&t->timer); In bpf_timer_cancel_and_free, this patch frees the timer->timer after a rcu grace period. This requires a rcu_head addition to the "struct bpf_hrtimer". Another kfree(t) happens in bpf_timer_init, this does not need a kfree_rcu because it is still under the spin_lock and timer->timer has not been visible by others yet. In bpf_timer_cancel, rcu_read_lock() is added because this helper can be used in a non rcu critical section context (e.g. from a sleepable bpf prog). Other timer->timer usages in helpers.c have been audited, bpf_timer_cancel() is the only place where timer->timer is used outside of the spin_lock. Another solution considered is to mark a t->flag in bpf_timer_cancel and clear it after hrtimer_cancel() is done. In bpf_timer_cancel_and_free, it busy waits for the flag to be cleared before kfree(t). This patch goes with a straight forward solution and frees timer->timer after a rcu grace period.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

36

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 - Both sides of the race are driven through local syscalls — `bpf(BPF_PROG_LOAD)`/`BPF_PROG_TEST_RUN` to run a program calling `bpf_timer_cancel()`, and `BPF_MAP_DELETE_ELEM`/`close()` to drive `bpf_timer_cancel_and_free()`. No remotely supplied data reaches `kernel/bpf/helpers.c`, and BPF is classified as a local attack vector under kernel scoring guidance. AC:L - The attacker owns both racers — one thread runs its own BPF program calling `bpf_timer_cancel()` while another deletes the map element or drops the map uref — and can widen the window arbitrarily by making its own timer callback long-running, since `hrtimer_cancel()` blocks in `hrtimer_cancel_wait_running()` while the other thread finishes and `kfree()`s `t`. Nothing depends on state outside the attacker's control and the sequence can be retried in a tight loop. PR:L - The `bpf_timer_*` helpers are gated on `bpf_capable()` (CAP_BPF/CAP_SYS_ADMIN), a reduced non-root capability routinely delegated to unprivileged service, tracing and container workloads that are not init-namespace root. This matches this CNA's established scoring for the sibling `bpf_timer` UAFs CVE-2024-41045 and CVE-2024-42239. UI:N - The attacker loads its own program, arms its own timer, and issues both the cancel and the map-delete from its own threads. No victim action, mount, or interaction with any other principal is required. S:U - The freed `struct bpf_hrtimer` and the corrupted per-CPU hrtimer state are entirely kernel-internal, so the impact stays within the kernel's own security authority. No hypervisor, IOMMU, or sandbox boundary is crossed. C:H - `hrtimer_active()` reads `timer->base` out of the freed object and dereferences it (`base->seq`, `base->running`), so reclaiming the 96-byte `kmalloc-cg-96` slot with sprayed data (e.g. `msg_msg`) turns this into an attacker-directed kernel-memory read, with the helper's return value acting as an oracle. That yields arbitrary kernel data disclosure and KASLR defeat. I:H - After `hrtimer_active()` returns true, `lock_hrtimer_base()` takes a spinlock at an attacker-controlled address and `remove_hrtimer()`/`__remove_hrtimer()` writes `timer->state`, performs `timerqueue_del()` rb-tree unlinking and clears bits in `cpu_base->active_bases` through the same forged pointer. This is a controlled kernel write primitive suitable for privilege escalation. A:H - Even without a successful spray, operating on freed memory corrupts the per-CPU hrtimer queue and produces a KASAN splat, oops, or panic, and a garbage `timer->base` sends `hrtimer_cancel()` into an unterminating retry loop. The attacker can trigger this at will, repeatedly.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
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.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux b00628b1c7d595ae5b544e059c27b1f5828314b4 to < 5268bb02107b9eedfdcd51db75b407d10043368c (affected · git)b00628b1c7d595ae5b544e059c27b1f5828314b4 to < addf5e297e6cbf5341f9c07720693ca9ba0057b5 (affected · git)b00628b1c7d595ae5b544e059c27b1f5828314b4 to < 8327ed12e8ebc5436bfaa1786c49988894f9c8a6 (affected · git)b00628b1c7d595ae5b544e059c27b1f5828314b4 to < 7d80a9e745fa5b47da3bca001f186c02485c7c33 (affected · git)b00628b1c7d595ae5b544e059c27b1f5828314b4 to < 0281b919e175bb9c3128bd3872ac2903e9436e3f (affected · git)Default: unaffected Linux · cna
Linux Linux 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.150 through 5.15.* (unaffected · semver)6.1.80 through 6.1.* (unaffected · semver)6.6.19 through 6.6.* (unaffected · semver)6.7.7 through 6.7.* (unaffected · semver)6.8 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-noinfo Not enough information (CISA-ADP · adp)

References

5

Provider assertions

3

Linux · cna

bpf: Fix racing between bpf_timer_cancel_and_free and bpf_timer_cancel

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
2c2a87dc7d93442bed01b6a7808f18e3e907e157df680b50181fff81a6f71f6f
Ingested
23 Sep 2026, 08:20:34 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