Skip to contentSkip to conversation

CVE-2026-46191: fbcon: Avoid OOB font access if console rotation fails

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

fbcon: Avoid OOB font access if console rotation fails

Clear the font buffer if the reallocation during console rotation fails in fbcon_rotate_font(). The putcs implementations for the rotated buffer will return early in this case. See [1] for an example.

Currently, fbcon_rotate_font() keeps the old buffer, which is too small for the rotated font. Printing to the rotated console with a high-enough character code will overflow the font buffer.

v2:
- fix typos in commit message

The Linux kernel CVE team has assigned CVE-2026-46191 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.15 with commit 6cc50e1c5b57180fd37a31282000f43859b0fe73 and fixed in 6.6.140 with commit 594973a2e54924d8ba31c9faac669fc1ba6fcb80
	Issue introduced in 2.6.15 with commit 6cc50e1c5b57180fd37a31282000f43859b0fe73 and fixed in 6.12.90 with commit ab6c34b9829d5de03f1d08a47a2253729a6e7e27
	Issue introduced in 2.6.15 with commit 6cc50e1c5b57180fd37a31282000f43859b0fe73 and fixed in 6.18.32 with commit 7105d9f1387d63b15c9a860674fc92c959181f2f
	Issue introduced in 2.6.15 with commit 6cc50e1c5b57180fd37a31282000f43859b0fe73 and fixed in 7.0.7 with commit b44cc78ff46b96e72d333a3be6aaaa0a14797263
	Issue introduced in 2.6.15 with commit 6cc50e1c5b57180fd37a31282000f43859b0fe73 and fixed in 7.1-rc1 with commit e4ef723d8975a2694cc90733a6b888a5e2841842

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-46191

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/video/fbdev/core/fbcon_rotate.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/594973a2e54924d8ba31c9faac669fc1ba6fcb80
	https://git.kernel.org/stable/c/ab6c34b9829d5de03f1d08a47a2253729a6e7e27
	https://git.kernel.org/stable/c/7105d9f1387d63b15c9a860674fc92c959181f2f
	https://git.kernel.org/stable/c/b44cc78ff46b96e72d333a3be6aaaa0a14797263
	https://git.kernel.org/stable/c/e4ef723d8975a2694cc90733a6b888a5e2841842