Skip to main content
Mallory
HighVulnerability

CVE-2024-36904: Linux Kernel TCP TIME-WAIT Socket Use-After-Free

Published May 30, 2024 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.66%46th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendors
Debian ProjectLinux
IdentifiersCVE-2024-36904CWE-416 · Use After Free

CVE-2024-36904 is a use-after-free vulnerability caused by a race between inet_twsk_hashdance() and tcp_twsk_unique() in the Linux kernel TCP subsystem. inet_twsk_hashdance() publishes a TIME-WAIT socket in the established hash table and releases the bucket lock before initializing its reference counter. A concurrent connect() attempting port reuse can find the socket and call sock_hold() while its reference count is zero. Subsequent reference-counter initialization overwrites the increment or saturated counter, leaving reference accounting unbalanced and permitting premature socket release. The flaw can cause kernel memory corruption and service disruption.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

The race can produce reference-count warnings, underflow, and premature freeing of TCP TIME-WAIT sockets, potentially causing kernel crashes or other memory-corruption effects. Researchers confirmed an actual use-after-free in inet_twsk_put() using a modified, KASAN-enabled research kernel. Successful privilege escalation or arbitrary code execution is not established by the available information.

Mitigation

If you can’t patch tonight, do this now.

No complete operational workaround is available. Until patching is possible, reduce exposure to untrusted local workloads and network activity capable of generating high rates of concurrent TCP connection attempts and TIME-WAIT port-reuse races. Monitor kernel logs for reference-count warnings involving TCP TIME-WAIT socket handling; detection does not remediate the race.

Remediation

Patch, then assume compromise.

Install a vendor-supported kernel update containing the change to use refcount_inc_not_zero() in tcp_twsk_unique(), abandoning port reuse when the reference count is zero. Fixed upstream stable releases include 4.19.314, 5.4.276, 5.10.217, 5.15.159, 6.1.91, 6.6.31, and 6.8.10. Distribution kernels may incorporate backported fixes without matching these upstream versions. Applicable Red Hat updates include RHSA-2024:4583 for RHEL 9, RHSA-2024:4823 for RHEL 9.2, RHSA-2024:5692 for RHEL 8.6, and RHSA-2024:6206 for RHEL 8.8. Reboot into the updated kernel.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Debian ProjectDebian Linuxoperating_system
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2024-36904 exploited in the wild?
As of Oct 19, 2026, Mallory has no reports of CVE-2024-36904 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2024-36904?
As of Oct 19, 2026, Mallory has found no public exploit for CVE-2024-36904.
Is there a patch for CVE-2024-36904?
Install a vendor-supported kernel update containing the change to use refcount_inc_not_zero() in tcp_twsk_unique(), abandoning port reuse when the reference count is zero. Fixed upstream stable releases include 4.19.314, 5.4.276, 5.10.217, 5.15.159, 6.1.91, 6.6.31, and 6.8.10.
What products are affected by CVE-2024-36904?
Linux Kernel and Debian Project Debian Linux.
How severe is CVE-2024-36904?
CVE-2024-36904 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.66% (46th percentile) as of Oct 19, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.