---
id: CVE-2026-74376
title: 'md/raid10: reset read_slot when reusing r10bio for discard'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  md/raid10: reset read_slot when reusing r10bio for discard

  put_all_bios() always drops devs[i].bio, but it only drops
  devs[i].repl_bio when r10_bio->read_slot < 0. If …
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa <
    3cb2a606ce4902eceabe68338df0653312f861f8
  - >-
    Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa <
    561c9711e4f545d6464a023168bdee03b00fa945
  - >-
    Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa <
    ce3030e92f14362880055de5fe3c258971118853
  - >-
    Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa <
    742e4afd247d9c972695227716b03d432a7e1d26
  - >-
    Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa <
    b7313f23ea5a79b199a007bfad64a866cc2c22e7
  - >-
    Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa <
    eb04e3e9c14ed15914f5fd2eae8b6435f54f095f
  - >-
    Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa <
    6b8a26af065ddc93de2aa5c9f0df98dce9723442
  - Linux 5.13
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-10-16T18:54:45.646885Z'
published: '2026-08-15'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T18:55:36.173Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-74376'
references:
  - url: 'https://git.kernel.org/stable/c/3cb2a606ce4902eceabe68338df0653312f861f8'
  - url: 'https://git.kernel.org/stable/c/561c9711e4f545d6464a023168bdee03b00fa945'
  - url: 'https://git.kernel.org/stable/c/ce3030e92f14362880055de5fe3c258971118853'
  - url: 'https://git.kernel.org/stable/c/742e4afd247d9c972695227716b03d432a7e1d26'
  - url: 'https://git.kernel.org/stable/c/b7313f23ea5a79b199a007bfad64a866cc2c22e7'
  - url: 'https://git.kernel.org/stable/c/eb04e3e9c14ed15914f5fd2eae8b6435f54f095f'
  - url: 'https://git.kernel.org/stable/c/6b8a26af065ddc93de2aa5c9f0df98dce9723442'
tags:
  - cve.org
epss: 0.00738
epssPercentile: 0.53607
ingestedAt: '2026-10-16T19:46:24.372Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

md/raid10: reset read_slot when reusing r10bio for discard

put_all_bios() always drops devs[i].bio, but it only drops
devs[i].repl_bio when r10_bio->read_slot < 0. If discard reuses an
r10bio that was previously used for a read, read_slot can still be
non-negative, and discard cleanup can skip bio_put() on repl_bio.

Reset read_slot to -1 when preparing an r10bio for discard so the
replacement bio is always released correctly.

## Affected

- `Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa < 3cb2a606ce4902eceabe68338df0653312f861f8`
- `Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa < 561c9711e4f545d6464a023168bdee03b00fa945`
- `Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa < ce3030e92f14362880055de5fe3c258971118853`
- `Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa < 742e4afd247d9c972695227716b03d432a7e1d26`
- `Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa < b7313f23ea5a79b199a007bfad64a866cc2c22e7`
- `Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa < eb04e3e9c14ed15914f5fd2eae8b6435f54f095f`
- `Linux >= d30588b2731fb01e1616cf16c3fe79a1443e29aa < 6b8a26af065ddc93de2aa5c9f0df98dce9723442`
- `Linux 5.13`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
