CVE-2025-38728
📋 TL;DR
A slab out-of-bounds read vulnerability in the Linux kernel's SMB3 implementation allows attackers to read kernel memory during mount operations to ksmbd servers. This affects Linux systems using the cifs/smb3 module with KASAN enabled. The vulnerability can lead to information disclosure and potential system instability.
💻 Affected Systems
- Linux kernel
📦 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 →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 →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 memory disclosure leading to privilege escalation, system crash, or information leakage of sensitive kernel data.
Likely Case
System instability, kernel panic, or denial of service during SMB mount operations.
If Mitigated
Limited impact if KASAN is disabled, though the underlying bug still exists.
🎯 Exploit Status
Exploitation requires ability to trigger SMB mount operations. The vulnerability was discovered through KASAN testing, suggesting it may not be actively exploited in the wild.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Patches available in stable kernel trees (commits: 7d34ec36abb84fdfb6632a0f2cbda90379ae21fc, 8de33d4d72e8fae3502ec3850bd7b14e7c7328b6, 9bdb8e98a0073c73ab3e6c631ec78877ceb64565, a0620e1525663edd8c4594f49fb75fe5be4724b0, a542f93a123555d09c3ce8bc947f7b56ad8e6463)
Vendor Advisory: https://git.kernel.org/stable/c/7d34ec36abb84fdfb6632a0f2cbda90379ae21fc
Restart Required: Yes
Instructions:
1. Update to a patched kernel version from your distribution's repositories. 2. Reboot the system to load the new kernel. 3. Verify the kernel version after reboot.
🔧 Temporary Workarounds
Disable KASAN
linuxDisabling Kernel Address Sanitizer prevents detection of the out-of-bounds read but doesn't fix the underlying vulnerability.
Rebuild kernel with CONFIG_KASAN=n
Restrict SMB mount operations
linuxLimit which users can perform SMB mount operations to reduce attack surface.
Use filesystem permissions to restrict access to mount utilities
Implement SELinux/AppArmor policies to control mount operations
🧯 If You Can't Patch
- Implement network segmentation to isolate systems performing SMB mounts
- Monitor for unusual mount activities and kernel panic logs
🔍 How to Verify
Check if Vulnerable:
Check if your kernel version includes the vulnerable code by examining the cifs module version and checking for the specific git commits mentioned in the CVE.
Check Version:
uname -r
Verify Fix Applied:
Verify the kernel version includes one of the patch commits: 7d34ec36abb84fdfb6632a0f2cbda90379ae21fc or related fixes.
📡 Detection & Monitoring
Log Indicators:
- Kernel panic messages
- KASAN error reports mentioning parse_server_interfaces
- System logs showing mount failures
Network Indicators:
- Unusual SMB mount attempts from unexpected sources
SIEM Query:
source="kernel" AND ("KASAN" OR "slab-out-of-bounds" OR "parse_server_interfaces")
🔗 References
- https://git.kernel.org/stable/c/7d34ec36abb84fdfb6632a0f2cbda90379ae21fc
- https://git.kernel.org/stable/c/8de33d4d72e8fae3502ec3850bd7b14e7c7328b6
- https://git.kernel.org/stable/c/9bdb8e98a0073c73ab3e6c631ec78877ceb64565
- https://git.kernel.org/stable/c/a0620e1525663edd8c4594f49fb75fe5be4724b0
- https://git.kernel.org/stable/c/a542f93a123555d09c3ce8bc947f7b56ad8e6463
- https://git.kernel.org/stable/c/f6eda5b0e8f8123564c5b34f5801d63243032eac
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html