Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B164C3A6F09 for ; Sun, 18 Oct 2026 16:23:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340611; cv=none; b=oqu56Lh2qjbibb0R0sDkbbgYtSlTfXCuKK01PnmrA6kk+SF2FOWoPl95rAaxu+tse4CVe/DVdCyoVn1TZ+9o94XElfqt7okIh5zSdHuUl30/KFaivdy+GT+dF1o/1bA6tQhVPWON8wc5Q1zHiikq4cLYYmZImC6zlXcy5IvZWxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340611; c=relaxed/simple; bh=Ug83KoCJ2t7m6xIsrv7LgzVhvqJNilgPFXPILozc7PE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JvKRLkjyWeN/TQ6HL+OO7as0S5dDMrMcTjaaptb+PbjYOXNKlMCiOGgnFf92G0sphpcVyHqnub1MMPqNt2fAdWOGof2IMDXDt9VaNlKo4GzblfcweYKMMoNE0rDSKgXqIa1sAaBSOn0a7JVaCACjGGNjvnyuCn5OB8XAn1gdreM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z6T6L7iA; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="z6T6L7iA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F18D51F000C4; Sun, 18 Oct 2026 16:23:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340610; bh=w0KA/5FkN5eJ1ipCz/ub4o6iCoMbYoVpZI+H/K9z0N0=; h=From:To:Cc:Subject:Date:Reply-To; b=z6T6L7iAEEdKz4DXAU9VVz7/3r5nueByOOBjCJp+XPHHiDp2eumwGxU71F6PTYHVR qIDbS4vzAYDri+OjXJa7eqPPo+KYXYg2QE6Anm5T3oLto4CZBwGviZ3R/C32Xl6PLA rnFb81FCeglrYqy48AvWrHtkm3uGk/l4PAT/iwmc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98838: vt: skip screen update for DEC alignment test on backgroup consoles Date: Sun, 18 Oct 2026 17:46:53 +0200 Message-ID: <2026101832-CVE-2026-98838-2e17@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4101; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Gu/dcaSqvI6SsAFazwBxvCuVLY7+F+J9qL76bSzAovE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXibwuvP+c2T3/53QnbDBRy3o5qrdB6/9sb34Zs2Sp WvO3jS72xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATcVrIMD+44nd7kpz83JDs aT0BuhXuHy69WcIwP1ewTOKjK6fthInatnnaP9UlfvZ/AQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: vt: skip screen update for DEC alignment test on backgroup consoles [BUG] Recently, we encountered a KASAN warning as follows: BUG: KASAN: slab-out-of-bounds in fb_pad_aligned_buffer+0x11f/0x140 Read of size 1 at addr ff1100015fd9f6a4 by task tty_fbcon_oob/1239 CPU: 7 UID: 0 PID: 1239 Comm: tty_fbcon_oob Not tainted 7.3.0-rc1 #100 PREEMPT(full) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-4.fc41 04/01/2014 Call Trace: ... kasan_report+0xf0/0x120 fb_pad_aligned_buffer+0x11f/0x140 ccw_putcs+0x86c/0xa80 fbcon_putcs+0x338/0x410 do_update_region+0x21d/0x450 do_con_write+0x1e0e/0x4880 con_write+0x13/0x80 n_tty_write+0x374/0x1010 file_tty_write.isra.0+0x404/0x7a0 ... reproduce: 1) open /dev/tty0, set a KDFONTOP ioctl with op.op = KD_FONT_OP_SET, op.width = 8 and op.height = 16 (visible VC1) 2) open /dev/tty1, set a KDFONTOP ioctl with op.op = KD_FONT_OP_SET, op.width = 28 and op.height = 24 (invisible VC2) 3) echo 3 > /sys/devices/virtual/graphics/fbcon/rotate_all 4) write EShash8(esc hash8) to tty1 [CAUSE] All VCs render to the framebuffer. setfont only modifies the target VC's font without resizing the framebuffer backing buffer (par->rotated.buf); the buffer is only resized for the visible VC (fbcon_do_set_font -> ... -> vc_do_resize -> update_screen). This relies on the con_should_update() check performed before every update_region(). However, the ESC # 8 path (do_con_trol -> do_update_region) omits the con_should_update() check. After changing the font size of an invisible VC, do_update_region() fills using the new font size against a buffer that was never resized, causing an out-of-bounds access. [FIX] Only push the update when the console is visible and not blanked, add the con_should_update() check in the do_con_trol() like every other call site of do_update_region() (update_region(), invert_screen(), ...). The Linux kernel CVE team has assigned CVE-2026-98838 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.113 with commit 985c000b046ca4ee11ee34ef85db500c569ef6e8 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.56 with commit ad06f7312d3f615dd466483ce81a9b9619166686 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2.10 with commit 0ee53081425a1a31ce15089012cd96b8353eb44e Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3-rc6 with commit 0928ed9bd7946baee911efa401088697836e3b1e 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-98838 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/tty/vt/vt.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/985c000b046ca4ee11ee34ef85db500c569ef6e8 https://git.kernel.org/stable/c/ad06f7312d3f615dd466483ce81a9b9619166686 https://git.kernel.org/stable/c/0ee53081425a1a31ce15089012cd96b8353eb44e https://git.kernel.org/stable/c/0928ed9bd7946baee911efa401088697836e3b1e