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 C247C3BB685 for ; Thu, 24 Sep 2026 16:18: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=1790266712; cv=none; b=k0yLUG0Rnw4Lk6Kw+u1ywcJtVR0dDHX8G3FI9j7abqm7b3M2MHY7+wUA6qVH2vgQs5T4UTI7on//+CfMDFAMqcBn67tO7d0lv/0Vp/TJugApgtVM8LcUNFVEPdmYPtcSreNDzwwJttGBPz6a2vCGihcPK+g7cqgi8hI38IQ15ho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266712; c=relaxed/simple; bh=e50pelMU1fxIFPdJyQDDjdiXsoXNhQHOTn5b5MGGEaY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OvyOuTlk452W/7ZUTDarFQz0qPx8fQASMALLXdWUEi7GMya0ajpriL7OJWy1vODL2QH94usz24vCTgPB8hYb+5ES/Bn2aJ7cEp1c1NykQ0bgab9x9IfqVr6y5jQPHbTLDbPcv76dZkoYtfzVzW5F3g0QXTX2aAvFMam2VlXOiGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yPn+ESrI; 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="yPn+ESrI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BA451F000FF; Thu, 24 Sep 2026 16:18:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790266710; bh=lABMRAEyh/CN2T0G29w3ijz1MFCDm12kdir8wJwb4JQ=; h=From:To:Cc:Subject:Date:Reply-To; b=yPn+ESrIb/pATasiGjiHdqfo3qwgdvI7bUjnJ+nznP2UPszCjqIhqEZc15E3HSU5A TSrJlgVaxiWaoRBLh3f8MJoFehlBN9iTndZc0eL6q1F7v5VU/vu/cNYcVZBVpSiOaE G9NXFrZMmufnhYEwadoX3tVlUBS5LvlVo3Uf0exU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97480: tty: serial: 8250: protect against NULL uart->port.dev in register Date: Thu, 24 Sep 2026 18:04:05 +0200 Message-ID: <2026092436-CVE-2026-97480-7f18@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=2648; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vWMjKAo0L9VuAw2frpzzFR0oPkR6N6euzrLUd9KhAaQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPefyZ/s0KSX5LfX3c9409ZvMm/WvftnYWJSHLTj97 X601SOnjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI2HmGuQL5m89fOVZwRe7U 1fqFdY+KpuWw9zAsmFTKdnfOrjVHLQ280h8lzJx8cKvzBwA= 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: tty: serial: 8250: protect against NULL uart->port.dev in register serial8250_register_8250_port() conditionally copies uart->port.dev from up->port.dev only when up->port.dev is non-NULL: if (up->port.dev) { uart->port.dev = up->port.dev; ... } So if both the existing uart slot and up have a NULL ->dev, uart->port.dev remains NULL. The very next ACPI companion check then dereferences it unconditionally: if (!has_acpi_companion(uart->port.dev)) { has_acpi_companion() reads dev->fwnode without a NULL guard (include/linux/acpi.h), so this NULL-derefs the kernel for the remaining no-dev case rather than just skipping the mctrl_gpio_init() initialisation as intended. smatch flags the inconsistency: drivers/tty/serial/8250/8250_core.c:767 serial8250_register_8250_port() error: 'uart->port.dev' could be null (see line 719) Guard the call with a NULL check so register continues to work for callers that legitimately have no parent device (legacy non-OF/non-ACPI registrations). No functional change for callers that pass a non-NULL ->dev. The Linux kernel CVE team has assigned CVE-2026-97480 to this issue. Affected and fixed versions =========================== Fixed in 6.18.53 with commit 5cbab666721d974bfe033a12045d808936deaefd Fixed in 7.2 with commit 941c9f84c9b6310f7aaa1c8c785dcc634ee33050 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-97480 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/8250/8250_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/5cbab666721d974bfe033a12045d808936deaefd https://git.kernel.org/stable/c/941c9f84c9b6310f7aaa1c8c785dcc634ee33050