Skip to main content
EPSS 0.3%top 83%

In the Linux kernel, the following vulnerability has been resolved: bpf: Defer work in bpf_timer_cancel_and_free Currently, the same case as… (CVE-2024-41045)

0
High
Published: 07/29/2024 (07/29/2024, 15:30:42 UTC)
Source: GCVE Database

Description

A use-after-free (UAF) vulnerability in the Linux kernel's BPF subsystem related to timer cancellation and freeing has been resolved. The issue involves deadlock and UAF conditions when two timer callbacks try to cancel each other or when freeing map elements containing timers. The fix defers cancellation work to a global workqueue to avoid deadlocks and ensures safe timer cancellation and freeing.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/03/2026, 17:23:44 UTC

Technical Analysis

CVE-2024-41045 addresses a vulnerability in the Linux kernel's BPF timer handling code, specifically in the function bpf_timer_cancel_and_free. The vulnerability arises from a deadlock and use-after-free scenario when two timer callbacks attempt to cancel each other or when map elements containing timers are freed. The root cause involves reliance on hrtimer_cancel, which can deadlock, and improper handling of timer cancellation and freeing that can lead to a use-after-free if the timer expiration is far in the future and the RCU grace period expires first. The patch defers the cancellation work to a global workqueue, allowing safe cancellation after async_cancel_and_free without inline deadlock, and updates code comments accordingly.

Potential Impact

The vulnerability has a high severity with a CVSS score of 7.8, indicating it can lead to high impact on confidentiality, integrity, and availability. Exploitation could cause use-after-free conditions leading to potential kernel memory corruption, crashes, or privilege escalation. However, there are no known exploits in the wild at this time.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to defer timer cancellation work to a global workqueue, preventing deadlocks and use-after-free conditions. Users should apply the official kernel patch or update to a kernel version that includes this fix. Since this is not a cloud service, remediation depends on applying the vendor's patch. Patch status is confirmed by the vendor advisory describing the fix.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-w3rc-7c7w-5vq5
Osv Schema Version
1.4.0
Aliases
["CVE-2024-41045"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6ac13969a43b0b3b89d5fbaf

Added to database: 10/03/2026, 17:20:41 UTC

Last enriched: 10/03/2026, 17:23:44 UTC

Last updated: 10/04/2026, 02:45:59 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses