CVE-2022-49912

btrfs: fix ulist leaks in error paths of qgroup self tests

MEDIUM
5.5
CVSS Score
Published: May 1, 2025 at 02:10 PM UTC
Updated: June 17, 2026 at 05:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix ulist leaks in error paths of qgroup self tests In the test_no_shared_qgroup() and test_multiple_refs() qgroup self tests, if we fail to add the tree ref, remove the extent item or remove the extent ref, we are returning from the test function without freeing the "old_roots" ulist that was allocated by the previous calls to btrfs_find_all_roots(). Fix that by calling ulist_free() before returning.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.10 ≤ v < 4.14.2994.15 ≤ v < 4.19.2654.2 ≤ v < 4.14.2994.2 ≤ v < 4.19.2654.2 ≤ v < 4.9.3334.2 ≤ v < 5.10.1544.2 ≤ v < 5.15.784.2 ≤ v < 5.4.2244.2 ≤ v < 6.0.84.2 ≤ v < 6.14.20 ≤ v < 5.4.2245.11 ≤ v < 5.15.785.16 ≤ v < 6.0.85.5 ≤ v < 5.10.1544.2442244c9633292a147ab2b29e7007a7c8a3909b26.1 rc16.1 rc26.1 rc3
Vendor states this is fixed in 0a0dead4ad1a2e2a9bdf133ef45111d7c8daef84 (fixed)
Vendor states this is fixed in 203204798831c35d855ecc6417d98267d2d2184b (fixed)
Vendor states this is fixed in 3f58283d83a588ff5da62fc150de19e798ed2ec2 (fixed)
Vendor states this is fixed in 5d1a47ebf84540e40b5b43fc21aef0d6c0f627d9 (fixed)
Vendor states this is fixed in d37de92b38932d40e4a251e876cc388f9aee5f42 (fixed)
Vendor states this is fixed in d81370396025cf63a7a1b5f8bb25a3479203b2ca (fixed)
Vendor states this is fixed in da7003434bcab0ae9aba3f2c003e734cae093326 (fixed)
Vendor states this is fixed in f46ea5fa3320dca4fe0c0926b49a5f14cb85de62 (fixed)
Vendor states this is fixed in 4.14.299 (unaffected)
Vendor states this is fixed in 4.19.265 (unaffected)
Vendor states this is fixed in 4.2 (unaffected)
Vendor states this is fixed in 4.9.333 (unaffected)
Vendor states this is fixed in 5.10.154 (unaffected)
Vendor states this is fixed in 5.15.78 (unaffected)
Vendor states this is fixed in 5.4.224 (unaffected)
Vendor states this is fixed in 6.0.8 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0a0dead4ad1a2e2a9bdf133ef45111d7c8daef84
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/203204798831c35d855ecc6417d98267d2d2184b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3f58283d83a588ff5da62fc150de19e798ed2ec2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5d1a47ebf84540e40b5b43fc21aef0d6c0f627d9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d37de92b38932d40e4a251e876cc388f9aee5f42
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d81370396025cf63a7a1b5f8bb25a3479203b2ca
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/da7003434bcab0ae9aba3f2c003e734cae093326
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f46ea5fa3320dca4fe0c0926b49a5f14cb85de62

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card