Menu

Star on GitHub · 3.2k

CVE-2021-47634

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: ubi: Fix race condition between ctrl_cdev_ioctl and ubi_cdev_ioctl Hulk Robot reported a KASAN report about use-after-free: ==…

Published Feb 26, 2025CWE-416EPSS 0.29%

Overview

CVE-2021-47634 is a high-severity vulnerability. It was published on February 26, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

ubi: Fix race condition between ctrl_cdev_ioctl and ubi_cdev_ioctl

Hulk Robot reported a KASAN report about use-after-free:

==================================================================

BUG: KASAN: use-after-free in __list_del_entry_valid+0x13d/0x160

Read of size 8 at addr ffff888035e37d98 by task ubiattach/1385

[...]

Call Trace:

klist_dec_and_del+0xa7/0x4a0

klist_put+0xc7/0x1a0

device_del+0x4d4/0xed0

cdev_device_del+0x1a/0x80

ubi_attach_mtd_dev+0x2951/0x34b0 [ubi]

ctrl_cdev_ioctl+0x286/0x2f0 [ubi]

Allocated by task 1414:

device_add+0x60a/0x18b0

cdev_device_add+0x103/0x170

ubi_create_volume+0x1118/0x1a10 [ubi]

ubi_cdev_ioctl+0xb7f/0x1ba0 [ubi]

Freed by task 1385:

cdev_device_del+0x1a/0x80

ubi_remove_volume+0x438/0x6c0 [ubi]

ubi_cdev_ioctl+0xbf4/0x1ba0 [ubi]

[...]

==================================================================

The lock held by ctrl_cdev_ioctl is ubi_device

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2021-47634?

CVE-2021-47634 is a high-severity vulnerability. It was published on February 26, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2021-47634?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-47634?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-47634?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47634 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2021

View all