NULL ptr dereference in smb2_ioctl_query_info() in cifs package

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001303: cifs: fix NULL ptr dereference in smb2_ioctl_query_info(). Affects Kernel versions < 49bef50e585d738e957060f669e872b4ad15eb87. 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 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 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 smb2_ioctl_query_info() function in the cifs package is responsible for handling IOCTL requests to query information from the server. However, a vulnerability exists in this function that can lead to a NULL pointer dereference.

Vulnerability Detail

The vulnerability occurs when the smb2_ioctl_query_info() function in the cifs package dereferences a NULL pointer. This can happen if the function is called with a malformed IOCTL request or if the server responds with unexpected data. An attacker can exploit this vulnerability by sending a specially crafted IOCTL request to a vulnerable system, causing the function to dereference a NULL pointer and potentially leading to a system crash or arbitrary code execution. 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. It is recommended to apply the fix mentioned above by updating the Linux Kernel.

Conclusion

The NULL ptr dereference vulnerability in smb2_ioctl_query_info() in the cifs package can potentially lead to system crashes or arbitrary code execution. It is recommended to update the Linux Kernel to version v5.17.2 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 cifs package is a part of the Linux Kernel ecosystem and provides support for the Common Internet File System (CIFS) protocol. It allows Linux systems to access files and resources on remote Windows servers.

The smb2_ioctl_query_info() function is a part of the cifs package and is responsible for handling IOCTL requests to query information from the server.

A NULL pointer dereference occurs when a program attempts to access or dereference a memory location that has a NULL (invalid) pointer value. This can lead to crashes or potentially allow an attacker to execute arbitrary code.

An attacker can exploit this vulnerability by sending a specially crafted IOCTL request to a vulnerable system, causing the smb2_ioctl_query_info() function to dereference a NULL pointer and potentially leading to a system crash or arbitrary code execution.

No, the impact and attack plausibility of this vulnerability have not been proven yet.

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