ksmbd: Fix reference count leak in smb_check_perm_dacl()

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1002976: ksmbd: fix reference count leak in smb_check_perm_dacl(). Affects Kernel versions >= 777cad1604d68ed4379ec899d1f7d2f6a29f01f0, < 248d71b440aef829f5cc5f6545ca113ef5062900. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The ksmbd package is a component of the Linux Kernel ecosystem. It provides support for the Server Message Block (SMB) protocol, allowing Linux systems to act as SMB servers. The package handles permission checks for SMB requests, ensuring that access to files and directories is properly authorized. However, a vulnerability has been discovered in the smb_check_perm_dacl() function, which can lead to a reference count leak. This vulnerability may allow an attacker to exhaust system resources, potentially leading to a denial-of-service (DoS) condition.

Vulnerability Detail

The vulnerability in ksmbd's smb_check_perm_dacl() function was introduced in version v5.15 of the Linux Kernel and fixed in version v5.17.15. The function fails to properly handle reference counts, resulting in a leak. An attacker could exploit this vulnerability by sending specially crafted SMB requests, causing the reference count to increment repeatedly and exhausting system resources. This could lead to a DoS condition, impacting the availability of the affected system. It is important to note that the impact and attack plausibility of this vulnerability have not yet been proven.

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 →

Conclusion

In conclusion, the ksmbd package in the Linux Kernel is vulnerable to a reference count leak in the smb_check_perm_dacl() function. This vulnerability can potentially lead to a denial-of-service condition. It is crucial to update the Linux Kernel to version v5.17.15 or later to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

ksmbd is a component of the Linux Kernel that enables Linux systems to act as SMB servers, providing support for the Server Message Block protocol.

smb_check_perm_dacl() is a function in ksmbd that handles permission checks for SMB requests, ensuring proper authorization for file and directory access.

The vulnerability can lead to a denial-of-service (DoS) condition by exhausting system resources. However, the actual impact and attack plausibility have not yet been proven.

To fix this vulnerability, update the Linux Kernel to version v5.17.15 or later, which includes the necessary fix for smb_check_perm_dacl().

No specific workaround has been provided for this vulnerability. It is recommended to apply the official fix by updating the Linux Kernel.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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