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

Published Dec 23, 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

4 affected components
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

Event History

Dec 23, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 26, 2025
Advisory Published
via ZDI·03:45 PM

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