CVE-2022-47939: Linux Kernel ksmbd Use-After-Free 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. fs/ksmbd/smb2pdu.c has a use-after-free and OOPS for SMB2TREEDISCONNECT.

Other sources

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Linux Kernel. Authentication is not required to exploit this vulnerability, but only systems with ksmbd enabled are vulnerable. The specific flaw exists within the processing of SMB2TREEDISCONNECT commands. The issue results from the lack of validating the existence of an object prior to performing operations on the object. 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.61
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-47939?

CVE-2022-47939 has a high severity rating due to the potential for remote code execution by attackers.

2

How do I fix CVE-2022-47939?

To fix CVE-2022-47939, update your Linux kernel to version 5.19.2 or later.

3

Which Linux kernel versions are affected by CVE-2022-47939?

CVE-2022-47939 affects Linux kernel versions from 5.15 up to 5.19.1.

4

Can CVE-2022-47939 be exploited remotely?

Yes, CVE-2022-47939 can be exploited remotely, allowing attackers to execute arbitrary code.

5

What component of the Linux kernel is impacted by CVE-2022-47939?

CVE-2022-47939 impacts the ksmbd component of the Linux kernel.

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