First published: Wed May 01 2024(Updated: )
In the Linux kernel, the following vulnerability has been resolved: crypto: qat - resolve race condition during AER recovery During the PCI AER system's error recovery process, the kernel driver may encounter a race condition with freeing the reset_data structure's memory. If the device restart will take more than 10 seconds the function scheduling that restart will exit due to a timeout, and the reset_data structure will be freed. However, this data structure is used for completion notification after the restart is completed, which leads to a UAF bug. This results in a KFENCE bug notice. BUG: KFENCE: use-after-free read in adf_device_reset_worker+0x38/0xa0 [intel_qat] Use-after-free read at 0x00000000bc56fddf (in kfence-#142): adf_device_reset_worker+0x38/0xa0 [intel_qat] process_one_work+0x173/0x340 To resolve this race condition, the memory associated to the container of the work_struct is freed on the worker if the timeout expired, otherwise on the function that schedules the worker. The timeout detection can be done by checking if the caller is still waiting for completion or not by using completion_done() function.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/kernel | <4.19.312 | 4.19.312 |
redhat/kernel | <5.4.274 | 5.4.274 |
redhat/kernel | <5.10.215 | 5.10.215 |
redhat/kernel | <5.15.154 | 5.15.154 |
redhat/kernel | <6.1.84 | 6.1.84 |
redhat/kernel | <6.6.24 | 6.6.24 |
redhat/kernel | <6.7.12 | 6.7.12 |
redhat/kernel | <6.8.3 | 6.8.3 |
redhat/kernel | <6.9 | 6.9 |
Linux Linux kernel | >=3.17<4.19.312 | |
Linux Linux kernel | >=4.20<5.4.274 | |
Linux Linux kernel | >=5.5<5.10.215 | |
Linux Linux kernel | >=5.11<5.15.154 | |
Linux Linux kernel | >=5.16<6.1.84 | |
Linux Linux kernel | >=6.2<6.6.24 | |
Linux Linux kernel | >=6.7<6.7.12 | |
Linux Linux kernel | >=6.8<6.8.3 | |
Debian Debian Linux | =10.0 | |
debian/linux | 5.10.223-1 5.10.226-1 6.1.115-1 6.1.119-1 6.12.5-1 6.12.6-1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.