CVE-2021-47636
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a read out-of-bounds vulnerability was discovered in the ubifswbufwrite_nolock() function of the UBIFS filesystem. The vulnerability was identified and disclosed on February 26, 2025, affecting the Linux kernel's UBIFS implementation (NVD).

Technical details

The vulnerability occurs when ubifswbufwrite_nolock() function processes unaligned buffer lengths. When handling data that is not 8-byte aligned, the function may access memory beyond the allocated buffer boundaries. This happens specifically when the length parameter is not 8-byte aligned, leading to potential out-of-bounds read operations. The issue manifests when n > len, causing a read beyond the buffer's bounds by up to 8 bytes (n-len) (Kernel Git).

Impact

The vulnerability can lead to out-of-bounds memory reads, which was detected by the Kernel Address Sanitizer (KASAN). This could potentially result in information disclosure or system crashes. The issue was discovered during filesystem operations when writing to UBIFS storage (NVD).

Mitigation and workarounds

The issue has been fixed by modifying the ubifswbufwrite_nolock() function to properly handle unaligned buffer lengths. The fix includes adding proper bounds checking and implementing a new approach to handle the last write operation using a temporary buffer. The patch ensures that only the actual data length is read from the source buffer (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40205HIGH7.8
  • Linux KernelLinux Kernel
  • linux-gcp-5.4
NoYesNov 12, 2025
CVE-2025-40211HIGH7.1
  • Linux KernelLinux Kernel
  • linux-gcp-6.8
NoYesNov 21, 2025
CVE-2025-40206MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules-extra
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-rt-64k-modules
NoYesNov 21, 2025
CVE-2025-40212N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-6.14
NoYesNov 24, 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