Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Btrfs is a local filesystem; triggering the bug requires local user access to a mounted btrfs volume, so AV:L and PR:L; availability-only impact via kernel crash.
Primary rating from Vendor (Linux).
CVSS VectorVendor: Linux
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Lifecycle Timeline
5DescriptionCVE.org
In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix invalid pointer dereference in __btrfs_run_delayed_refs()
In the beginning of the loop, we try to obtain a locked delayed ref head, if 'locked_ref' is currently NULL, by calling btrfs_select_ref_head(), which can return an error pointer. If the error pointer is -EAGAIN we do a continue and go back to the beginning of the loop, which will not try again to call btrfs_select_ref_head() since 'locked_ref' is no longer NULL but it's ERR_PTR(-EAGAIN), and then we do:
spin_lock(&locked_ref->lock);
against a ERR_PTR(-EAGAIN) value, generating an invalid pointer dereference.
Fix this by ensuring that 'locked_ref' is set to NULL when btrfs_select_ref_head() returns ERR_PTR(-EAGAIN) and incrementing 'count' as well, to prevent infinite looping. We do this by doing a goto to the bottom of the loop that already sets 'locked_ref' to NULL and does a cond_resched(), with an increment to 'count' right before the goto. These measures were in place before the refactoring in commit 0110a4c43451 ("btrfs: refactor __btrfs_run_delayed_refs loop") but were unintentionally lost afterwards.
AnalysisAI
Invalid pointer dereference in the Linux kernel btrfs delayed reference processing loop (__btrfs_run_delayed_refs()) allows a local attacker with access to a btrfs-mounted volume to crash the kernel, causing a denial of service. The defect was introduced by a refactoring commit (0110a4c43451) that inadvertently removed safety guards which reset an internal pointer to NULL when btrfs_select_ref_head() returns ERR_PTR(-EAGAIN), causing a subsequent spin_lock() call on the error code value treated as a pointer address. …
Unlock full vulnerability intelligence
- Risk assessment & exploitation conditions
- Attack chain visualization
- Remediation with exact patch versions
- Threat intelligence from 22 sources
- Personal watchlist & email alerts
Free forever · No credit card required
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata
Vulnerability AssessmentAI
| Exploitation | Exploitation requires local access to an unpatched Linux kernel containing the regressed btrfs refactoring commit (0110a4c43451) with at least one btrfs-formatted volume mounted and accessible for filesystem operations. … Additional conditions and limiting factors are described in the full assessment. |
| Risk Assessment | The NVD-assigned CVSS 3.1 vector of AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H is almost certainly miscategorized for this vulnerability - btrfs is a local filesystem subsystem with no network-facing code path leading to this function. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in. |
| Exploit Scenario | Full exploit scenario with step-by-step reproduction available after sign-in. |
| Remediation | Update the Linux kernel to a patched stable release: 5.10.261+ for the 5.10.x branch, 5.15.212+ for 5.15.x, 6.1.178+ for 6.1.x, 6.6.145+ for 6.6.x, 6.12.97+ for 6.12.x, 6.18.40+ for 6.18.x, 7.1.5+ for 7.1.x, or 7.2-rc1+ for mainline. … Detailed patch versions, workarounds, and compensating controls in full report. |
Recommended ActionAI
Within 24 hours, inventory all systems running btrfs and classify by business criticality and local access controls. …
Sign in for detailed remediation steps and compensating controls.
Threat intelligence, references, and detailed analysis are available after sign-in.
Same technique Information Disclosure
View allVendor StatusVendor
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-59468
GHSA-frrx-chj7-rchf