md/raid10: reset read_slot when reusing r10bio for discard
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel eb04e3e9c14ed15914f5fd2eae8b6435f54f095f, Kernel 3cb2a606ce4902eceabe68338df0653312f861f8, Kernel 561c9711e4f545d6464a023168bdee03b00fa945 and 10 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=d30588b2731fb01e1616cf16c3fe79a1443e29aa <eb04e3e9c14ed15914f5fd2eae8b6435f54f095f, >=d30588b2731fb01e1616cf16c3fe79a1443e29aa <3cb2a606ce4902eceabe68338df0653312f861f8, >=d30588b2731fb01e1616cf16c3fe79a1443e29aa <561c9711e4f545d6464a023168bdee03b00fa945, >=d30588b2731fb01e1616cf16c3fe79a1443e29aa <6b8a26af065ddc93de2aa5c9f0df98dce9723442, >=d30588b2731fb01e1616cf16c3fe79a1443e29aa <742e4afd247d9c972695227716b03d432a7e1d26, >=d30588b2731fb01e1616cf16c3fe79a1443e29aa <b7313f23ea5a79b199a007bfad64a866cc2c22e7, >=d30588b2731fb01e1616cf16c3fe79a1443e29aa <ce3030e92f14362880055de5fe3c258971118853, =5.13 | eb04e3e9c14ed15914f5fd2eae8b6435f54f095f, 3cb2a606ce4902eceabe68338df0653312f861f8, 561c9711e4f545d6464a023168bdee03b00fa945, 6b8a26af065ddc93de2aa5c9f0df98dce9723442, 742e4afd247d9c972695227716b03d432a7e1d26, b7313f23ea5a79b199a007bfad64a866cc2c22e7, ce3030e92f14362880055de5fe3c258971118853 |
| linux-kernel: Kernel | >=5.16.0 <6.1.178, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=5.13.0 <5.15.212 | 6.1.178, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 5.15.212 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket