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 663253F23CF for ; Sun, 18 Oct 2026 16:00:44 +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=1792339245; cv=none; b=Tzzm/JduOG8ApJ/vMdRBieoWP3j66Hm5etmV7ddiN76epuUA0pKz5DArCm7nY8cDO8lRRqhBGZKa8aA+F+R6c1rmJNk9LLNPgptqKYngY7Z8mcQsBxjCxQZS3XLwwvuOuvIBd+mGOhQgG0PNn5r1fL+sjrRZTtHWVZtFi6szAzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792339245; c=relaxed/simple; bh=cZnxa6UJNka+zuKbsQWKoLJ5lZLB4o2s+Hb2w5mTNz0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kvof5pWGebtgMrvP59pkXxrs6/rY1u0xlv5HxjhjzsRqhbwM654oTfgAeoLtEvDDF6rOcdZydCwUUla2JB/Kg8f1wXIfyvQibzySPLKZ7/MOcBJPvHfSGeDj4iF6wud2J94d+7Ktipvc9Q+eYMZmseEqR+DXd5fAriLg4yFQ/+o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a1APWWLw; 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="a1APWWLw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B86961F000C4; Sun, 18 Oct 2026 16:00:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792339244; bh=gAW5A5pa8PS500MlBXNAFaHragxUcFrcXHXWl3Wytl8=; h=From:To:Cc:Subject:Date:Reply-To; b=a1APWWLwQwb6eRkhDZ2onFSNlAi7cTVea9AvAQnDmeQzHmJK54ruMh390/Q+wOBLD AAKE+aQWOW9mXRActPyuRzdkh87jrvq6BoY2dr1AsHRNctH38Z6y2+TfE6pnWDJChx KDHfCUHY3BU2L5Rfd0XtikVUFOyaIjiYdzfY/Pcw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98747: serial: core: fix NULL pointer dereference in serial_core_unregister_port() Date: Sun, 18 Oct 2026 17:45:22 +0200 Message-ID: <2026101814-CVE-2026-98747-d4f4@gregkh> X-Mailer: git-send-email 2.56.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=2468; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Kv7Kv9V/b7ZOG+Cnexv5+Lp2bvh03LgAug832Q4UTS0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXvoV3bh7XKflv/Pi/yVlP17HGwlsftXp/7dvxwSxk wtl5nOGdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEOJ0ZFswtEHk7SU2ad0Er W0DN7Ps7pldMTmNYsGstw7V99bsZUhWNbu94az95ubpnHgA= 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 NULL pointer dereference in serial_core_unregister_port() port->port_dev is NULL when no port device is installed: it is cleared on teardown, and never set if registration failed before serial_core_port_device_add(). serial_core_unregister_port() passes it straight to serial_core_get_ctrl_dev(), which dereferences it: KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] RIP: serial_core_unregister_port Call Trace: serial8250_unregister_port serial8250_remove unbind_store Return early when there is no port device, and read port->port_dev under port_mutex. Also clear port->port_dev on the serial_core_register_port() error path, where the port device has already been removed. The Linux kernel CVE team has assigned CVE-2026-98747 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 84a9582fd203063cd4d301204971ff2cd8327f1a and fixed in 7.2.10 with commit 54abbb862366dcaf1f22f1e968358147b7d0547d Issue introduced in 6.5 with commit 84a9582fd203063cd4d301204971ff2cd8327f1a and fixed in 7.3-rc6 with commit 499485a67fbacf4d9afbdb43522388c64f853428 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-98747 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/54abbb862366dcaf1f22f1e968358147b7d0547d https://git.kernel.org/stable/c/499485a67fbacf4d9afbdb43522388c64f853428