CVE-2026-99328: HID: picoLCD: check for fb_deferred_io_init() error
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
HID: picoLCD: check for fb_deferred_io_init() error
fb_deferred_io_init() allocates deferred I/O state, populating info->fbdefio_state, or leaving it NULL if an error occurs.
Currently picolcd_init_framebuffer() ignores its return value.
Therefore if an error arises in fb_deferred_io_init() (for instance, due to an allocation failure) info->fbdefio_state is left NULL.
When the file is subsequently opened, fb_open() will dereference a NULL pointer (calling fb_deferred_io_open()).
Fix this by checking for the error.
Also correct cleanup ordering - defio is initialised after the sysfs file, so cleanup defio first.
The Linux kernel CVE team has assigned CVE-2026-99328 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit 56c134f7f1b58be08bdb0ca8372474a4a5165f31 and fixed in 6.12.117 with commit 28be73031ae5397a0592fa6308051f743fb428f7 Issue introduced in 5.19 with commit 56c134f7f1b58be08bdb0ca8372474a4a5165f31 and fixed in 6.18.61 with commit 14acfdfca5151537b623243a6c0e66a2e6fca7de Issue introduced in 5.19 with commit 56c134f7f1b58be08bdb0ca8372474a4a5165f31 and fixed in 7.3.2 with commit ebe54f9e793bf05c7bd82110fdab24f10b89eac3 Issue introduced in 5.19 with commit 56c134f7f1b58be08bdb0ca8372474a4a5165f31 and fixed in 7.4-rc1 with commit feade898fc958ff355101adf12d5632272e64220 Issue introduced in 5.15.149 with commit 186b89659c4c67cccead52961eab0ca3b23951dc
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99328
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/hid/hid-picolcd_fb.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/28be73031ae5397a0592fa6308051f743fb428f7 https://git.kernel.org/stable/c/14acfdfca5151537b623243a6c0e66a2e6fca7de https://git.kernel.org/stable/c/ebe54f9e793bf05c7bd82110fdab24f10b89eac3 https://git.kernel.org/stable/c/feade898fc958ff355101adf12d5632272e64220