CVE-2022-49913
Last modified
CVE-2022-49913 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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().. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
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().
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 4.14, < 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 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2022-49913?
How severe is CVE-2022-49913?
How do I fix CVE-2022-49913?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-49908In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49909Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2022-4991Tychon includes an OpenSSL component that specifies an OPENS…7.4
- CVE-2022-49910In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-49911In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49912In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49914In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49915In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49916In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49917In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-49918In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49919In the Linux kernel, the following vulnerability has been re…7
Are you affected by CVE-2022-49913?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
