← Vulnerability feed

Vulnerability record · CVE-2022-47939 · published 23 December 2022

CVE-2022-47939: Linux ksmbd SMB2_TREE_DISCONNECT use-after-free

Linux · Linux Kernel

The ksmbd SMB server in the Linux kernel (5.15 through 5.19 before 5.19.2) contains a use-after-free in fs/ksmbd/smb2pdu.c triggered by the SMB2_TREE_DISCONNECT command, leading to a kernel OOPS. Because ksmbd is a network-facing SMB server, a remote unauthenticated attacker can reach the flaw, making it a serious pre-auth kernel memory corruption issue.

9.8 CVSS 3.1 Critical EPSS 46% · top 1.2% CWE-416 · Use after free
9.8CVSS 3.1 base score
46%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
12References
17 Jun 2026Last modified by NVD

Description

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 SMB2_TREE_DISCONNECT.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: high.

critical priorityCVSS 9.8 with network reachability, no authentication or interaction required, and a high EPSS percentile make this a critical pre-auth kernel flaw despite no KEV listing.

What it is

The ksmbd SMB server in the Linux kernel (5.15 through 5.19 before 5.19.2) contains a use-after-free in fs/ksmbd/smb2pdu.c triggered by the SMB2_TREE_DISCONNECT command, leading to a kernel OOPS. Because ksmbd is a network-facing SMB server, a remote unauthenticated attacker can reach the flaw, making it a serious pre-auth kernel memory corruption issue.

Impact

An attacker can corrupt kernel memory and crash the system, and the use-after-free primitive may allow further kernel exploitation depending on memory layout control. The CVSS vector indicates high confidentiality, integrity and availability impact.

Attack surface

Reached over the network via SMB2 traffic to a host running ksmbd; the CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates no authentication and no user interaction are required. The flaw is in the SMB2_TREE_DISCONNECT handling path.

Exploitation

Not listed in CISA KEV and no ransomware usage documented, but EPSS is high (0.46428, ~98.8th percentile), indicating elevated likelihood of exploitation activity. References include patch commits and third-party advisories but no public exploit tag.

What to do

  • Upgrade the Linux kernel to 5.19.2 or later, which contains the fix commit cf6531d98190fa2cf92a6d8bbc8af0a4740a223c.
  • If ksmbd is not required, disable or do not load the ksmbd module to remove the attack surface.
  • Restrict SMB (TCP 445/139) exposure to trusted networks and block it at the perimeter where possible.
  • Apply vendor backports for distributions shipping kernels in the 5.15-5.19 range.
  • Monitor for kernel OOPS/panic events on SMB servers as an indicator of attempted or successful triggering.

Detection

  • Alert on kernel OOPS, panic or use-after-free reports referencing fs/ksmbd/smb2pdu.c or SMB2_TREE_DISCONNECT.
  • Monitor SMB2 TREE_DISCONNECT requests, especially unusual volumes or malformed sequences from unexpected sources.
  • Track ksmbd process crashes and unexpected host reboots on systems exposing SMB.
  • Review network logs for SMB connections from untrusted or anomalous external addresses.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-47939 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed8.8CVE-2026-53266Linux kernel ebtables SNAT out-of-bounds write in ARP rewriteThe ebtables SNAT target rewrites the ARP sender hardware address via skb_store_bits() without first making that range writable. When the ARP SHA byt…KEVEPSS 0.65%analysed8.8CVE-2023-3079Google Chrome V8 type confusion enables heap corruptionCVE-2023-3079 is a type confusion flaw in the V8 JavaScript engine in Google Chrome before 114.0.5735.110. A crafted HTML page can trigger the confus…KEVEPSS 32%analysed8.8CVE-2013-6282Linux kernel ARM get_user/put_user missing address validationThe get_user and put_user API functions in the Linux kernel before 3.5.5 on v6k and v7 ARM platforms fail to validate certain addresses, allowing cra…KEVEPSS 40%analysed8.4CVE-2022-0185Linux Kernel Filesystem Context Heap Buffer OverflowThe legacy_parse_param function in the Linux kernel's Filesystem Context functionality fails to properly verify supplied parameter lengths, causing a…KEVEPSS 25%analysed8.4CVE-2013-2094Linux Kernel perf_swevent_init Integer Type Flaw Enables Local Privilege EscalationThe perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9 uses an incorrect integer data type, allowing a local user to…KEVEPSS 48%analysed7.8CVE-2026-53362Linux kernel IPv6 UDP paged allocation out-of-bounds write__ip6_append_data() in the Linux kernel mis-accounts fraggap on the paged-allocation path, leaving the linear skb area undersized while pagedlen is o…KEVEPSS 0.71%analysed7.8CVE-2026-31431Linux kernel algif_aead in-place crypto operation flawThe Linux kernel's algif_aead AF_ALG AEAD interface operated in-place on buffers that come from different mappings, a flaw the fix resolves by revert…KEVEPSS 3.4%analysed

Source: NIST National Vulnerability Database (record CVE-2022-47939), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.