Menu

Star on GitHub · 3.2k

CVE-2024-42239

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: bpf: Fail bpf_timer_cancel when callback is being cancelled Given a schedule: timer1 cb timer2 cb bpf_timer_cancel(timer2);…

Published Aug 7, 2024CWE-667EPSS 0.17%

Overview

CVE-2024-42239 is a medium-severity vulnerability. It was published on August 7, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fail bpf_timer_cancel when callback is being cancelled

Given a schedule:

timer1 cb timer2 cb

bpf_timer_cancel(timer2); bpf_timer_cancel(timer1);

Both bpf_timer_cancel calls would wait for the other callback to finish

executing, introducing a lockup.

Add an atomic_t count named 'cancelling' in bpf_hrtimer. This keeps

track of all in-flight cancellation requests for a given BPF timer.

Whenever cancelling a BPF timer, we must check if we have outstanding

cancellation requests, and if so, we must fail the operation with an

error (-EDEADLK) since cancellation is synchronous and waits for the

callback to finish executing. This implies that we can enter a deadlock

situation involving two or more timer callbacks executing in parallel

and attempting to cancel one another.

Note that we avoid incrementing the cancelling counter for the target

timer (the one being cancelled) if bpf_timer_cancel is not invoked from

a

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-42239?

CVE-2024-42239 is a medium-severity vulnerability. It was published on August 7, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-42239?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-42239?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-42239?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-42239 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2024

View all