CVE-2022-0168: Null Pointer Dereference

Published Jan 5, 2022
·
Updated

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

8 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-425.3.1.rt7.213.el8
0:4.18.0-425.3.1.rt7.213.el8
redhat/kernel<0:4.18.0-425.3.1.el8
0:4.18.0-425.3.1.el8
redhat/kernel<0:5.14.0-162.6.1.el9_1
0:5.14.0-162.6.1.el9_1
redhat/kernel-rt<0:5.14.0-162.6.1.rt21.168.el9_1
0:5.14.0-162.6.1.rt21.168.el9_1
Linux Linux kernel<5.18
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.12-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-425.3.1.rt7.213.el8
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-425.3.1.el8
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:5.14.0-162.6.1.el9_1
  4. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:5.14.0-162.6.1.rt21.168.el9_1
  5. Upgrade

    Upgrade debian/linux to 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

Jan 5, 2022
Data Sourced
via Red Hat·02:20 PM
DescriptionSeverityAffected Software
Mar 9, 2022
CVE Published
03:00 PM
Aug 26, 2022
CVE Published
via MITRE·05:25 PM
Data Sourced
via MITRE·05:25 PM
DescriptionWeakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203