CVE-2025-40357
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40357 is a general protection fault vulnerability in the Linux kernel's SMC (Shared Memory Communications) subsystem, specifically in the __smc_diag_dump function within net/smc/smc_diag.c. The flaw was reported via syzbot and disclosed on December 16, 2025. It affects the Linux kernel across multiple stable branches. No CVSS score has been officially assigned at this time, and the CVE status is listed as Unknown (Feedly, CVE.org).

Technical details

The vulnerability is a wild memory access (likely CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) triggered in the smc_diag_msg_common_fill function called from __smc_diag_dump. The syzbot crash report shows a KASAN-detected general protection fault at a non-canonical address (0xfbd5a5d5a0000003), with the KASAN range [0xdead4ead00000018-0xdead4ead0000001f] indicating a use-after-free or dangling pointer dereference — the 0xdead4ead pattern is a known Linux kernel poison value for freed memory. The fault is reachable via the netlink diagnostic path: a local user sends a netlink message that triggers smc_diag_handler_dumpsmc_diag_dumpsmc_diag_dump_proto__smc_diag_dump, where a freed or invalid SMC socket structure is accessed (Feedly). Fixes were committed to the stable kernel trees at commits 5b6fc95c, 99b5b3fa, and f584239a (kernel.org patch 1, kernel.org patch 2, kernel.org patch 3).

Impact

Successful exploitation causes a kernel general protection fault, resulting in a system crash (denial of service). Because the vulnerability involves accessing freed/poisoned kernel memory in the SMC diagnostic path, it primarily impacts availability. There is no current evidence of code execution or privilege escalation being achievable through this specific flaw, though kernel memory corruption bugs can sometimes be chained for further impact (Feedly).

Exploitation steps

  1. Gain local access: Obtain a local user account on a Linux system with the SMC kernel module loaded and netlink socket access available.
  2. Craft a netlink diagnostic request: Use the SOCK_DIAG_BY_FAMILY netlink interface targeting the SMC protocol family to trigger a dump of SMC socket diagnostics.
  3. Trigger the vulnerable path: Send the crafted netlink message to invoke smc_diag_handler_dumpsmc_diag_dump__smc_diag_dump, which calls smc_diag_msg_common_fill on a potentially freed or invalid SMC connection structure.
  4. Cause kernel crash: The access to the freed memory (identifiable by the 0xdead4ead poison pattern) triggers a general protection fault, crashing the kernel and causing a denial of service (Feedly).

Indicators of compromise

  • Logs: Kernel oops messages containing general protection fault and references to smc_diag_msg_common_fill or __smc_diag_dump in /var/log/kern.log or dmesg output.
  • Logs: KASAN reports mentioning address range 0xdead4ead00000018-0xdead4ead0000001f or non-canonical address 0xfbd5a5d5a0000003.
  • Process: Unusual processes sending netlink SOCK_DIAG_BY_FAMILY requests targeting the SMC family, particularly from unprivileged users.
  • System: Unexpected kernel panics or system reboots on hosts running SMC-enabled kernels.

Mitigation and workarounds

Apply the upstream kernel patches fixing the use-after-free in __smc_diag_dump (commits 5b6fc95c, 99b5b3fa, and f584239a in the stable kernel trees). Linux distribution vendors including those tracked by Tenable Nessus plugins (278929, 296481, 296676, 297194, 297793, 298231) have issued updated kernel packages — apply the latest kernel update from your distribution. As a workaround, systems that do not require the SMC protocol can unload or blacklist the smc kernel module (modprobe -r smc or adding blacklist smc to /etc/modprobe.d/) to eliminate the attack surface (Feedly, Tenable).

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-2026-64192HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-oracle-5.4
NoYesJul 20, 2026
CVE-2026-64191HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-ibm
NoYesJul 20, 2026
CVE-2026-64600HIGH7.1
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-devel
NoYesJul 23, 2026
CVE-2026-64206MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-internal
NoYesJul 20, 2026
CVE-2026-64205MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-modules
NoNoJul 20, 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