fbdev: Fix invalid page access after closing deferred I/O devices
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.1.136.2In the Linux kernel, the following vulnerability has been resolved:
fbdev: Fix invalid page access after closing deferred I/O devices
When a fbdev with deferred I/O is once opened and closed, the dirty pages still remain queued in the pageref list, and eventually later those may be processed in the delayed work. This may lead to a corruption of pages, hitting an Oops.
This patch makes sure to cancel the delayed work and clean up the pageref list at closing the device for addressing the bug. A part of the cleanup code is factored out as a new helper function that is called from the common fb_release().
From the CVE record · Linux
The Linux kernel’s fbdev deferred I/O handling can leave dirty pages queued after a device is opened and closed. When delayed work later processes those pages, it may corrupt pages and cause a kernel Oops. Triggering this requires opening and closing a deferred I/O fbdev device; the input does not specify authentication requirements.
Engineers running Linux kernels with fbdev deferred I/O should check whether their kernel includes the fix; affected versions are not specified.