CVE-2022-49913: btrfs: fix inode list leak during backref walking at find_parent_nodes()
Vulnerability summary
CVE-2022-49913 is a medium (CVSS 5.5) vulnerability in linux. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 10.1% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 01-05-2025PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix inode list leak during backref walking at find_parent_nodes() During backref walking, at find_parent_nodes(), if we are dealing with a data extent and we get an error while resolving the indirect backrefs, at resolve_indirect_refs(), or in the while loop that iterates over the refs in the direct refs rbtree, we end up leaking the inode lists attached to the direct refs we have in the direct refs rbtree that were not yet added to the refs ulist passed as argument to find_parent_nodes(). Since they were not yet added to the refs ulist and prelim_release() does not free the lists, on error the caller can only free the lists attached to the refs that were added to the refs ulist, all the remaining refs get their inode lists never freed, therefore leaking their memory. Fix this by having prelim_release() always free any attached inode list to each ref found in the rbtree, and have find_parent_nodes() set the ref's inode list to NULL once it transfers ownership of the inode list to a ref added to the refs ulist passed to find_parent_nodes().
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.20%
Chance of exploitation in the next 30 days
Percentile
10%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.20% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu111 products
- linuxAll versions (No fix recorded) | < 5.4.0-139.156 | < 5.15.0-60.66
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.4.0-1096.104 | < 5.15.0-1030.34
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 86d5f994425252d8a40e2184c94a2682ae8ecfbf, < 6a6731a0df8c47ecc703bd7bb73459df767051e0 | ≥ 86d5f994425252d8a40e2184c94a2682ae8ecfbf, < 61e06128113711df0534c404fb6bb528eb7d2332 | ≥ 86d5f994425252d8a40e2184c94a2682ae8ecfbf, < 222a3d533027b9492d5b7f5ecdc01a90f57bb5a9 | ≥ 86d5f994425252d8a40e2184c94a2682ae8ecfbf, < 83ea8c5b54d452a5769e605e3c5c687e8ca06d89 | ≥ 86d5f994425252d8a40e2184c94a2682ae8ecfbf, < 92876eec382a0f19f33d09d2c939e9ca49038ae5 | 4.14
- linux_kernel≥ 4.14, < 5.4.224 | ≥ 5.5, < 5.10.154 | ≥ 5.11, < 5.15.78 | ≥ 5.16, < 6.0.8 | 6.1:rc1 | 6.1:rc2 | 6.1:rc3
Debian1 product
- linux< 6.0.8-1
3 vendors · 114 products