CVE-2022-0168: Null Pointer Dereference
A denial of service (DOS) issue was found in the Linux kernel’s smb2ioctlqueryinfo function in the fs/cifs/smb2ops.c Common Internet File System (CIFS) due to an incorrect return from the memdupuser function. This flaw allows a local, privileged (CAPSYSADMIN) attacker to crash the system.
Other sources
In Function smb2ioctlqueryinfo, it incorrectly verify the return from the memdupuser function. qi.outputbufferlength is grab from copyfromuser which is user control value. If qi.outputbufferlength is equal to zero, the memdupuser function returns 0x10 which is not a valid ptr but can pass the check. Later this evil buffer is pass to function SMB2setinfoinit if qi.flags is equal to PASSTHRUSETINFO. In function SMB2setinfoinit, there is a straight memcpy which data is previous evil buffer and size is 8.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:4.18.0-425.3.1.rt7.213.el8 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:4.18.0-425.3.1.el8 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:5.14.0-162.6.1.el9_1 - Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:5.14.0-162.6.1.rt21.168.el9_1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2022-0168?
CVE-2022-0168 is a high severity vulnerability that allows local, privileged attackers to cause a denial of service in the Linux kernel.
How do I fix CVE-2022-0168?
To fix CVE-2022-0168, update to the patched kernel versions provided by Red Hat or Debian as specified in the security advisories.
Who is affected by CVE-2022-0168?
CVE-2022-0168 affects users of certain versions of the Linux kernel, specifically on Red Hat Enterprise Linux and Debian systems.
What type of vulnerability is CVE-2022-0168?
CVE-2022-0168 is a denial of service vulnerability that results from improper handling in the smb2_ioctl_query_info function.
Can CVE-2022-0168 be exploited remotely?
No, CVE-2022-0168 can only be exploited locally by a privileged user with CAP_SYS_ADMIN capabilities.