CVE-2022-50130: staging: fbtft: core: set smem_len before fb_deferred_io_init call
In the Linux kernel, the following vulnerability has been resolved:
staging: fbtft: core: set smemlen before fbdeferredioinit call
The fbtftframebufferalloc() calls fbdeferredioinit() before initializing info->fix.smemlen. It is set to zero by the framebufferalloc() function. It will trigger a WARNON() at the start of fbdeferredioinit() and the function will not do anything.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.18.18 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.19.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.0.2-1 - Compensating control
In fbtft_framebuffer_alloc(), initialize info->fix.smem_len before calling fb_deferred_io_init().
Event History
Frequently Asked Questions
What configurations are affected?
The issue is in the Linux kernel staging fbtft framebuffer code, specifically the fbtft_framebuffer_alloc() path that initializes deferred I/O before setting info->fix.smem_len.
What happens on an affected system?
Because smem_len is still zero, fb_deferred_io_init() triggers its initial WARN_ON() check and does not perform deferred I/O initialization.
Is a fix available?
Yes. A patch is available that sets smem_len before calling fb_deferred_io_init().