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 085174973B4 for ; Thu, 17 Sep 2026 16:26:23 +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=1789662384; cv=none; b=NgJdf3CtMs+yCDpoFVAMhkWnrPUB0tRomS5dwNictb2uFBTxl0bxaPClh+YiGTLS3hvUKvSd+whQ36JwbxdAD17JcxmrIUQDNsxBdjuUgM05OucYEx/OmZ3mfQY8i35mpX6XtnCrDG/6gAf/0wAjzN5vd6k+jSLYO7M23S8pUns= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662384; c=relaxed/simple; bh=VnpyszvD6nHEuVsSeY04YjoLtDyc14PV4LVY6xia3+o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YlAOFYANjDu031cye/Y/Nr1WwsDiYxyGLB+1Cih6/PN5t0IXhKljDCTuFZQdr608DKbdYEdC/ZgSv1aNgvXfxrD8C2FDoOBkFQGpQWmIqcnC29UyMNANcfxWcdKFDkOPRNFIwAegRzfaViWtWnGo1KchLqZ+n26PSNkjsJQjOj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kntkjh6q; 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="kntkjh6q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38F4D1F00898; Thu, 17 Sep 2026 16:26:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662382; bh=jbgM/U8ITzrRig8krR61YIbgfGiPqbNwO2lA9ky0nOM=; h=From:To:Cc:Subject:Date:Reply-To; b=kntkjh6qlgcFubPK2qJSfPTjk0vGg9seCLuYZ9wI2+93wDw2hfze1WZJKAol+Hofr 3q0CxsGhhQ6o64eXBsY4oWmUHrRoLEd7JsvIX8n8MZi6e98iYOaxd+1CD0/I8BhKFh OSKlBsGX3K/UF81r83kNLDUTd3whpvkkCRAUhY4A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90336: serial: core: clear freed pointers on uart_register_driver() failure Date: Thu, 17 Sep 2026 17:12:46 +0100 Message-ID: <2026091701-CVE-2026-90336-2399@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=2362; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NeXlNx3HkrymwX89i6ubZUYvYW5tcYywhiMFSkY8798=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBObu3Xt8/xepHxsj9DTPKdR8avftuHp37fJpfreZe TotQs6ydMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEvl9kmJ+Y2KAcF52WqHk4 q0nAe9LNi6r/QhgWtKU9ZmFLWlqbVOL+Te/8xU32853eAAA= 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: clear freed pointers on uart_register_driver() failure uart_register_driver() leaves drv->state pointing to freed memory when tty_alloc_driver() fails. If tty_register_driver() fails, drv->tty_driver also retains a pointer after its reference is dropped. Drivers that use drv->state as an "already registered" flag can then skip registration on the next probe and pass the freed state to uart_add_one_port(). This issue was found with failslab on QEMU's raspi1ap board by failing registration and binding the PL011 port again. Clear both pointers on their failure paths, as uart_unregister_driver() already does. The Linux kernel CVE team has assigned CVE-2026-90336 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2.6 with commit 06b376432974fe5f25f2843a8e8438c6a1cf3d50 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3-rc1 with commit 61a2fb25551be0375bc16ef2a70c987dfca26183 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-90336 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/06b376432974fe5f25f2843a8e8438c6a1cf3d50 https://git.kernel.org/stable/c/61a2fb25551be0375bc16ef2a70c987dfca26183