CVE-2025-38035
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-38035 is a vulnerability discovered in the Linux kernel affecting the nvmet-tcp component. The vulnerability was disclosed on June 18, 2025, and involves an issue where queue->statechange is set as part of nvmettcpsetqueuesock(), but if the TCP connection isn't established when nvmettcpsetqueuesock() is called, then queue->statechange isn't set and sock->sk->skstatechange isn't replaced (NVD, Wiz).

Technical details

The vulnerability stems from a NULL pointer dereference issue in the Linux kernel's nvmet-tcp component. When the TCP connection isn't established during the nvmettcpsetqueuesock() call, the queue->state_change remains unset, leading to potential NULL pointer dereferences. This can result in kernel crashes and system instability, as evidenced by detailed stack traces showing the NULL pointer dereference at address 0x0000000000000000 (NVD, Wiz).

Impact

The vulnerability can lead to system crashes and potential denial of service conditions due to NULL pointer dereferences in the kernel. When triggered, it results in kernel oops messages and system instability, potentially affecting the availability of services running on the affected systems (Wiz).

Mitigation and workarounds

The vulnerability has been resolved in the Linux kernel through a patch that prevents the restoration of null skstatechange. The fix ensures that sock->sk->skstatechange is not restored if queue->state_change is NULL, effectively preventing the NULL pointer dereferences. Various Linux distributions have released or are in the process of releasing patches for their respective versions (Debian).

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