Linux
fbdev: clear fb_info->mode before deleting a videomode
In the Linux kernel, the following vulnerability has been resolved: fbdev: clear fb_info->mode before deleting a videomode fb_set_var() can delete a mode from info->modelist when userspace passes FB_ACTIVATE_INV_MODE through FBIOPUT_VSCREENINFO. The code checks that the mode being deleted is not the current info->var and that fbcon is not using it, but it does not check fb_info->mode. fb_info->mode may still point into the modelist entry being deleted. If the entry is freed, later mode sysfs reads through show_mode() can dereference a stale pointer. Clear fb_info->mode before calling fb_delete_videomode() when it matches the mode being removed.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ce7fef961c63229b22dec415fb988899f479d61f
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 95e647d2a5304a8fd11f1ba3c8502de700650131
Fixed in ce7fef961c63229b22dec415fb988899f479d61f, 95e647d2a5304a8fd11f1ba3c8502de700650131
- 2.6.12
Fixed in 0, 7.1.10, 7.2
Mitigation
Upgrade Linux to ce7fef961c63229b22dec415fb988899f479d61f or 95e647d2a5304a8fd11f1ba3c8502de700650131 or later.
Upgrade Linux to 0 or 7.1.10 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.