CVE-2025-37894
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2025-37894) was discovered in the Linux kernel and disclosed on May 20, 2025. The issue affects the networking stack's handling of TCP TIMEWAIT state sockets, specifically in the functions inetlookupestablished() and inet6lookupestablished(). The vulnerability involves improper handling of struct inettimewaitsock pointers (NVD, Wiz).

Technical details

The vulnerability occurs when a pointer of type struct inettimewaitsock is returned from the inetlookupestablished() and inet6lookupestablished() functions. The issue manifests when sockput() is called on this pointer type, leading to a crash when sk->skwmemalloc is accessed in skfree(). The technical solution involves using sockgenput() instead of sockput() when sk->skstate is TCPTIMEWAIT (NVD, RedHat).

Impact

When exploited, this vulnerability can cause a system crash due to improper memory access during socket handling operations. The crash occurs specifically during the call to sockput() on a struct inettimewait_sock pointer (Wiz).

Mitigation and workarounds

The vulnerability has been resolved by implementing a fix that uses sockgenput() instead of sockput() when handling sockets in TCPTIMEWAIT state. This change ensures proper handling of struct inettimewait_sock pointers (Wiz).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management