CVE-2021-3739
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

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