fbdev: imxfb: Check fb_add_videomode to prevent null-ptr-deref
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c · < 40f0a51f6c54d46a94b9f1180339ede7ca7ee190| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fbdev: imxfb: Check fb_add_videomode to prevent null-ptr-deref
fb_add_videomode() can fail with -ENOMEM when its internal kmalloc() cannot allocate a struct fb_modelist. If that happens, the modelist stays empty but the driver continues to register. Add a check for its return value to prevent poteintial null-ptr-deref, which is similar to the commit 17186f1f90d3 ("fbdev: Fix do_register_framebuffer to prevent null-ptr-deref in fb_videomode_to_var").
From the CVE record · Linux
The Linux kernel imxfb framebuffer driver can continue registering with an empty modelist if fb_add_videomode() fails because memory allocation fails. This can lead to a null-pointer dereference. The input does not establish how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the imxfb framebuffer driver should check their versions; affected versions are not specified.