CVE-2022-47940
CBL Mariner vulnerability analysis and mitigation

Overview

CVE-2022-47940 is a vulnerability discovered in the ksmbd component of the Linux kernel versions 5.15 through 5.18 before 5.18.18. The issue specifically relates to a lack of length validation in the non-padding case in smb2_write function within the fs/ksmbd/smb2pdu.c file (CVE).

Technical details

The vulnerability stems from improper length validation in the SMB2 Write packet handling. The SMB2 Write packet contains data that is to be written to a file or pipe, and depending on the client, there may be padding between the header and the data field. The issue arose because length validation was only performed when padding was present, leaving a security gap in the non-padding case (Linux Commit). The vulnerability has been assigned a CVSS v3.1 base score of 8.1 (HIGH) with vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H (NVD).

Impact

An authenticated attacker could exploit this vulnerability to cause a denial of service (system crash), expose sensitive information (kernel memory), or potentially execute arbitrary code (Ubuntu).

Mitigation and workarounds

The vulnerability has been fixed in Linux kernel version 5.18.18 and backported to affected stable versions. The fix involves validating the length in both padding and non-padding cases by removing the special case handling for padding (Linux Commit). Users should update their Linux kernel to a patched version.

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