btrfs: fix ulist leaks in error paths of qgroup self tests
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 442244c9633292a147ab2b29e7007a7c8a3909b2 · < f46ea5fa3320dca4fe0c0926b49a5f14cb85de62| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The btrfs qgroup self tests can leak an allocated list when certain operations fail and the test returns early. The input does not establish whether an attacker can trigger these error paths or specify any access or user-interaction requirements.
Engineers running Linux kernels with btrfs qgroup self tests should check their kernels; affected versions are not specified.