ata: libata-core: Reject an invalid concurrent positioning ranges count
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d43efd1b5d976203e6f1ef26f67e8b1a7bc2751b, Kernel 01d7d321e6046f87ba270aeeffdc5260209bd91e, Kernel 4c1e8ccd8655ee8cf1bcb1b7dfee72c9fa941fd4 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: ata: libata-core: Reject an invalid concurrent positioning ranges count ata_dev_config_cpr() takes the number of range descriptors from buf[0] of the concurrent positioning ranges log (up to 255), which the device reports independently of the log size in the GPL directory. The count is then walked at a fixed 32-byte stride in two places with no bound: the log read here, and the INQUIRY VPD page B9h emitter, which writes one descriptor per range into the fixed 2048-byte ata_scsi_rbuf. A device reporting a count larger than its own log overflows the read buffer (up to 7704 bytes past a 512-byte slab), and a count above 62 overflows the response buffer on the emit side. Bound the count once, on probe, against both the log the device returned and the number of descriptors the VPD B9h response buffer can hold (ATA_DEV_MAX_CPR, derived from the rbuf size). Reject an out-of-range count with a warning; this keeps the emitter in bounds with no separate change there.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=fe22e1c2f705676a705d821301fc52eecc2fe055 <d43efd1b5d976203e6f1ef26f67e8b1a7bc2751b, >=fe22e1c2f705676a705d821301fc52eecc2fe055 <01d7d321e6046f87ba270aeeffdc5260209bd91e, >=fe22e1c2f705676a705d821301fc52eecc2fe055 <4c1e8ccd8655ee8cf1bcb1b7dfee72c9fa941fd4, >=fe22e1c2f705676a705d821301fc52eecc2fe055 <4cb4b4dd8853c4ab3057efe238b2c34277772176, >=fe22e1c2f705676a705d821301fc52eecc2fe055 <533a0b940f901c15e5cbbd4b5d66e871c209e8ce, >=fe22e1c2f705676a705d821301fc52eecc2fe055 <b1607f0ee5f5e53e0aa66f41794085b7cc98f5d1, =5.16 | d43efd1b5d976203e6f1ef26f67e8b1a7bc2751b, 01d7d321e6046f87ba270aeeffdc5260209bd91e, 4c1e8ccd8655ee8cf1bcb1b7dfee72c9fa941fd4, 4cb4b4dd8853c4ab3057efe238b2c34277772176, 533a0b940f901c15e5cbbd4b5d66e871c209e8ce, b1607f0ee5f5e53e0aa66f41794085b7cc98f5d1 |
| linux-kernel: Kernel | >=6.13.0 <6.18.42, >=6.19.0 <7.1.5, >=6.2.0 <6.6.148, >=6.7.0 <6.12.101, >=5.16.0 <6.1.184 | 6.18.42, 7.1.5, 6.6.148, 6.12.101, 6.1.184 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket