CVE-2022-49912: btrfs: fix ulist leaks in error paths of qgroup self tests

Published May 1, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

In the testnosharedqgroup() and testmultiplerefs() 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 "oldroots" ulist that was allocated by the previous calls to btrfsfindallroots(). Fix that by calling ulistfree() before returning.

Affected Software

11 affected components
Linux Linux kernel
Linux Linux kernel>=4.2<4.9.333
Linux Linux kernel>=4.10<4.14.299
Linux Linux kernel>=4.15<4.19.265
Linux Linux kernel>=4.20<5.4.224
Linux Linux kernel>=5.5<5.10.154
Linux Linux kernel>=5.11<5.15.78
Linux Linux kernel>=5.16<6.0.8
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
Linux Linux kernel=6.1-rc3

Event History

May 1, 2025
CVE Published
via MITRE·02:10 PM
Data Sourced
via MITRE·02:10 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49912?

CVE-2022-49912 has a medium severity rating that may lead to information leaks under specific conditions.

2

How do I fix CVE-2022-49912?

To fix CVE-2022-49912, update to the latest stable version of the Linux kernel that includes the relevant patches.

3

What software is affected by CVE-2022-49912?

CVE-2022-49912 affects the Linux kernel, specifically concerning the btrfs file system.

4

What are the potential impacts of CVE-2022-49912?

The potential impacts of CVE-2022-49912 include information leakage due to improper error handling in the btrfs qgroup tests.

5

When was CVE-2022-49912 reported?

CVE-2022-49912 was reported in 2022, as part of ongoing vulnerability assessments for the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203