CVE-2021-47634
Linux Kernel vulnerability analysis and mitigation

Overview

A race condition vulnerability was discovered in the Linux kernel's UBI (Unsorted Block Images) subsystem between ctrl_cdev_ioctl and ubi_cdev_ioctl functions. The vulnerability was reported by Hulk Robot and involves a use-after-free condition that could occur due to improper locking mechanisms. The issue affects the Linux kernel's UBI driver, which is used for flash memory management (NVD).

Technical details

The vulnerability stems from a race condition where two different locks (ubi_devices_mutex and ubi->device_mutex) can be held concurrently by ctrl_cdev_ioctl and ubi_cdev_ioctl functions. While ubi_detach operation is protected by reference counting, both uif_init and uif_close in ubi_attach may race with ubi_cdev_ioctl. The issue was triggered by making a device 'available' before it becomes accessible via sysfs, leading to potential use-after-free conditions. The vulnerability has been assigned a CVSS v3.1 Base Score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CISA-ADP).

Impact

The vulnerability could lead to use-after-free conditions, potentially resulting in system crashes, information leaks, or arbitrary code execution in the context of the kernel. The issue specifically affects the UBI subsystem's ability to safely manage flash memory devices and could compromise the system's stability and security (NVD).

Mitigation and workarounds

The vulnerability has been fixed by rolling back the problematic modification and removing ubi_get_device in vol_attribute_show and dev_attribute_show functions. The fix ensures that devices will not be deleted before all reference counting are released, using kernfs's built-in protection mechanisms. The patch has been merged into the Linux kernel (Kernel Patch).

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-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-gcp
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-modules-extra
NoYesJan 14, 2026

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