CVE-2022-47939
CBL Mariner vulnerability analysis and mitigation

Overview

A critical use-after-free vulnerability (CVE-2022-47939) was discovered in the ksmbd module of the Linux kernel versions 5.15 through 5.19 before 5.19.2. The vulnerability exists in fs/ksmbd/smb2pdu.c during the processing of SMB2TREEDISCONNECT commands (ZDI Advisory, NVD). The vulnerability was discovered on July 26, 2022, and publicly disclosed on December 22, 2022 (SecPod Blog).

Technical details

The vulnerability stems from a failure to validate the existence of an object before performing operations on it in the SMB2TREEDISCONNECT command processing. When smb2treedisconnect() freed the struct ksmbdtreeconnect, it left a dangling pointer that could be accessed again under compound requests. This resulted in a use-after-free condition that could lead to system crashes or potential code execution (Kernel Commit). The vulnerability has been assigned a CVSS score of 9.8 CRITICAL with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code in the context of the kernel without requiring authentication. However, only systems with the ksmbd module enabled are vulnerable. The ksmbd module was introduced in Linux 5.15 and is not enabled by default on most operating systems, which limits the potential impact (SecPod Blog).

Mitigation and workarounds

The vulnerability has been fixed in Linux kernel version 5.15.61 and later versions. Users are advised to update their systems to these patched versions. For systems that cannot be immediately updated, disabling the ksmbd module (if enabled) would prevent exploitation (SecPod Blog).

Additional resources


SourceThis report was generated using AI

Related CBL Mariner vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66031HIGH8.7
  • JavaScriptJavaScript
  • reaper
NoYesNov 26, 2025
CVE-2025-12638HIGH8
  • CBL MarinerCBL Mariner
  • keras
NoYesNov 28, 2025
CVE-2025-13601HIGH7.7
  • CBL MarinerCBL Mariner
  • mingw32-glib2
NoYesNov 26, 2025
CVE-2025-66293HIGH7.1
  • OpenJDK JDKOpenJDK JDK
  • java-25-openjdk-javadoc
NoYesDec 03, 2025
CVE-2025-66030MEDIUM6.3
  • JavaScriptJavaScript
  • node-node-forge
NoYesNov 26, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management