NULL Pointer Dereference Vulnerability in Linux Kernel - CVE-2025-38122

linux Updated 02 Oct 2025

Summary

03/07/2025
N/A
Yes i
Unrated
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback