Skip to content
Heist/ feed
Back to feed
CriticalFix available

md/raid10: reset read_slot when reusing r10bio for discard

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.212, 6.1.178, 6.12.97, 6.18.40, 6.6.145, 7.1.5
CVEs
CVE-2026-74376
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 19:45 UTC · Revision 1

Source evidence

md/raid10: reset read_slot when reusing r10bio for discard

core-osv · Original source

Published 15 Aug 2026, 05:58 UTC

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.

osv:CVE-2026-74376

Kernel

Fixed versions: 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5

Complete source record
{
  "id": "6194529724307ff38e8d28ef8cdd3464bc37caf3dcdda4264121809b1b230645",
  "url": "https://osv.dev/vulnerability/CVE-2026-74376",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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 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.",
    "evidence": "osv:CVE-2026-74376",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.212",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.178",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.145",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.97",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.40",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.1.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-74376",
      "aliases": [
        "CVE-2026-74376"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d30588b2731fb01e1616cf16c3fe79a1443e29aa"
                },
                {
                  "fixed": "3cb2a606ce4902eceabe68338df0653312f861f8"
                },
                {
                  "fixed": "561c9711e4f545d6464a023168bdee03b00fa945"
                },
                {
                  "fixed": "ce3030e92f14362880055de5fe3c258971118853"
                },
                {
                  "fixed": "742e4afd247d9c972695227716b03d432a7e1d26"
                },
                {
                  "fixed": "b7313f23ea5a79b199a007bfad64a866cc2c22e7"
                },
                {
                  "fixed": "eb04e3e9c14ed15914f5fd2eae8b6435f54f095f"
                },
                {
                  "fixed": "6b8a26af065ddc93de2aa5c9f0df98dce9723442"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74376.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.13.0"
                },
                {
                  "fixed": "5.15.212"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.178"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.145"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.97"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.40"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.1.5"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74376.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.752953179Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3cb2a606ce4902eceabe68338df0653312f861f8",
        "https://git.kernel.org/stable/c/561c9711e4f545d6464a023168bdee03b00fa945",
        "https://git.kernel.org/stable/c/6b8a26af065ddc93de2aa5c9f0df98dce9723442",
        "https://git.kernel.org/stable/c/742e4afd247d9c972695227716b03d432a7e1d26",
        "https://git.kernel.org/stable/c/b7313f23ea5a79b199a007bfad64a866cc2c22e7",
        "https://git.kernel.org/stable/c/ce3030e92f14362880055de5fe3c258971118853",
        "https://git.kernel.org/stable/c/eb04e3e9c14ed15914f5fd2eae8b6435f54f095f",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74376.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-74376",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74376.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-74376",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506315,
  "published_at": "2026-08-15T05:58:55.023+00:00"
}