Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: md/raid1,raid10: fix bio accounting for split md cloned bios Use md_cloned_bio() to control bio accounting instead of relying on r1bio_existed in raid1 or the io_accounting flag in raid10. The previous logic does not reliably reflect whether a bio is an md cloned bio. When a failed bio is split and resubmitted via bio_submit_split_bioset() on the error path, this can lead to either double accounting for md cloned bios, or missing accounting for bios returned from bio_submit_split_bioset() Fix this by using md_cloned_bio() to detect md cloned bios and skip accounting accordingly.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected bb2a9acefaf9ce5bbc1e70f407e34599233d0243 before 91d0fc000d8cc40fcb4285e6160dd1ce98c56201; affected bb2a9acefaf9ce5bbc1e70f407e34599233d0243 before 235d16ae715104b981a4fbc9434398e3816773b1; affected bb2a9acefaf9ce5bbc1e70f407e34599233d0243 before bcf30e14d2bd509c57e93021b46aedc878896e7b; affected bb2a9acefaf9ce5bbc1e70f407e34599233d0243 before bb8d7ea74206b419aa05d7773a15a923b668c9f0; affected bb2a9acefaf9ce5bbc1e70f407e34599233d0243 before ba976e3501111d11c550848b3b7341a73035f582 |
| Linux / Linux | affected 6.6; unaffected 0 before 6.6; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.57 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/91d0fc000d8cc40fcb4285e6160dd1ce98c56201
- https://git.kernel.org/stable/c/235d16ae715104b981a4fbc9434398e3816773b1
- https://git.kernel.org/stable/c/bcf30e14d2bd509c57e93021b46aedc878896e7b
- https://git.kernel.org/stable/c/bb8d7ea74206b419aa05d7773a15a923b668c9f0
- https://git.kernel.org/stable/c/ba976e3501111d11c550848b3b7341a73035f582