vt: Clear selection before changing the font
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 009e39ae44f4191188aeb6dfbf661b771dbbe515 · < 2535431ae967ad17585513649625fea7db28d4db| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
vt: Clear selection before changing the font
When changing the console font with ioctl(KDFONTOP) the new font size can be bigger than the previous font. A previous selection may thus now be outside of the new screen size and thus trigger out-of-bounds accesses to graphics memory if the selection is removed in vc_do_resize().
Prevent such out-of-memory accesses by dropping the selection before the various con_font_set() console handlers are called.
From the CVE record · Linux
The Linux kernel’s vt console handling can access graphics memory out of bounds when a console font is changed with ioctl(KDFONTOP) while a selection remains active. This can occur if the new font changes the screen size and the selection is removed during a resize; the input does not specify authentication requirements or user interaction.
Engineers running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified in the input.