CVE-2022-47942: Linux Kernel ksmbd Heap-based Buffer Overflow Remote Code Execution Vulnerability

Published Dec 22, 2022
·
Updated

An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5.19.2. There is a heap-based buffer overflow in setntacldacl, related to use of SMB2QUERYINFOHE after a malformed SMB2SETINFOHE command.

Other sources

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Linux Kernel. Authentication is required to exploit this vulnerability. The specific flaw exists within the handling of file attributes. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the kernel.

Affected Software

8 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=5.15<5.15.62
Linux Linux kernel>=5.16<5.18.18
Linux Linux kernel>=5.19<5.19.2
debian/linux<5.19.6-1
5.19.6-1
debian/linux<5.19.6-1
5.19.6-1
debian/linux<5.19.6-1
5.19.6-1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. 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.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.19.6-1
  3. Upgrade

    Upgrade Linux kernel ksmbd to a version that resolves this vulnerability.

    Fixed in 5.19.2

Event History

Dec 22, 2022
Advisory Published
via ZDI·12:00 AM
Data Sourced
via ZDI·12:00 AM
DescriptionSeverityAffected Software
Dec 23, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-47942?

CVE-2022-47942 is classified as a high severity vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2022-47942?

To mitigate CVE-2022-47942, update the Linux kernel to version 5.19.2 or later.

3

What versions of the Linux kernel are affected by CVE-2022-47942?

CVE-2022-47942 affects Linux kernel versions 5.15 through 5.19 before 5.19.2.

4

Is CVE-2022-47942 a remote attack vulnerability?

Yes, CVE-2022-47942 allows remote attackers to exploit a heap-based buffer overflow.

5

What components are involved in CVE-2022-47942?

CVE-2022-47942 involves the ksmbd component of the Linux kernel with SMB2_QUERY_INFO_HE operations.

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