{"id":"CVE-2026-74372","aliases":["CVE-2026-74372"],"related":[],"kind":"vulnerability","state":"published","title":"raid1: fix nr_pending leak in REQ_ATOMIC bad-block error path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nraid1: fix nr_pending leak in REQ_ATOMIC bad-block error path\n\nIn raid1_write_request(), each per-mirror loop iteration begins by\nincrementing rdev->nr_pending. If a REQ_ATOMIC write encounters a\nbadblock within the requested range, the code jumps to err_handle\nwithout dropping the reference taken for the current mirror.\n\nerr_handle's cleanup loop will only decrements for k < i and\nr1_bio->bios[k] is non-NULL. The current slot is therefore skipped,\nleaving its nr_pending reference leaked permanently. The reference\nprevents the rdev from ever being removed, since raid1_remove_conf()\nrefuses to remove an rdev with nr_pending > 0.\n\nFix this by calling rdev_dec_pending() before jumping to err_handle.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nraid1: fix nr_pending leak in REQ_ATOMIC bad-block error path\n\nIn raid1_write_request(), each per-mirror loop iteration begins by\nincrementing rdev->nr_pending. If a REQ_ATOMIC write encounters a\nbadblock within the requested range, the code jumps to err_handle\nwithout dropping the reference taken for the current mirror.\n\nerr_handle's cleanup loop will only decrements for k < i and\nr1_bio->bios[k] is non-NULL. The current slot is therefore skipped,\nleaving its nr_pending reference leaked permanently. The reference\nprevents the rdev from ever being removed, since raid1_remove_conf()\nrefuses to remove an rdev with nr_pending > 0.\n\nFix this by calling rdev_dec_pending() before jumping to err_handle.","source":"cvelist"}],"published":"2026-08-15T05:58:52.306Z","modified":"2026-08-17T06:19:32.023Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f2a38abf5f1c5aeb3be8e9f4d3d815c867fff7ca","fixed":"5ac9e793ba2583d72740d929e7858a6c82e22ed5","status":"affected"},{"type":"git","introduced":"f2a38abf5f1c5aeb3be8e9f4d3d815c867fff7ca","fixed":"731485617bf862f1289c3f40ed1f800d0475826f","status":"affected"},{"type":"git","introduced":"f2a38abf5f1c5aeb3be8e9f4d3d815c867fff7ca","fixed":"909d9dc3b5730c8ed7b764c68bc788342df2a07b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.18.40","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.5","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5ac9e793ba2583d72740d929e7858a6c82e22ed5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/731485617bf862f1289c3f40ed1f800d0475826f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/909d9dc3b5730c8ed7b764c68bc788342df2a07b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74372","url":"https://www.cve.org/CVERecord?id=CVE-2026-74372","licence":"CVE Terms of Use","modified":"2026-08-17T05:18:07.752Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74372","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74372","licence":"Public domain","modified":"2026-08-17T06:19:32.023Z"}],"updatedAt":"2026-11-25T22:59:33.186Z","epss":{"score":0.00166,"percentile":0.06137,"date":"2026-12-01T12:00:22.000Z"}}