CVE-2022-49079
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2022-49079 affects the Linux kernel's btrfs filesystem component, specifically in the zoned device functionality. The vulnerability was discovered in the btrfscanactivatezone() function which could lead to a deadlock condition when the devicelist_mutex is already held (Kernel Git).

Technical details

The vulnerability occurs in the btrfscanactivatezone() function where a recursive locking scenario can happen. The function attempts to acquire devicelistmutex while it's already being held, leading to a deadlock. The issue manifests in the call chain: insertdevextents() -> insertdevextent() -> btrfsinsertemptyitem() -> btrfssearchslot() -> btrfscowblock() -> _btrfscowblock() -> btrfsalloctreeblock() -> btrfsreserveextent() -> findfreeextent() -> findfreeextentupdateloop() -> canallocatechunk() -> btrfscanactivate_zone() (Kernel Git).

Impact

The vulnerability can cause system deadlocks when operating on btrfs filesystems with zoned devices. This could potentially lead to system hangs and affect the availability of the system running the affected kernel version (Kernel Git).

Mitigation and workarounds

The issue was fixed by modifying the btrfscanactivatezone() function to use fsdevices->alloclist protected by the chunkmutex instead of using RCU on fsdevices->devicelist. The fix was implemented in the Linux kernel and backported to stable kernel versions 5.16 and later (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40289N/AN/A
  • Linux DebianLinux Debian
  • linux
NoYesDec 06, 2025
CVE-2025-40288N/AN/A
  • Linux DebianLinux Debian
  • linux
NoYesDec 06, 2025
CVE-2025-40287N/AN/A
  • Linux DebianLinux Debian
  • linux
NoYesDec 06, 2025
CVE-2025-40286N/AN/A
  • Linux DebianLinux Debian
  • linux
NoYesDec 06, 2025
CVE-2025-40285N/AN/A
  • Linux DebianLinux Debian
  • linux
NoYesDec 06, 2025

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