CVE-2026-143011: dm-raid: fix use-after-free in raid_dtr()
dm-raid: fix use-after-free in raiddtr()
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In dm-raid, flush event_work whenever it has been initialized, rather than only when work_pending() is true.
Event History
Frequently Asked Questions
What conditions are required for this use-after-free to occur?
The race requires dm-raid event_work to have been dequeued and be executing do_table_event() while raid_dtr() tears down the raid_set. In that state, work_pending() is already false even though the event handler can still access rs->ti->table.
Are systems affected when event_work was never initialized?
The fix guards the flush using the work item's .func field. This avoids flushing for mddev instances where INIT_WORK has not yet run.
What does the fix change to prevent the race?
The corrected behavior flushes event_work whenever it has been initialized, rather than only when work_pending() reports pending work. This prevents raid_set from being freed until a running event handler has completed.