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 88DF6351C36 for ; Fri, 3 Apr 2026 15:27:54 +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=1775230074; cv=none; b=SPS8uq82BqGJOoH6LxnVBQ/hQ+GR5Jd16f0KbHOhNO+cFuflS5Ud5vdR4tLxZxSG7ikfBtlX2I20+3lDfLJA+hRhO0eD8poDupftz8vpUFyO3d3TYlGHEztOwsWuZwflITsagr2wVOIMWK2rIHqOv72RA9vWfGFOoEP2E8WkcWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775230074; c=relaxed/simple; bh=9MqSc2tZTmYloEYcz/kC4WxLPy14IrNhg5MIAd5Tj6I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bXhYsyEiKyStVG/BPokjWary8yiwLojrY0vyxV1icj1i/1iPCDQoPBn+1BenErw0a9cLo4iVL12D7rKr67BGhidG7eTV3qGDqOiTJA7nn96V4z7FtrmRTcKj73PDekXteETiLmRfXqZ1eXQTfG2EKabNw7vt6KliOFOYeGOA0sk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v88Knb5L; 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="v88Knb5L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE13EC4CEF7; Fri, 3 Apr 2026 15:27:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775230074; bh=9MqSc2tZTmYloEYcz/kC4WxLPy14IrNhg5MIAd5Tj6I=; h=From:To:Cc:Subject:Date:Reply-To:From; b=v88Knb5L0UGxCckEFHYsPfAzKCQqSvmmiT32TkI2ZgBIFkBRU7frhS7FbkptFnD6F LzB4Fe0+z+HH3cnQJUzWPqm004DzV88J2/6hkeAcW48EvUuZsYl9xWTdoj+kAmElkp 0M5C3ehKsfUZ6JeFb4anPSdni757Hc8FEFJwNOdM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23472: serial: core: fix infinite loop in handle_tx() for PORT_UNKNOWN Date: Fri, 3 Apr 2026 17:18:53 +0200 Message-ID: <2026040322-CVE-2026-23472-c68c@gregkh> X-Mailer: git-send-email 2.53.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=2612; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F99o14iczaN5KPFHQbPttX31R24w5NhDZ+/7d0fc1vU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnb9npf90zd9X2FcpRXps037LlPbnpEJEWnJhVYLZ1Z XLJ3bmyHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRn/UM851fBazVSDf3Mq/4 0tq64ZK8fNfBfqDovGfGG5amnOF4N8dSL1XuvvidvDUA 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: serial: core: fix infinite loop in handle_tx() for PORT_UNKNOWN uart_write_room() and uart_write() behave inconsistently when xmit_buf is NULL (which happens for PORT_UNKNOWN ports that were never properly initialized): - uart_write_room() returns kfifo_avail() which can be > 0 - uart_write() checks xmit_buf and returns 0 if NULL This inconsistency causes an infinite loop in drivers that rely on tty_write_room() to determine if they can write: while (tty_write_room(tty) > 0) { written = tty->ops->write(...); // written is always 0, loop never exits } For example, caif_serial's handle_tx() enters an infinite loop when used with PORT_UNKNOWN serial ports, causing system hangs. Fix by making uart_write_room() also check xmit_buf and return 0 if it's NULL, consistent with uart_write(). Reproducer: https://gist.github.com/mrpre/d9a694cc0e19828ee3bc3b37983fde13 The Linux kernel CVE team has assigned CVE-2026-23472 to this issue. Affected and fixed versions =========================== Fixed in 6.18.20 with commit efe85a557186b7fe915572ae93a8f3f78bfd9a22 Fixed in 6.19.10 with commit bc70f2b36cf474d5cc8ecbcaf57f3e326fdec67c Fixed in 7.0-rc5 with commit 455ce986fa356ff43a43c0d363ba95fa152f21d5 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-23472 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/serial/serial_core.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/efe85a557186b7fe915572ae93a8f3f78bfd9a22 https://git.kernel.org/stable/c/bc70f2b36cf474d5cc8ecbcaf57f3e326fdec67c https://git.kernel.org/stable/c/455ce986fa356ff43a43c0d363ba95fa152f21d5