Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-26582 Overview
CVE-2024-26582 is a use-after-free vulnerability in the Linux kernel's Transport Layer Security (TLS) subsystem. The flaw resides in the net/tls code path that handles partial reads combined with asynchronous decryption. The function tls_decrypt_sg fails to take a reference on pages originating from clear_skb. When tls_decrypt_done subsequently calls put_page(), those pages are released prematurely. A later read from the partially consumed socket buffer in process_rx_list then operates on freed memory. The weakness is tracked as [CWE-416].
Critical Impact
A local, authenticated attacker can trigger memory corruption in the kernel through crafted TLS socket operations, enabling potential privilege escalation or denial of service.
Affected Products
- Linux Kernel (upstream net/tls subsystem)
- Distribution kernels shipping kTLS support prior to the fixed stable releases
- Fedora kernel packages referenced in the Fedora package announcement
Discovery Timeline
- 2024-02-21 - CVE-2024-26582 published to the National Vulnerability Database (NVD)
- 2026-08-04 - Last updated in NVD database
Technical Details for CVE-2024-26582
Vulnerability Analysis
The Linux kernel implements in-kernel TLS (kTLS) to offload symmetric encryption and decryption for TCP sockets. When applications issue partial reads against a TLS socket while asynchronous decryption is in flight, the kernel maintains a receive list of partially consumed socket buffers (skbs) for later consumption. The vulnerability stems from mismatched page reference counting between tls_decrypt_sg and tls_decrypt_done.
Specifically, tls_decrypt_sg does not acquire a page reference on pages supplied by clear_skb. However, the asynchronous completion handler tls_decrypt_done unconditionally releases a reference by calling put_page(). The result is that the backing pages for the clear-text skb are freed while a reference to them still lives in the receive list. The next call into process_rx_list dereferences those freed pages, producing a use-after-free condition in kernel memory.
Root Cause
The root cause is an imbalanced page lifetime contract between the synchronous scatter-gather setup and the asynchronous completion path. The producer side assumed the pages were borrowed, while the consumer side treated them as owned, resulting in a premature put_page() on memory still reachable through process_rx_list.
Attack Vector
Exploitation requires local access and the ability to open and operate TLS-enabled sockets. An attacker performs partial recvmsg() reads against a kTLS socket configured with asynchronous decryption, then triggers a follow-up read that walks the receive list. The use-after-free can corrupt kernel heap objects, potentially leading to local privilege escalation to root or to kernel crashes resulting in denial of service.
No verified public proof-of-concept code is listed in the enriched data. The vulnerability mechanism is described in the upstream commits referenced below. See the Kernel Git Commit 754c9ba for the authoritative patch content.
Detection Methods for CVE-2024-26582
Indicators of Compromise
- Kernel oops or panic messages referencing tls_decrypt_done, process_rx_list, or tls_sw_recvmsg in dmesg and /var/log/messages
- KASAN use-after-free reports pointing to the net/tls subsystem on instrumented kernels
- Unexpected process termination or kernel soft-lockups on hosts handling TLS workloads through kTLS
Detection Strategies
- Inventory kernel versions across the fleet and flag hosts running pre-patch builds that enable CONFIG_TLS
- Hunt for processes invoking setsockopt with TCP_ULP=tls combined with partial-read patterns on long-lived sockets
- Correlate repeated TLS socket crashes with the same unprivileged user ID as a potential exploitation signal
Monitoring Recommendations
- Forward kernel ring buffer and auditd events to a centralized log platform for correlation across hosts
- Alert on sudden spikes in kernel-mode faults from workloads using in-kernel TLS acceleration
- Track package versions of kernel and kernel-core against vendor advisories such as the Fedora Package Announcement
How to Mitigate CVE-2024-26582
Immediate Actions Required
- Apply vendor-supplied kernel updates referenced in the upstream stable commits and reboot affected hosts
- Restrict shell and container escape surfaces on multi-tenant systems to limit local attack opportunities
- Audit which workloads actually require kTLS; disable the tls upper-layer protocol on hosts that do not need it
Patch Information
The fix is distributed across the following upstream stable commits: Kernel Git Commit 20b4ed0, Kernel Git Commit 32b55c5, Kernel Git Commit 754c9ba, and Kernel Git Commit d6847635. The patch corrects the page reference accounting in tls_decrypt_sg so that the asynchronous put_page() in tls_decrypt_done no longer releases pages still referenced by the receive list. Distribution rebuilds, including the referenced Fedora update, incorporate these commits.
Workarounds
- Where patching is delayed, prevent loading of the tls kernel module by blacklisting it in /etc/modprobe.d/ on hosts that do not require kTLS
- Reconfigure applications to use user-space TLS libraries such as OpenSSL instead of TCP_ULP=tls sockets
- Limit local account creation and tighten seccomp and container runtime profiles to reduce the pool of users able to open TLS sockets
# Configuration example: block the kTLS module where kTLS is not required
echo "install tls /bin/false" | sudo tee /etc/modprobe.d/disable-ktls.conf
sudo rmmod tls 2>/dev/null || true
# Verify kernel version against the patched stable releases
uname -r
rpm -q kernel-core 2>/dev/null || dpkg -l | grep linux-image
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

