CVE-2022-49912

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

No CVSS score yet EPSS 0.20%

Published 1 May 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-49912

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49912 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.8% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 442244c9633292a147ab2b29e7007a7c8a3909b2, before d81370396025cf63a7a1b5f8bb25a3479203b2ca
affected from 442244c9633292a147ab2b29e7007a7c8a3909b2, before 3f58283d83a588ff5da62fc150de19e798ed2ec2
affected from 442244c9633292a147ab2b29e7007a7c8a3909b2, before 203204798831c35d855ecc6417d98267d2d2184b
affected from 442244c9633292a147ab2b29e7007a7c8a3909b2, before 5d1a47ebf84540e40b5b43fc21aef0d6c0f627d9
affected from 442244c9633292a147ab2b29e7007a7c8a3909b2, before 0a0dead4ad1a2e2a9bdf133ef45111d7c8daef84
affected from 442244c9633292a147ab2b29e7007a7c8a3909b2, before f46ea5fa3320dca4fe0c0926b49a5f14cb85de62
affected from 442244c9633292a147ab2b29e7007a7c8a3909b2, before da7003434bcab0ae9aba3f2c003e734cae093326
affected from 442244c9633292a147ab2b29e7007a7c8a3909b2, before d37de92b38932d40e4a251e876cc388f9aee5f42
Other versions: unaffected
Linux
affected 4.2
unaffected before 4.2
unaffected from 4.9.333 up to and including 4.9.*
unaffected from 4.14.299 up to and including 4.14.*
unaffected from 4.19.265 up to and including 4.19.*
unaffected from 5.4.224 up to and including 5.4.*
unaffected from 5.10.154 up to and including 5.10.*
unaffected from 5.15.78 up to and including 5.15.*
unaffected from 6.0.8 up to and including 6.0.*
unaffected 6.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49912 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49912

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-49912
trivy image --scanners vuln IMAGE | grep CVE-2022-49912

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-49912 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.