CVE-2025-38191
📋 TL;DR
A NULL pointer dereference vulnerability in the Linux kernel's ksmbd module allows denial-of-service attacks when clients set PreviousSessionId during Kerberos session setup. This affects systems using the ksmbd SMB server module. Attackers can crash the kernel module, disrupting SMB file sharing services.
💻 Affected Systems
- Linux kernel with ksmbd module
📦 What is this software?
Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →⚠️ Risk & Real-World Impact
Worst Case
Kernel panic leading to system crash and complete service disruption
Likely Case
Kernel module crash causing SMB service interruption requiring module restart
If Mitigated
Isolated module crash with automatic restart if configured, minimal service impact
🎯 Exploit Status
Requires ability to initiate Kerberos SMB session setup with PreviousSessionId set
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Linux kernel with commit 076f1adefb9837977af7ed233883842ddc446644 or later
Vendor Advisory: https://git.kernel.org/stable/c/076f1adefb9837977af7ed233883842ddc446644
Restart Required: Yes
Instructions:
1. Update Linux kernel to patched version 2. Reboot system 3. Verify ksmbd module loads correctly
🔧 Temporary Workarounds
Disable ksmbd module
linuxPrevent loading of vulnerable ksmbd kernel module
echo 'blacklist ksmbd' >> /etc/modprobe.d/blacklist-ksmbd.conf
rmmod ksmbd
Disable Kerberos authentication
linuxConfigure ksmbd to use only non-Kerberos authentication methods
Edit ksmbd configuration to disable Kerberos options
🧯 If You Can't Patch
- Restrict SMB network access to trusted clients only
- Implement network segmentation to isolate SMB services
🔍 How to Verify
Check if Vulnerable:
Check if ksmbd module is loaded: lsmod | grep ksmbd
Check Version:
uname -r
Verify Fix Applied:
Check kernel version includes fix commit: grep -q '076f1adefb9837977af7ed233883842ddc446644' /proc/version
📡 Detection & Monitoring
Log Indicators:
- Kernel oops messages
- ksmbd module crash logs
- SMB service interruption logs
Network Indicators:
- Unexpected SMB session setup packets with PreviousSessionId
- SMB service unavailability
SIEM Query:
source="kernel" AND ("NULL pointer dereference" OR "ksmbd" OR "oops")
🔗 References
- https://git.kernel.org/stable/c/076f1adefb9837977af7ed233883842ddc446644
- https://git.kernel.org/stable/c/0902625a24eea7fdc187faa5d97df244d159dd6e
- https://git.kernel.org/stable/c/1193486dffb7432a09f57f5d09049b4d4123538b
- https://git.kernel.org/stable/c/281afc52e2961cd5dd8326ebc9c5bc40904c0468
- https://git.kernel.org/stable/c/7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e
- https://www.zerodayinitiative.com/advisories/ZDI-25-610/
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html