Review reviewHigh

CVE-2024-26737

Linux Linux, linux kernel

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. T...

CVSS
7.8
EPSS
0.25%
16.5% percentile
CISA KEV
Not listed
Published
2024.04.04
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability0.25%
Technical severityCVSS 7.8

Vulnerability overview

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. T...

Affected product and versions

Product
Linux Linux, linux kernel
Affected versions
>= b00628b1c7d595ae5b544e059c27b1f5828314b4 < 5268bb02107b9eedfdcd51db75b407d10043368c, >= b00628b1c7d595ae5b544e059c27b1f5828314b4 < addf5e297e6cbf5341f9c07720693ca9ba0057b5, >= b00628b1c7d595ae5b544e059c27b1f5828314b4 < 8327ed12e8ebc5436bfaa1786c49988894f9c8a6, >= b00628b1c7d595ae5b544e059c27b1f5828314b4 < 7d80a9e745fa5b47da3bca001f186c02485c7c33, >= b00628b1c7d595ae5b544e059c27b1f5828314b4 < 0281b919e175bb9c3128bd3872ac2903e9436e3f, >= 5.15, >= 5.15 < 5.15.150, >= 5.16 < 6.1.80, >= 6.2 < 6.6.19, >= 6.7 < 6.7.7, 6.8
Fixed versions
5.15.150, 6.1.80, 6.6.19, 6.7.7

Recommended response sequence

Confirm exposure before applying a vendor-supported change.

Full remediation guide
  1. 1
    Identify

    Confirm that Linux Linux, linux kernel and an affected version are present.

  2. 2
    Prioritize

    Combine exploitation signals with asset exposure and business criticality.

  3. 3
    Remediate

    Follow the vendor advisory or supported update path and preserve rollback options.

  4. 4
    Verify

    Recheck the version, service health, access paths, and relevant logs.

Technical data

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE
CWE-416
CVE-2024-26737 — Linux Linux, linux kernel | SECUFOCUS NOW