CVE-2022-47939: Linux Kernel ksmbd Use-After-Free 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. 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

8 affected componentsFixes available
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
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 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·12:00 AM
DescriptionSeverity
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 3, 2026
Data Sourced
via OSV·08:04 AM
Affected Software

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