md/raid10: reset read_slot when reusing r10bio for discard

Summary

CVECVE-2026-74376
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-08-15 06:22:39 UTC
Updated2026-08-15 06:22:39 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected d30588b2731fb01e1616cf16c3fe79a1443e29aa 3cb2a606ce4902eceabe68338df0653312f861f8 git Not specified
CNA Linux Linux affected d30588b2731fb01e1616cf16c3fe79a1443e29aa 561c9711e4f545d6464a023168bdee03b00fa945 git Not specified
CNA Linux Linux affected d30588b2731fb01e1616cf16c3fe79a1443e29aa ce3030e92f14362880055de5fe3c258971118853 git Not specified
CNA Linux Linux affected d30588b2731fb01e1616cf16c3fe79a1443e29aa 742e4afd247d9c972695227716b03d432a7e1d26 git Not specified
CNA Linux Linux affected d30588b2731fb01e1616cf16c3fe79a1443e29aa b7313f23ea5a79b199a007bfad64a866cc2c22e7 git Not specified
CNA Linux Linux affected d30588b2731fb01e1616cf16c3fe79a1443e29aa eb04e3e9c14ed15914f5fd2eae8b6435f54f095f git Not specified
CNA Linux Linux affected d30588b2731fb01e1616cf16c3fe79a1443e29aa 6b8a26af065ddc93de2aa5c9f0df98dce9723442 git Not specified
CNA Linux Linux affected 5.13 Not specified
CNA Linux Linux unaffected 5.13 semver Not specified
CNA Linux Linux unaffected 5.15.212 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.178 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.145 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.97 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.40 6.18.* semver Not specified
CNA Linux Linux unaffected 7.1.5 7.1.* semver Not specified
CNA Linux Linux unaffected 7.2-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/b7313f23ea5a79b199a007bfad64a866cc2c22e7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/eb04e3e9c14ed15914f5fd2eae8b6435f54f095f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3cb2a606ce4902eceabe68338df0653312f861f8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/742e4afd247d9c972695227716b03d432a7e1d26 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/561c9711e4f545d6464a023168bdee03b00fa945 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ce3030e92f14362880055de5fe3c258971118853 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/6b8a26af065ddc93de2aa5c9f0df98dce9723442 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report