
Cloud Vulnerability DB
A community-led vulnerabilities database
A NULL pointer dereference vulnerability (CVE-2021-3739) was discovered in the btrfs_rm_device function in fs/btrfs/volumes.c of the Linux Kernel. The vulnerability was reported on August 6, 2021, and affects Linux Kernel versions prior to 5.14.20. The flaw specifically impacts the BTRFS file system functionality when attempting to remove a non-existent device (Kernel Commit, Ubuntu Security).
The vulnerability occurs in the btrfs_rm_device function when handling device removal operations. The bug is triggered when attempting to remove a non-existent volume device through the BTRFS_IOC_RM_DEV_V2 ioctl. The issue stems from a NULL pointer dereference that occurs when the function receives a devid with NULL as device_path. The CVSS score for this vulnerability is 7.1 (High), with the vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H (NetApp Advisory).
When successfully exploited, this vulnerability could allow a local attacker with CAP_SYS_ADMIN privileges to cause a denial of service (system crash) or potentially leak kernel internal information. The highest threat from this vulnerability is to system availability (CVE Mitre).
The vulnerability was fixed in Linux kernel version 5.14.20 and backported to various distribution kernels. The fix involves adding a check to ensure device_path is not NULL before calling strcmp() in the btrfs_rm_device function. Ubuntu has released patches for affected versions, including Ubuntu 21.04 (5.11.0-38.42) and Ubuntu 20.04 LTS (5.4.0-90.101) (Ubuntu Security).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."