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 9F4053A16B2 for ; Sun, 19 Jul 2026 15:01:37 +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=1784473298; cv=none; b=XJ6dcg5fPoVgOil95uTY2+Km/sDbtgPUPf+C3MIis4qY2vIu98FNdI7NjmlkNZz2XlUMsOoF9ZKUslvHWzFkSuERQ6NBJzKRREriHGdiM5NPQ3KykNkFoMWdmPGKdglQGR1IGr9cZGRyBg3jQQJh24Nwn9AEmlL3+kG36Gzk4I4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473298; c=relaxed/simple; bh=uN7EFOMo7dULRWUnjUBy13PbjqfJU8VmgRwkK6kcasg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=s5FgatD22YfcYiP5abHY4uqySBQvLwyHcXYwfx39YjtHF0CN3DtNTNvZseq4VyOHZ9ndCYdxWrfaXOta5Powr3kdreTcgTlkur6TUEqA/VJphiaDWF0c8W+CgiUpcMH4wlIpcI66pwDIjWnTTJlKAqYmJH+cpBC6IDPZij+A02g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q3PcjHtj; 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="Q3PcjHtj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F1421F000E9; Sun, 19 Jul 2026 15:01:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473297; bh=3QATranfd7KEV9xLPUqgEu35fEDs9cHJk88hBmBeqBs=; h=From:To:Cc:Subject:Date:Reply-To; b=Q3PcjHtjoypT+Xed+XdHzXVUtjrQy7Mnp7GUweP8pTcA4YE7QGIo5KrsmyJecN54e crt9/x2HV3Ek5y8A0SDepw9kN65Ob1jDc/VEb/NtQi+Ndyz4cMT0xjsmWGoBDscwtA ZeIQZGL+ta8PdSPEyU2x7Dt7Ks+T6xvKDQChYUOc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63949: auxdisplay: line-display: fix OOB read on zero-length message_store() Date: Sun, 19 Jul 2026 16:56:49 +0200 Message-ID: <2026071954-CVE-2026-63949-7f56@gregkh> X-Mailer: git-send-email 2.55.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=4125; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9wInBc/45FOjFGNDX3B6Dkkl3PySgMJ0YSTMsKlAZ2A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxT6vuaLWeXVXp9+FwVc1yxXLJOQcamHi5bmxKfsijm zov/v3NjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIhoUMCybUH86W+2lw6Lxn 6hKL5cHP9Ngv/2CYw2sbepDZylri4QSTHcUfWnZtX3/pOwA= 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: auxdisplay: line-display: fix OOB read on zero-length message_store() linedisp_display() unconditionally reads msg[count - 1] before checking whether count is zero, so a write of zero bytes to the message sysfs attribute hits msg[-1]: write(fd, "", 0); -> message_store(..., buf, count=0) -> linedisp_display(linedisp, buf, count=0) -> msg[count - 1] == '\n' ; OOB read The kernfs write buffer for that store is a 1-byte allocation (kernfs_fop_write_iter() does kmalloc(len + 1) with len == 0), so msg[-1] is a 1-byte read before the slab object. On a KASAN-enabled kernel this trips an out-of-bounds report and panics; on stock kernels it silently reads adjacent slab data and, if that byte happens to be '\n', the following count-- wraps ssize_t 0 to -1 and is then passed to kmemdup_nul(). linedisp_display() is reached from the message_store() sysfs callback (drivers/auxdisplay/line-display.c message attribute, mode 0644) and from the in-tree initial-message setup with count == -1, so the OOB path is only userspace-triggerable via zero-byte writes; vfs_write() does not short-circuit on count == 0 and kernfs_fop_write_iter() dispatches the store callback regardless. Guard the trailing-newline trim with a count check. The existing if (!count) block then takes the clear-display path unchanged. Affects every auxdisplay driver that registers via linedisp_register() / linedisp_attach(): ht16k33, max6959, img-ascii-lcd, seg-led-gpio. The Linux kernel CVE team has assigned CVE-2026-63949 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 7e76aece6f036cb7ada4858d6aa73825bfe22983 and fixed in 6.1.176 with commit ca5b0781946d5083ceafa752141f47f085853620 Issue introduced in 5.16 with commit 7e76aece6f036cb7ada4858d6aa73825bfe22983 and fixed in 6.6.143 with commit 8776032fe989a9b5fc77f2de5e03e4adb44c630e Issue introduced in 5.16 with commit 7e76aece6f036cb7ada4858d6aa73825bfe22983 and fixed in 6.12.93 with commit 3859960daeb9b7b39b9847b5b0113bc6081eb735 Issue introduced in 5.16 with commit 7e76aece6f036cb7ada4858d6aa73825bfe22983 and fixed in 6.18.35 with commit 197476b126010bac1b3199833c6966cd6f54c2a9 Issue introduced in 5.16 with commit 7e76aece6f036cb7ada4858d6aa73825bfe22983 and fixed in 7.0.12 with commit 6ad4f75ef9f3372fce8cad494e789ac6a5507bef Issue introduced in 5.16 with commit 7e76aece6f036cb7ada4858d6aa73825bfe22983 and fixed in 7.1 with commit a7511dcd9dd4bc55d123f9b800c8a4ed2662e5c6 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-63949 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/auxdisplay/line-display.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/ca5b0781946d5083ceafa752141f47f085853620 https://git.kernel.org/stable/c/8776032fe989a9b5fc77f2de5e03e4adb44c630e https://git.kernel.org/stable/c/3859960daeb9b7b39b9847b5b0113bc6081eb735 https://git.kernel.org/stable/c/197476b126010bac1b3199833c6966cd6f54c2a9 https://git.kernel.org/stable/c/6ad4f75ef9f3372fce8cad494e789ac6a5507bef https://git.kernel.org/stable/c/a7511dcd9dd4bc55d123f9b800c8a4ed2662e5c6