CVE-2025-37788
📋 TL;DR
A memory leak vulnerability exists in the Linux kernel's cxgb4 driver when initializing ethtool filters. If memory allocation fails for the bmap structure after successfully allocating loc_array, the previously allocated memory isn't properly freed, causing a kernel memory leak. This affects systems using Chelsio T4/T5/T6 network adapters with the cxgb4 driver.
💻 Affected Systems
- Linux kernel with cxgb4 driver
📦 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 →⚠️ Risk & Real-World Impact
Worst Case
Sustained exploitation could lead to kernel memory exhaustion, causing system instability, denial of service, or potential kernel crashes.
Likely Case
Gradual memory consumption over time leading to performance degradation and eventual system instability requiring reboot.
If Mitigated
Limited impact with proper monitoring and memory limits in place, though still undesirable in production environments.
🎯 Exploit Status
Exploitation requires triggering the specific error condition in memory allocation, which may require repeated attempts or specific system conditions. Requires local access or ability to perform network configuration operations.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Patched in kernel commits referenced in CVE (00ffb3724ce7, 08aa59c0be76, 118d05b53034, 76deedea0889, dafb6e433ab2)
Vendor Advisory: https://git.kernel.org/stable/c/00ffb3724ce743578163f5ade2884374554ca021
Restart Required: Yes
Instructions:
1. Update Linux kernel to version containing the fix commits. 2. Reboot system to load new kernel. 3. Verify cxgb4 driver is loaded with patched kernel version.
🔧 Temporary Workarounds
Disable ethtool filter functionality
linuxPrevent triggering the vulnerable code path by avoiding ethtool filter operations
# Avoid using ethtool filter commands on cxgb4 interfaces
# Example: ethtool -U ethX ... should be avoided
Use alternative network adapter
linuxReplace Chelsio adapters with different hardware not using cxgb4 driver
🧯 If You Can't Patch
- Implement kernel memory monitoring and alerting for unusual consumption patterns
- Restrict user access to ethtool and network configuration utilities
🔍 How to Verify
Check if Vulnerable:
Check if cxgb4 driver is loaded: lsmod | grep cxgb4. Check kernel version against patched versions in git commits.
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version includes fix commits: git log --oneline | grep -E '(00ffb3724ce7|08aa59c0be76|118d05b53034|76deedea0889|dafb6e433ab2)'
📡 Detection & Monitoring
Log Indicators:
- Kernel OOM (Out of Memory) messages
- System instability or crashes after network configuration changes
- Memory consumption alerts from monitoring systems
Network Indicators:
- None specific - this is a local memory management issue
SIEM Query:
source="kernel" AND ("out of memory" OR "kernel panic") AND process="cxgb4"
🔗 References
- https://git.kernel.org/stable/c/00ffb3724ce743578163f5ade2884374554ca021
- https://git.kernel.org/stable/c/08aa59c0be768596467552c129e9f82166779a67
- https://git.kernel.org/stable/c/118d05b530343cd9322607b9719405ba254a4183
- https://git.kernel.org/stable/c/76deedea08899885f076aba0bb80bd1276446822
- https://git.kernel.org/stable/c/dafb6e433ab2333b67be05433dc9c6ccbc7b1284
- https://git.kernel.org/stable/c/e9de08e15aee35b96064960f95997bb6c1209c4b
- https://git.kernel.org/stable/c/fa2d7708955e4f8212fd69bab1da604e60cb0b15
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html