In the Linux kernel, the following vulnerability has been resolved:
raid1: fix nrpending leak in REQATOMIC bad-block error path
In raid1writerequest(), each per-mirror loop iteration begins by incrementing rdev->nrpending. If a REQATOMIC write encounters a badblock within the requested range, the code jumps to err_handle without dropping the reference taken for the current mirror.
errhandle's cleanup loop will only decrements for k < i and r1bio->bios[k] is non-NULL. The current slot is therefore skipped, leaving its nrpending reference leaked permanently. The reference prevents the rdev from ever being removed, since raid1removeconf() refuses to remove an rdev with nrpending > 0.
Fix this by calling rdevdecpending() before jumping to err_handle.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74372.json",
"cna_assigner": "Linux"
}