CVE-2026-74372: raid1: fix nr_pending leak in REQ_ATOMIC bad-block error path

Published Aug 15, 2026
·
Updated

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 errhandle 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 errhandle.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In raid1_write_request() (raid1_write_request(), per-mirror loop), if a REQ_ATOMIC write encounters badblock within the requested range and the code jumps to err_handle, call rdev_dec_pending() for the current mirror slot before transferring control to err_handle. This prevents leaking the increment to rdev->nr_pending for the current mirror (nr_pending leak in REQ_ATOMIC bad-block error path).

    Linux kernel (raid1) call rdev_dec_pending() before jumping to err_handle in raid1_write_request() = add call in REQ_ATOMIC bad-block error path

Event History

Aug 15, 2026
CVE Published
via MITRE·05:58 AM
Data Sourced
via MITRE·05:58 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203