CVE-2026-139540: md/raid5: protect big_stripe_tree lookup with RCU
In the Linux kernel, the following vulnerability has been resolved:
md/raid5: protect bigstripetree lookup with RCU
bigstripetree is updated under treelock, and deleted radix-tree nodes are freed after an RCU grace period. r5cbigstripecached() used to run under an RCU read-side critical section, but that protection was removed together with unrelated rdev lookup protection.
The lookup can now be preempted while walking the tree, allowing a concurrent deletion and grace period to complete before the walk resumes. Protect the lookup locally with rcureadlock(). Only the presence of the entry is used after unlocking.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In md/raid5, protect the big_stripe_tree lookup in r5c_big_stripe_cached() with rcu_read_lock() while walking the tree and using the entry.
Event History
Frequently Asked Questions
What conditions are required for this issue to be triggered?
The affected code must perform a big_stripe_tree lookup while another execution context concurrently deletes radix-tree nodes. The lookup can be preempted during traversal, allowing the deletion and an RCU grace period to finish before it resumes.
What is the likely impact of a successful race?
The lookup may walk radix-tree nodes that have been deleted and freed, creating a use-after-free-style memory-safety condition. The provided information does not specify a resulting privilege level, crash behavior, or information disclosure outcome.
What does the fix change?
The fix wraps the big_stripe_tree lookup in a local rcu_read_lock() read-side critical section. This prevents deleted radix-tree nodes from being freed while the lookup is traversing the tree; only the entry's presence is used after the lock is released.