5.5

CVE-2022-49913: btrfs: fix inode list leak during backref walking at find_parent_nodes()

Analyzed
AliasesUBUNTU-CVE-2022-49913DEBIAN-CVE-2022-49913
Published 01-05-2025Last modified 11-05-2026

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.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.20%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 01-05-2025
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

9 links