NULL Pointer Dereference Vulnerability in Linux Kernel - CVE-2025-38122
Summary
CVE-2025-38122: In the Linux kernel, the following vulnerability has been resolved: gve: add missing NULL check for gve_alloc_pending_packet() in TX DQO gve_alloc_pending_packet() can return NULL, but gve_tx_add_skb_dqo() did not check... Affects linux versions < 6.1.147-1. Fixed in 6.1.147-1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Linux kernel is the core component of many operating systems, including Debian. It manages system resources and hardware communication, providing essential services for software applications. This vulnerability affects the gve (Generic Virtual Ethernet) driver, which is responsible for network interface operations. The issue arises when the driver fails to handle memory allocation properly, potentially leading to system instability.
Vulnerability Detail
In the Linux kernel, a vulnerability identified as CVE-2025-38122 has been discovered in the gve driver. The function gve_alloc_pending_packet() can return a NULL pointer if memory allocation fails, but the subsequent function gve_tx_add_skb_dqo() does not check for this condition before dereferencing the pointer. This oversight can lead to a NULL pointer dereference, causing potential crashes or unpredictable behavior in low-memory scenarios. The vulnerability highlights the importance of rigorous error handling in memory management within kernel drivers.
How To Fix
Minimum fixed version
6.1.147-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade linux
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
Currently, there are no specific workarounds mentioned for this vulnerability. However, ensuring that your system has adequate memory resources can help mitigate the risk of encountering this issue until a patch is applied.
Conclusion
CVE-2025-38122 is a critical vulnerability in the Linux kernel that can lead to system instability due to a NULL pointer dereference. Users are advised to update their systems to the latest patched versions to mitigate this risk. Regular monitoring of vulnerabilities using tools like Vulert can help maintain system security.
See every vulnerability recorded for linux →
FAQ
CVE-2025-38122 is a vulnerability in the Linux kernel's gve driver that can lead to a NULL pointer dereference due to improper memory allocation handling.
If exploited, this vulnerability can cause system crashes or unpredictable behavior, especially in low-memory situations.
Versions of the Linux kernel in Debian 12 and 13 are affected. It is recommended to check for updates to ensure you are using a patched version.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
While there are no specific workarounds, maintaining adequate memory resources may help reduce the risk until you can apply the necessary updates.
Related vulnerabilities
Recent vulnerabilities recorded for linux.