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 smc_sock does not properly include struct inet_sock as its first member but instead hijacks AF_INET and AF_INET6 sk_family. This leads to confusion in various code paths, particularly when handling inet_sock.inet_opt which actually points to smc_sock.clcsk_data_ready(). The issue manifests when freeing inet_sk(sk)->inet_opt in cipso_v4_sock_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 smc_sock structure to properly include inet_sock 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

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68753HIGH7.8
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68756HIGH7.1
  • Linux KernelLinux Kernel
  • linux-oracle
NoYesJan 05, 2026
CVE-2025-68764MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68758MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel
NoYesJan 05, 2026

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