staging: fbtft: core: set smem_len before fb_deferred_io_init call
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
staging: fbtft: core: set smem_len before fb_deferred_io_init call
The fbtft_framebuffer_alloc() calls fb_deferred_io_init() before initializing info->fix.smem_len. It is set to zero by the framebuffer_alloc() function. It will trigger a WARN_ON() at the start of fb_deferred_io_init() and the function will not do anything.
From the CVE record · Linux
The fbtft framebuffer allocation code calls fb_deferred_io_init() before setting the framebuffer memory length. This triggers a kernel warning and prevents deferred I/O initialization; the input does not specify an attacker path or access requirements.
Engineers running Linux kernels that include the fbtft driver should check their kernel version; affected versions are not specified.