cve.bz

CVE-2024-50154 linux linux kernel: Use After Free

7.0 highEPSS 0.6%Fix available

High (7.0) in linux linux kernel. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: tcp/dccp: Don't use timer_pending() in reqsk_queue_unlink(). Martin KaFai Lau reported use-after-free [0] in reqsk_timer_handler(). """ We are seeing a use-after-free from a bpf prog attached to trace_tcp_retransmit_synack. The program passes the req->sk to the bpf_sk_storage_get_tracing kernel helper which does check for null before using it. """ The commit 83fccfc3940c ("inet: fix potential deadlock in reqsk_queue_unlink()") added timer_pending() in reqsk_queue_unlink() not to call del_timer_sync() from reqsk_timer_handler(), but it introduced a small race window. Before the timer is called, expire_timers() calls detach_timer(timer, true) to clear timer->entry.pprev and marks it as not pending. If reqsk_queue_unlink() checks timer_pending() just after expire_timers() calls detach_timer(), TCP will miss del_timer_sync(); the reqsk timer will continue running and send multiple SYN+ACKs until it expires. The reported UAF could happen if req->sk is close()d earlier than the timer expiration, which is 63s by default. The scenario would be 1. inet_csk_complete_hashdance() calls inet_csk_reqsk_queue_drop(), but del_timer_sync() is missed 2. reqsk timer is executed and scheduled again 3. req->sk is accept()ed and reqsk_put() decrements rsk_refcnt, but reqsk timer still has another one, and inet_csk_accept() does not clear req->sk for non-TFO sockets 4. sk is close()d 5. reqsk timer is executed again, and BPF touches req->sk Let's not use timer_pending() by passing the caller context to __inet_csk_reqsk_queue_drop(). Note that reqsk timer is pinned, so the issue does not happen in most use cases. [1] [0] BUG: KFENCE: use-after-free read in bpf_sk_storage_get_tracing+0x2e/0x1b0 Use-after-free read at 0x00000000a891fb3a (in kfence-#1): bpf_sk_storage_get_tracing+0x2e/0x1b0 bpf_prog_5ea3e95db6da0438_tcp_retransmit_synack+0x1d20/0x1dda bpf_trace_run2+0x4c/0xc0 tcp_rtx_synack+0xf9/0x100 reqsk_timer_handler+0xda/0x3d0 run_timer_softirq+0x292/0x8a0 irq_exit_rcu+0xf5/0x320 sysvec_apic_timer_interrupt+0x6d/0x80 asm_sysvec_apic_timer_interrupt+0x16/0x20 intel_idle_irq+0x5a/0xa0 cpuidle_enter_state+0x94/0x273 cpu_startup_entry+0x15e/0x260 start_secondary+0x8a/0x90 secondary_startup_64_no_verify+0xfa/0xfb kfence-#1: 0x00000000a72cc7b6-0x00000000d97616d9, size=2376, cache=TCPv6 allocated by task 0 on cpu 9 at 260507.901592s: sk_prot_alloc+0x35/0x140 sk_clone_lock+0x1f/0x3f0 inet_csk_clone_lock+0x15/0x160 tcp_create_openreq_child+0x1f/0x410 tcp_v6_syn_recv_sock+0x1da/0x700 tcp_check_req+0x1fb/0x510 tcp_v6_rcv+0x98b/0x1420 ipv6_list_rcv+0x2258/0x26e0 napi_complete_done+0x5b1/0x2990 mlx5e_napi_poll+0x2ae/0x8d0 net_rx_action+0x13e/0x590 irq_exit_rcu+0xf5/0x320 common_interrupt+0x80/0x90 asm_common_interrupt+0x22/0x40 cpuidle_enter_state+0xfb/0x273 cpu_startup_entry+0x15e/0x260 start_secondary+0x8a/0x90 secondary_startup_64_no_verify+0xfa/0xfb freed by task 0 on cpu 9 at 260507.927527s: rcu_core_si+0x4ff/0xf10 irq_exit_rcu+0xf5/0x320 sysvec_apic_timer_interrupt+0x6d/0x80 asm_sysvec_apic_timer_interrupt+0x16/0x20 cpuidle_enter_state+0xfb/0x273 cpu_startup_entry+0x15e/0x260 start_secondary+0x8a/0x90 secondary_startup_64_no_verify+0xfa/0xfb

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 47th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-12-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-50154 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-50154?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-50154?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-50154 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linuxfrom 4.1.11 before 4.2
Linux4.2 and later

Fixed in

ProductRelease lineFixed in
Linux5.45.4.293
Linux5.105.10.237
Linux5.155.15.170
Linux6.16.1.115
Linux6.66.6.59
Linux6.116.11.6
Linuxlater releases6.12

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.237-1DLA-4178-1
Debian11linux-6.16.1.119-1~deb11u1DLA-4008-1
Debian12linux6.1.115-1DEBIAN-CVE-2024-50154
Debian13, 14linux6.11.6-1DEBIAN-CVE-2024-50154
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2024-50154
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2024-50154
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1080.87~20.04.1UBUNTU-CVE-2024-50154 USN-7388-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1081.90~20.04.1UBUNTU-CVE-2024-50154 USN-7289-2
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1081.90~20.04.1.1USN-7289-2
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1077.86~20.04.1UBUNTU-CVE-2024-50154 USN-7291-1
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2024-50154
Ubuntu20.04:LTSlinux-hwe-5.155.15.0-134.145~20.04.1UBUNTU-CVE-2024-50154 USN-7331-1
Ubuntu20.04:LTSlinux-ibm-5.155.15.0-1074.77~20.04.1UBUNTU-CVE-2024-50154 USN-7458-1
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1073.79~20.04.2UBUNTU-CVE-2024-50154 USN-7289-4
Ubuntu20.04:LTSlinux-lowlatency-hwe-5.155.15.0-133.143~20.04.1UBUNTU-CVE-2024-50154 USN-7288-2
Ubuntu20.04:LTSlinux-oracle-5.155.15.0-1075.81~20.04.1UBUNTU-CVE-2024-50154 USN-7289-2
65 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.63.1.el8_10RHSA-2025:11455
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.63.1.el8_10RHSA-2025:11455
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.63.1.rt7.404.el8_10RHSA-2025:11456
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.63.1.rt7.404.el8_10RHSA-2025:11456
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 26 more0:5.14.0-503.22.1.el9_5RHSA-2025:0578
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.4.0-503.22.1.el9_5RHSA-2025:0578
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.4.0-503.22.1.el9_5RHSA-2025:0578
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 44 more0:5.14.0-503.22.1.el9_5RHSA-2025:0578
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 14 more0:5.14.0-503.22.1.el9_5RHSA-2025:0578
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-503.22.1.el9_5RHSA-2025:0578
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-503.22.1.el9_5RHSA-2025:0578
Red Hatrhel_eus:9.4::appstreamrv, perf, rtla and 26 more0:5.14.0-427.55.1.el9_4RHSA-2025:1658
6 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSSkernel-64kb, kernel-docs, kernel-syms and 4 more5.3.18-150300.59.185.1SUSE-SU-2024:4313-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morekernel-default-base5.3.18-150300.59.185.1.150300.18.109.1SUSE-SU-2024:4313-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2kernel-default5.3.18-150200.24.212.1SUSE-SU-2024:4388-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.185.1SUSE-SU-2024:4313-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.144.1SUSE-SU-2024:4346-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.147.1SUSE-SU-2025:0203-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Micro 5.5 and 1 morekernel-default5.14.21-150500.55.88.1SUSE-SU-2024:4364-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.30.1SUSE-SU-2024:4318-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.33.1SUSE-SU-2025:0154-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2kernel-default-base5.3.18-150200.24.212.1.150200.9.111.1SUSE-SU-2024:4388-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2kernel-docs, kernel-syms, kernel-source and 3 more5.3.18-150200.24.212.1SUSE-SU-2024:4388-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.144.1SUSE-SU-2024:4346-1
92 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.75.1SUSE-SU-2024:4376-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.79.1SUSE-SU-2024:4315-1
openSUSELeap 15.6dtb-aarch64, kernel-64kb, kernel-docs and 8 more6.4.0-150600.23.30.1SUSE-SU-2024:4318-1
openSUSELeap 15.6dtb-aarch64, kernel-64kb, kernel-docs and 8 more6.4.0-150600.23.33.1SUSE-SU-2025:0154-1
openSUSELeap 15.6kernel-azure, kernel-syms-azure, kernel-source-azure6.4.0-150600.8.20.1SUSE-SU-2024:4316-1
openSUSELeap 15.6kernel-azure, kernel-syms-azure, kernel-source-azure6.4.0-150600.8.23.1SUSE-SU-2025:0117-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.30.1.150600.12.12.6SUSE-SU-2024:4318-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.33.1.150600.12.14.1SUSE-SU-2025:0154-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.20.1SUSE-SU-2024:4314-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.23.1SUSE-SU-2025:0153-1
openSUSELeap Micro 5.5kernel-rt5.14.21-150500.13.79.1SUSE-SU-2024:4315-1
openSUSETumbleweedkernel-source6.11.8-1.1openSUSE-SU-2024:14500-1
1 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8kernel-rt, kernel-rt-core, kernel-rt-debug and 7 more4.18.0-553.63.1.rt7.404.el8_10ALSA-2025:11456
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.63.1.el8_10ALSA-2025:11455
AlmaLinux9bpftool7.4.0-503.22.1.el9_5ALSA-2025:0578
AlmaLinux9rv, perf, rtla and 59 more5.14.0-503.22.1.el9_5ALSA-2025:0578
Rocky Linux8kernel0:4.18.0-553.63.1.el8_10RLSA-2025:11455
Rocky Linux8kernel-rt0:4.18.0-553.63.1.rt7.404.el8_10RLSA-2025:11456
Azure Linux2kernel5.15.173.1-1AZL-52967
Azure Linux3kernel6.6.64.2-1AZL-52987
Alpaquita23linux-lts6.1.115-r0BELL-CVE-2024-50154
Alpaquita25, streamlinux-lts6.12.41-r0BELL-CVE-2024-50154

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is classified as moderate severity rather than important because the issue primarily affects a narrow set of conditions, notably when BPF programs are involved in tracing TCP retransmissions. In most scenarios, the reqsk timer is pinned and the race condition is unlikely to be triggered. Additionally, the problem only occurs if the request socket (`req->sk`) is closed while the timer is still pending, which is an uncommon sequence of events. While the potential for a use-after-free (UAF) exists, it requires specific timing and conditions to exploit, limiting its overall risk and impact on typical systems.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.63.1.rt7.404.el8_10Fixed 2025-07-21RHSA-2025:11456
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.63.1.el8_10Fixed 2025-07-21RHSA-2025:11455
Red Hat Enterprise Linux 9kernel-0:5.14.0-503.22.1.el9_5Fixed 2025-01-22RHSA-2025:0578
Red Hat Enterprise Linux 9.4 Extended Update Supportkernel-0:5.14.0-427.55.1.el9_4Fixed 2025-02-19RHSA-2025:1658
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-50154.

References

Check your stackJSON