
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-50154 is a use-after-free (UAF) vulnerability discovered in the Linux kernel's TCP subsystem, specifically related to request socket (reqsk) handling. The vulnerability was reported by Martin KaFai Lau and affects Linux kernel versions from 4.1.11 up to versions before 5.15.170, 6.1.115, 6.6.59, and 6.11.6 (NVD).
The vulnerability stems from a race condition in the reqsk_queue_unlink() function. The issue was introduced by commit 83fccfc3940c which added timer_pending() checks to prevent deadlocks. However, this created a race window where if reqsk_queue_unlink() checks timer_pending() just after expire_timers() calls detach_timer(), TCP misses del_timer_sync() call. This can cause the reqsk timer to continue running and send multiple SYN+ACKs until expiration. The vulnerability has been assigned a CVSS v3.1 base score of 7.0 HIGH with vector AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).
When exploited, this vulnerability can lead to a use-after-free condition when a BPF program attached to trace_tcp_retransmit_synack attempts to access req->sk after it has been closed. This occurs if req->sk is closed earlier than the timer expiration (default 63s). The vulnerability can potentially lead to system crashes, information leaks, or arbitrary code execution (Kernel Patch).
The vulnerability requires local access and specific conditions to be exploited. The issue primarily affects systems with BPF programs attached to trace_tcp_retransmit_synack. The exploit scenario involves a sequence of events including missed del_timer_sync() calls, timer execution, socket acceptance, and closure before timer expiration (Kernel Patch).
The vulnerability has been fixed in the Linux kernel by modifying the reqsk_queue_unlink() function to not use timer_pending() and instead passing the caller context to __inet_csk_reqsk_queue_drop(). Users should update to kernel versions 5.15.170, 6.1.115, 6.6.59, 6.11.6 or later to address this vulnerability (Red Hat).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."