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 Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade kernel-debuginfoUpgrade python-perf-debuginfoUpgrade python-perfUpgrade bpftool-debuginfoUpgrade kernel-debuginfo-common-x86_64Upgrade kernelUpgrade kernel-headersUpgrade kernel-livepatch-5.15.79-51.138Upgrade perf-debuginfoUpgrade bpftoolUpgrade kernel-tools-develUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-livepatch-5.10.155-138.670Upgrade perfUpgrade kernel-develUpgrade kernel-toolsUpgrade kernel-tools-debuginfo | Jun 23, 2025 | May 1, 2025 |
| Debian | — | Upgrade linux | May 5, 2025 | May 1, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | May 1, 2025 |
| Ubuntu | — | Upgrade linux-ibm-5.4Upgrade linux-gcpUpgrade linuxUpgrade linux-xilinx-zynqmpUpgrade linux-gkeopUpgrade linux-intel-iotgUpgrade linux-raspi-5.4Upgrade linux-nvidiaUpgrade linux-fipsUpgrade linux-aws-fipsUpgrade linux-hwe-5.4Upgrade linux-gkeUpgrade linux-gcp-fipsUpgrade linux-oracle-5.4Upgrade linux-azure-5.15Upgrade linux-riscv-5.15Upgrade linux-gcp-5.4Upgrade linux-bluefieldUpgrade linux-aws-5.4Upgrade linux-oracle-5.15Upgrade linux-kvmUpgrade linux-aws-5.15Upgrade linux-azure-5.4Upgrade linux-gcp-5.15Upgrade linux-hwe-5.15Upgrade linux-azure-fipsUpgrade linux-raspiUpgrade linux-oracleUpgrade linux-azureUpgrade linux-lowlatencyUpgrade linux-awsUpgrade linux-iotUpgrade linux-azure-fdeUpgrade linux-lowlatency-hwe-5.15Upgrade linux-intel-iotg-5.15Upgrade linux-ibmUpgrade linux-realtime | May 6, 2025 | May 1, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | May 1, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub