CVE-2025-71159
Last modified
CVE-2025-71159 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: btrfs: fix use-after-free warning in btrfs_get_or_create_delayed_node() Previously, btrfs_get_or_create_delayed_node() set the delayed_node's refcount before acquiring the root->delayed_nodes lock. Commit e8513c012de7 ("btrfs: implement ref_tracker for delayed_nodes") moved refcount_set inside the critical section, which means there is no longer a memory barrier between setting the refcount and setting btrfs_inode->delayed_node. Without that barrier, the stores to node->refs and btrfs_inode->delayed_node may become visible out of order. Another thread can then read btrfs_inode->delayed_node and attempt to increment a refcount that hasn't been set yet, leading to a refcounting bug and a use-after-free warning. The fix is to move refcount_set back to where it was to take advantage of the implicit memory barrier provided by lock acquisition. Because the allocations now happen outside of the lock's critical section, they can use GFP_NOFS instead of GFP_ATOMIC.. EPSS estimates a 0.11% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix use-after-free warning in btrfs_get_or_create_delayed_node() Previously, btrfs_get_or_create_delayed_node() set the delayed_node's refcount before acquiring the root->delayed_nodes lock. Commit e8513c012de7 ("btrfs: implement ref_tracker for delayed_nodes") moved refcount_set inside the critical section, which means there is no longer a memory barrier between setting the refcount and setting btrfs_inode->delayed_node. Without that barrier, the stores to node->refs and btrfs_inode->delayed_node may become visible out of order. Another thread can then read btrfs_inode->delayed_node and attempt to increment a refcount that hasn't been set yet, leading to a refcounting bug and a use-after-free warning. The fix is to move refcount_set back to where it was to take advantage of the implicit memory barrier provided by lock acquisition. Because the allocations now happen outside of the lock's critical section, they can use GFP_NOFS instead of GFP_ATOMIC.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.18, < 6.18.6 | — |
| Linux | Linux Kernel | 6.19 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-71159?
How severe is CVE-2025-71159?
How do I fix CVE-2025-71159?
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 2025
- CVE-2025-71153In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-71154In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-71155In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-71156In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-71157In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-71158In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-7116A vulnerability classified as critical has been found in UTT…7.5
- CVE-2025-71160In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-71161In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-71162In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-71163In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-71164Typesetter CMS versions up to and including 5.1 contain a re…5.4
Are you affected by CVE-2025-71159?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
