CVE-2025-21658
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21658 is a NULL pointer dereference vulnerability discovered in the Linux kernel's BTRFS filesystem implementation. The vulnerability was disclosed on January 21, 2025, affecting Linux kernel versions from 5.11 up to versions before 6.6.72, 6.7 through 6.12.10, and various release candidates of version 6.13 (NVD).

Technical details

The vulnerability occurs in the BTRFS filesystem when attempting to perform a scrub operation on a corrupted filesystem where the extent tree root is invalid. The issue manifests in the scrubfindfillfirststripe() function, which fails to properly handle NULL extent roots, leading to a NULL pointer dereference. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability can cause a kernel crash through a NULL pointer dereference, resulting in a denial of service condition. The issue specifically affects systems using the BTRFS filesystem with corrupted extent trees, particularly when mounted with the 'rescue=all,ro' option (Kernel Patch).

Mitigation and workarounds

The vulnerability has been patched by adding an extra validation check for a valid extent root at the beginning of the scrubfindfillfirststripe() function. The fix has been implemented in Linux kernel version 6.6.72 and later versions. For kernels older than 6.6, the fix requires manual backporting (Kernel Patch).

Additional resources


SourceThis report was generated using AI

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