md/raid10: reset read_slot when reusing r10bio for discard (Linux Linux)

CVE-2026-74376
CRITICAL 9.8

At a glance

Source
NVD
EPSS
EPSS 0.50 % · percentile 43 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected d30588b2731fb01e1616cf16c3fe79a1443e29aa < 3cb2a606ce4902eceabe68338df0653312f861f8 ; affected d30588b2731fb01e1616cf16c3fe79a1443e29aa < 561c9711e4f545d6464a023168bdee03b00fa945 ; affected d30588b2731fb01e1616cf16c3fe79a1443e29aa < ce3030e92f14362880055de5fe3c258971118853 ; affected d30588b2731fb01e1616cf16c3fe79a1443e29aa < 742e4afd247d9c972695227716b03d432a7e1d26 ; affected d30588b2731fb01e1616cf16c3fe79a1443e29aa < b7313f23ea5a79b199a007bfad64a866cc2c22e7 ; affected d30588b2731fb01e1616cf16c3fe79a1443e29aa < eb04e3e9c14ed15914f5fd2eae8b6435f54f095f
Linux · Linuxaffected 5.13 ; unaffected 0 < 5.13 ; unaffected 5.15.212 ≤ 5.15.* ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.* ; unaffected 6.12.97 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD