cifs: NULL dereference vulnerability in cifs_compose_mount_options()

Kernel Updated 02 Oct 2025

Summary

03/08/2021
N/A
No i
Unrated
Not published

GSD-2021-1001252: cifs: prevent NULL deref in cifs_compose_mount_options(). Affects Kernel versions < e58c162789becede894d3e94c0ce6695a2ef5796. 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 cifs package is a part of the Linux Kernel ecosystem and provides support for the Common Internet File System (CIFS) protocol. CIFS allows Linux systems to access files and resources on remote Windows servers. The cifs_compose_mount_options() function is responsible for composing mount options for CIFS filesystems. However, a vulnerability exists in this function that can lead to a NULL dereference.

Vulnerability Detail

The vulnerability in cifs_compose_mount_options() arises due to a lack of proper validation of mount options. An attacker can exploit this vulnerability by providing specially crafted mount options, which can trigger a NULL pointer dereference. This can result in a kernel crash or potentially allow the attacker to execute arbitrary code with kernel privileges. The impact and attack plausibility of this vulnerability have not been proven yet.

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

There is no known workaround for this vulnerability.

Conclusion

The cifs package in the Linux Kernel is vulnerable to a NULL dereference vulnerability in the cifs_compose_mount_options() function. This vulnerability can result in a kernel crash or potential arbitrary code execution with kernel privileges. It is recommended to update to Linux Kernel version v5.10.53 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can range from a kernel crash to potential arbitrary code execution with kernel privileges.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground and it will alert you in real-time if your application is affected.

No, there is no known workaround for this vulnerability. It is recommended to update to the fixed version of the Linux Kernel.

There are no known exploits for this vulnerability at the moment. However, it is important to apply the fix as soon as possible to mitigate any potential risks.

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