auxdisplay: charlcd: cancel backlight work on registration failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 39f8ea46724efbed3ca021863a22337c31be264c · < ff2fb3c1e60cb247ea3e28c0ea0bea81c18f7755| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
auxdisplay: charlcd: cancel backlight work on registration failure
With CONFIG_CHARLCD_BL_FLASH, charlcd_init() schedules bl_work before charlcd_register() calls misc_register(). If registration fails, the caller frees the charlcd object while delayed work still contains its address.
Add charlcd_deinit() to cancel the delayed work and turn the backlight off. Use it for both registration rollback and normal unregistration.
From the CVE record · Linux
With CONFIG_CHARLCD_BL_FLASH enabled, charlcd_init() schedules delayed backlight work before charlcd registration completes. If registration fails, the charlcd object can be freed while the delayed work still holds its address, creating a use-after-free risk. The input does not specify an attack path, authentication requirements, or user interaction.
Engineers running Linux kernels with CONFIG_CHARLCD_BL_FLASH enabled should check their kernel; affected versions are not specified.