CVE-2026-74372: raid1: fix nr_pending leak in REQ_ATOMIC bad-block error path
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-aws-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1014.14~24.04.1 - Upgrade
Upgrade
ubuntu/linux-azure-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17~24.04.1 - Upgrade
Upgrade
ubuntu/linux-azure-fde-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1016.16~24.04.1 - Upgrade
Upgrade
ubuntu/linux-gcp-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1014.14~24.04.1 - Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-38.38~24.04.4 - Upgrade
Upgrade
ubuntu/linux-nvidia-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1024.25~24.04.1 - Upgrade
Upgrade
ubuntu/linux-oracle-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1013.13~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-38.38.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-38.38 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1014.14 - Upgrade
Upgrade
ubuntu/linux-azureto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-azure-fdeto a version that resolves this vulnerability.Fixed in 7.0.0-1016.16 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1014.14 - Upgrade
Upgrade
ubuntu/linux-gketo a version that resolves this vulnerability.Fixed in 7.0.0-1008.9 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1015.15 - Upgrade
Upgrade
ubuntu/linux-nvidia-bosto a version that resolves this vulnerability.Fixed in 7.0.0-2022.23 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1015.15 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1013.13 - Upgrade
Upgrade
ubuntu/linux-realtimeto a version that resolves this vulnerability.Fixed in 7.0.0-38.38.1 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-38.38.1 - Compensating control
In the Linux kernel's raid1_write_request(), call rdev_dec_pending() before jumping to err_handle when a REQ_ATOMIC write encounters a bad block within the requested range.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-74372?
The severity of CVE-2026-74372 is rated at risk level 27.
How do I fix CVE-2026-74372?
To fix CVE-2026-74372, ensure that your Linux kernel is updated to the latest patched version that addresses this vulnerability.
What systems are affected by CVE-2026-74372?
CVE-2026-74372 affects systems running vulnerable versions of the Linux kernel that implement the raid1 functionality.
What type of vulnerability is CVE-2026-74372?
CVE-2026-74372 is a flaw associated with improper handling of bad-block errors in the raid1 subsystem of the Linux kernel.
Is CVE-2026-74372 related to data loss risks?
Yes, CVE-2026-74372 can potentially lead to data corruption or loss due to improper error handling in write operations.