All reports
Medium

kernel: md/raid10: fix writes_pending and barrier reference leaks on discard failures

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-72438

Probability of exploitation in the next 30 days: 0.50%

FIRST EPSS · 2026-11-21

Description

In the Linux kernel, the following vulnerability has been resolved: md/raid10: fix writes_pending and barrier reference leaks on discard failures raid10_make_request() acquires a writes_pending reference with md_write_start() before calling raid10_handle_discard(). Several failure paths in raid10_handle_discard() complete the bio and return without releasing the corresponding reference, causing md_write_end() to be skipped. Call md_write_end() before returning from these failure paths to keep writes_pending accounting balanced. Additionally, discard split allocation failures can occur after wait_barrier() succeeds. Those paths return without calling allow_barrier(), leaking the associated barrier reference. Release the barrier before returning from those paths.

A flaw was found in the Linux kernel's multiple device (MD) driver, specifically in the RAID10 implementation. This vulnerability occurs due to reference leaks in the writes_pending and barrier mechanisms during discard failures. An attacker could potentially exploit this by triggering discard failures, leading to resource exhaustion and a Denial of Service (DoS) on the affected system.