CVE-2022-47943
CBL Mariner vulnerability analysis and mitigation

Overview

An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5.19.2. There is an out-of-bounds read and OOPS for SMB2_WRITE, when there is a large length in the zero DataOffset case. The vulnerability is tracked as CVE-2022-47943 and has been assigned a CVSS v3.1 base score of 8.1 (HIGH) (NVD).

Technical details

The vulnerability exists within the handling of SMB2WRITE commands. The issue results from the lack of proper validation of user-supplied data, which can result in a read past the end of an allocated buffer. When checking the length of the data area of SMB2WRITE in smb2getdataarealen(), the minimum of DataOffset should be the size of SMB2 header plus the size of SMB2WRITE header. Out-of-bounds read memory can be written to a file if DataOffset is 0 and Length is too large in SMB2WRITE request of compound request (Kernel Commit).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information or Denial of Service (DoS). An attacker can leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of the kernel (ZDI Advisory, NetApp Advisory).

Mitigation and workarounds

Linux has issued an update to correct this vulnerability through a patch that prevents out-of-bounds read for SMB2WRITE. The fix involves proper validation of the DataOffset parameter and ensuring it's not less than the size of the SMB2WRITE header (Kernel Commit).

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-62689HIGH8.7
  • NixOSNixOS
  • libmicrohttpd-devel
NoYesNov 10, 2025
CVE-2025-59777HIGH8.7
  • NixOSNixOS
  • libmicrohttpd-doc
NoYesNov 10, 2025
CVE-2025-47913HIGH7.5
  • PackerPacker
  • container-tools:rhel8::buildah-tests
NoYesNov 13, 2025
CVE-2024-47866HIGH7.5
  • CBL MarinerCBL Mariner
  • ceph
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-rt-64k-modules
NoYesNov 21, 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