CVE-2025-38475
Linux Kernel vulnerability analysis and mitigation

Overview

A type confusion vulnerability was discovered in the Linux kernel's SMC (Shared Memory Communication) implementation. The vulnerability (CVE-2025-38475) affects the Linux kernel's networking stack, specifically related to the improper handling of socket types between INET and SMC sockets. The issue was discovered and reported by syzbot, with the vulnerability being publicly disclosed on July 28, 2025 (NVD).

Technical details

The vulnerability stems from a type confusion in the SMC socket implementation where struct smcsock does not properly include struct inetsock as its first member but instead hijacks AFINET and AFINET6 skfamily. This leads to confusion in various code paths, particularly when handling inetsock.inetopt which actually points to smcsock.clcskdataready(). The issue manifests when freeing inetsk(sk)->inetopt in cipsov4sock_setattr(), resulting in multiple frees of read-only memory (NVD).

Impact

The vulnerability can lead to multiple serious consequences including kernel oops, double-free conditions, and potential memory corruption. This could result in system crashes or potentially allow attackers to execute arbitrary code with kernel privileges (NVD).

Mitigation and workarounds

The fix involves restructuring the smcsock structure to properly include inetsock as its first member, rather than using previous hacky solutions. Three kernel patches have been released to address this issue (kernel.org, kernel.org, kernel.org).

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