CVE-2022-0168
Linux Kernel vulnerability analysis and mitigation

Overview

A denial of service (DOS) vulnerability (CVE-2022-0168) was discovered in the Linux kernel's smb2ioctlquery_info function within the Common Internet File System (CIFS) implementation. The vulnerability was found in the fs/cifs/smb2ops.c file and was disclosed in January 2022. The issue affects Linux kernel versions up to (excluding) 5.18 and various Linux distributions including Red Hat Enterprise Linux 8.0 and 9.0 (NVD, CVE).

Technical details

The vulnerability stems from an incorrect validation of the return value from the memdupuser function in the smb2ioctlqueryinfo function. When qi.outputbufferlength is set to zero, the memdupuser function returns 0x10, which is not a valid pointer but can pass the validation check. This invalid buffer is then passed to the SMB2setinfoinit function when qi.flags equals PASSTHRUSETINFO, leading to a NULL pointer dereference (Redhat Bugzilla). The vulnerability has been assigned a CVSS v3.1 base score of 4.4 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability allows a local privileged attacker (with CAPSYSADMIN capabilities) to cause a denial of service condition by crashing the system. The impact is limited to system availability, with no direct impact on confidentiality or integrity (NVD).

Mitigation and workarounds

The vulnerability has been fixed in the Linux kernel through commit d6f5e358452479fa8a773b5c6ccc9e4ec5a20880, which adds proper validation of the outputbufferlength parameter. The fix has been backported to various Linux distributions. For Red Hat Enterprise Linux, fixes are available through security updates RHSA-2022:7444, RHSA-2022:7683, RHSA-2022:7933, and RHSA-2022:8267 (Kernel Commit, Redhat Bugzilla).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management