Dangling Pointer Vulnerability in Linux Kernel's ksmbd Package

linux Updated 02 Oct 2025

Summary

01/05/2025
N/A
Yes i
Unrated
Not published

CVE-2025-37778: In the Linux kernel, the following vulnerability has been resolved: ksmbd: Fix dangling pointer in krb_authenticate krb_authenticate frees sess->user and does not set the pointer to NULL. Affects linux versions < 6.1.135-1. Fixed in 6.1.135-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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux kernel is a core component of many operating systems, providing essential services and managing hardware resources. The ksmbd module allows for SMB (Server Message Block) protocol support, enabling file sharing and network communication. This vulnerability affects the kernel's handling of user sessions, potentially leading to memory access issues.

Vulnerability Detail

In the Linux kernel, specifically within the ksmbd module, a vulnerability has been identified in the krb_authenticate function. This function frees the sess->user pointer without setting it to NULL, which can lead to a dangling pointer situation. If ksmbd_krb5_authenticate is called and fails to reinitialize sess->user, subsequent access to this pointer in smb2_sess_setup may result in accessing freed memory. This can lead to undefined behavior, crashes, or potential exploitation by an attacker.

How To Fix

Minimum fixed version

6.1.135-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 provided for this vulnerability. It is advisable to monitor for updates and apply them as soon as they become available.

Conclusion

The CVE-2025-37778 vulnerability in the Linux kernel's ksmbd module poses significant risks due to potential memory access issues. Users are encouraged to update their systems to the patched version as soon as it becomes available to ensure security and stability.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-37778 is a vulnerability in the Linux kernel's ksmbd module that can lead to accessing freed memory due to a dangling pointer.

This vulnerability can lead to crashes or undefined behavior in applications that rely on the ksmbd module, potentially allowing attackers to exploit the issue.

Versions of Linux using the ksmbd module are affected, particularly Debian 11, 12, and 13. Check for updates to see if a patched version is available.

While there are no specific workarounds, it is crucial to monitor for updates and apply them as soon as possible to mitigate risks.

You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.1.135-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