Critical NULL Pointer Dereference in Linux Kernel NFS Lock Context Handling

linux Updated 02 Oct 2025

Summary

18/06/2025
N/A
No i
Unrated
Not published

CVE-2025-38023: In the Linux kernel, the following vulnerability has been resolved: nfs: handle failure of nfs_get_lock_context in unlock path When memory is insufficient, the allocation of nfs_lock_context in nfs_get_lock_context() fai... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware management and system processes. It supports various functionalities, including file systems, process management, and network protocols. This vulnerability affects the NFS (Network File System) module, which allows remote file access over a network. The specific issue arises when the kernel fails to handle memory allocation errors correctly, leading to potential system crashes.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the NFS module related to the handling of lock contexts. When the function nfs_get_lock_context() fails due to insufficient memory, it returns -ENOMEM. If the system erroneously treats the resulting nfs4_unlockdata structure as valid and attempts to execute rpc_run_task(), it can cause a NULL pointer dereference in the nfs4_locku_prepare function. This can lead to a kernel panic, resulting in system instability and crashes. The vulnerability is particularly critical as it can be exploited under low memory conditions, affecting the reliability of systems using NFS.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the available patches as soon as they are released.

Conclusion

The vulnerability CVE-2025-38023 in the Linux kernel's NFS module poses a significant risk due to improper handling of memory allocation failures. Users are strongly advised to update their systems to the patched versions to mitigate the risk of system crashes and instability. Regular monitoring and timely updates are essential for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-38023 is a vulnerability in the Linux kernel's NFS module that can lead to a NULL pointer dereference and potential system crashes.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.

Exploiting this vulnerability can lead to kernel panics, causing system instability and crashes, particularly under low memory conditions.

Yes, patches are available for Debian systems. Users should update to the specified patched versions of the Linux kernel.

While there are no specific workarounds, it is crucial to monitor your system for any signs of instability and plan to apply the patches as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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