scsi: target: file: Use kzalloc_flex for aio_cmd
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ce54802fe6bb78eb0feffc66fed6a45d41ffc3ab, Kernel 6.19.12, Kernel 4eaff1728d0e69b95933412241bbccf4f797dba8 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: scsi: target: file: Use kzalloc_flex for aio_cmd The target_core_file doesn't initialize the aio_cmd->iocb for the ki_write_stream. When a write command fd_execute_rw_aio() is executed, we may get a bogus ki_write_stream value, causing unintended write failure status when checking iocb->ki_write_stream > max_write_streams in the block device. Let's just use kzalloc_flex when allocating the aio_cmd and let ki_write_stream=0 to fix this issue.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=732f25a2895a8c1c54fb56544f0b1e23770ef4d7 <ce54802fe6bb78eb0feffc66fed6a45d41ffc3ab, >=6.19 <6.19.12, =7.0, >=732f25a2895a8c1c54fb56544f0b1e23770ef4d7 <4eaff1728d0e69b95933412241bbccf4f797dba8, >=6.16 <6.18.22, =6.16, >=732f25a2895a8c1c54fb56544f0b1e23770ef4d7 <01f784fc9d0ab2a6dac45ee443620e517cb2a19b | ce54802fe6bb78eb0feffc66fed6a45d41ffc3ab, 6.19.12, 4eaff1728d0e69b95933412241bbccf4f797dba8, 6.18.22, 01f784fc9d0ab2a6dac45ee443620e517cb2a19b |
| linux-kernel: Kernel | >=6.16.0 <6.18.22, >=6.19.0 <6.19.12 | 6.18.22, 6.19.12 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket