fbdev: modedb: fix a possible UAF in fb_find_mode()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fbdev: modedb: fix a possible UAF in fb_find_mode()
If mode_option is NULL, it is assigned from mode_option_buf:
if (!mode_option) { fb_get_options(NULL, &mode_option_buf); mode_option = mode_option_buf; }
Later, name is assigned from mode_option:
const char *name = mode_option;
However, mode_option_buf is freed before name is no longer used:
kfree(mode_option_buf);
From the CVE record · Linux
The Linux kernel's fb_find_mode() may access freed memory when mode_option is NULL. This could cause a use-after-free; the input does not specify how an attacker could trigger it or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the affected fbdev modedb code should check their kernel versions; affected versions are not specified.