Description
In the Linux kernel, the following vulnerability has been resolved: fbdev: atmel_lcdfb: Prevent FIFO work after removal The LCD controller IRQ schedules sinfo->task to recover from a FIFO underflow. Probe currently requests the IRQ before initializing the work, so an early interrupt can schedule an uninitialized work item. The probe error path and remove path cancel the work before freeing the IRQ. A FIFO-underflow interrupt can schedule the work again after that cancellation. framebuffer_release() may then free sinfo while the work is still pending. KASAN reported a use-after-free in atmel_lcdfb_task() when an underflow interrupt occurred during removal. With the IRQ freed before the work was cancelled, the same test completed without a kernel diagnostic. Initialize the work before requesting the IRQ. In both cleanup paths, free the IRQ before cancelling the work so that it cannot be scheduled again after cancellation.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
d22579b837358cbef12ccca5adaf7e93ae09ab7a to < 0c782a29f66eab8f2f9ce2b4325cfb5b9f01f8ffaffectedd22579b837358cbef12ccca5adaf7e93ae09ab7a to < 3b0be34d9d1e7add0c9b99b0b4b969ca56d81066affectedd22579b837358cbef12ccca5adaf7e93ae09ab7a to < f099d5adad31609a6de64aea12a8609734570b00affectedd22579b837358cbef12ccca5adaf7e93ae09ab7a to < 20b3b97cf89cb381bf07516090d99399cc9b91fdaffected
Linux Linux
Default version status: affected
2.6.27affected0 to < 2.6.27unaffected6.12.117 to ≤ 6.12.*unaffected6.18.61 to ≤ 6.18.*unaffected7.3.2 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected