Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 43BD43C3425 for ; Fri, 1 May 2026 14:18:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645133; cv=none; b=VIs9O8RqbT0M/ubjyOlxPlCZuEsxYsM08PDiTwcLy7jAst/VvZPTo1C0B3edryMLPXIB7IaYVX6FmFhF8VsGTgYxErEvfswOKhb6OBYZWvCyzdMxcCFhj6+8vq8iYQvtujGdvQVA/7rdgz7RmWNcuMc+IbmEoCauZRa++w2xzs0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645133; c=relaxed/simple; bh=VWfBEt4bUBo3thUnQznr4wAeqdXbqD2BZ2vhB1ihjYc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Moh/YGHFNAJemvYqJ2wVO6idYwQJhPgwenwOEkG+Uo+vnUaDW+NE0S40B4gmmc9XySZJf5Zs2VoKAh0z7Fi6JYoGEPjIa+6epCDJbUn5L6JaUXYQGpSVpwJ9WEjJ9qbAVmEVuBvqVxV7tg3hHPFlc89h0gN1qrdqSAeIe8QEfao= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c8NATBH5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="c8NATBH5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDD37C2BCB4; Fri, 1 May 2026 14:18:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645133; bh=VWfBEt4bUBo3thUnQznr4wAeqdXbqD2BZ2vhB1ihjYc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=c8NATBH5YVhXUAOLyWkUgyjYmC77eAy9PnEFiQUy4abpFwhzWgLgVQpU8n1eRrI+L JfXniIpIdZmOnDpCSwi4yQJpRUrPyGZmV4rskT1OjXmOJ2aj8lOxfVghW/LCJzlsS8 Y03+tHhOaWwLhRXuICxibZxBkXfDIxtsASo47ukY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31753: auxdisplay: line-display: fix NULL dereference in linedisp_release Date: Fri, 1 May 2026 16:15:04 +0200 Message-ID: <2026050143-CVE-2026-31753-cec6@gregkh> X-Mailer: git-send-email 2.54.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=2414; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EX/U5tQhlRJVB2PjX0McTWq/o3K2xFcCvba9cLGwFN0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftgbzNMnMuLNS7d+j0utzcwPyPM8rsr27q7XPb4m95 SL7db0rO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiHyIY5tdrWe/9OldXVcuf 56TXtidNczjPf2NYMM3/bPLhNWeEl6je2R8bp73O7/n8XwA= 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 NULL dereference in linedisp_release linedisp_release() currently retrieves the enclosing struct linedisp via to_linedisp(). That lookup depends on the attachment list, but the attachment may already have been removed before put_device() invokes the release callback. This can happen in linedisp_unregister(), and can also be reached from some linedisp_register() error paths. In that case, to_linedisp() returns NULL and linedisp_release() dereferences it while freeing the display resources. The struct device released here is the embedded linedisp->dev used by linedisp_register(), so retrieve the enclosing object directly with container_of() instead. The Linux kernel CVE team has assigned CVE-2026-31753 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 66c93809487e62c4f59ef08625a3fbc0a7de6dd2 and fixed in 6.19.12 with commit 625fdac41cfc4ca9e1774a0d31d7985aec2c1d66 Issue introduced in 6.19 with commit 66c93809487e62c4f59ef08625a3fbc0a7de6dd2 and fixed in 7.0 with commit 7f138de156b20d9f9da6f72f90b63c01941d97d3 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-31753 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/625fdac41cfc4ca9e1774a0d31d7985aec2c1d66 https://git.kernel.org/stable/c/7f138de156b20d9f9da6f72f90b63c01941d97d3