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 4600F45DF41 for ; Sun, 18 Oct 2026 16:00:51 +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=1792339253; cv=none; b=RoCz5gBd1sqM1FyPSTNV/YkPqo8M9OTx3i8DJSA4MS7U35WvfQ2h6WIvtayKwdfPsm9zNR3FGx0j/hJyAutn2WHYSX+xhgZ1xBwuDbxzu8+X1jQhMhLBJpUbxfoaflBgNalz5jGJ46AfxyzXUEpQhQAajKGvdDVYffkPaN+C/SI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792339253; c=relaxed/simple; bh=fWEMHcwgnNLJRdXXDxE9bcmUj6d4mZ7bTdgE22Rli9c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ASPlTPfjXczfadIaR9wqC18VrDAcOARd6Rxtqdq9Mt5lWPv/Bnl3wLH7WotjZF7AiQdN4ycz5pfbpfxAl+KtaFNbLnXRs5GPeuZYVZYj12ycRly3MJait1Wpo/ClwJiins3DDfQcrdKBTvkzkcrp1iHIk2TYKxUXKZbHnHqCJKY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iusjrvq2; 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="iusjrvq2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09DBA1F000C4; Sun, 18 Oct 2026 16:00:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792339250; bh=RqoCrE6HD7qSXxMIPJSJttj/SlP5ZxvZ9LA0IH7odao=; h=From:To:Cc:Subject:Date:Reply-To; b=iusjrvq2jfLSUzKXjDZyodDAlNNSF24um8w/M3UTVFxl5/ahssQx9uHjiQDNhA4IR EL5WwF+rgi+ZGe68yQDuWMaSUA/zGphBaE/vQTXVl7Y9vW6vcWQm2qaEjiilVGN956 KuOY1qoh+Ke5I/m9JFQRsekRXar38NKJ10AaOi04= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98748: serial: 8250_bcm7271: fix use-after-free in brcmuart_remove() Date: Sun, 18 Oct 2026 17:45:23 +0200 Message-ID: <2026101814-CVE-2026-98748-9346@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=2990; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nkP14aA5W6dFD4CVfeCjgwNxpo5kEW3GbRmp+u9htH4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXvrVJh64ZLSp8wnr/OUhM7sUJ3jeZVzSc/pb4c4qf Sn3ZYYPO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAinVYMC9Ys2X7661IVnk+3 eaJ/HvWZejkqTo5hftRnnhavNwfqzhjverh7z8bnXE0FfgA= 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: 8250_bcm7271: fix use-after-free in brcmuart_remove() brcmuart_handle_irq() starts priv->hrt to work around a receive-timeout quirk of the 8250 core when hardware flow control is enabled; the timer callback brcmuart_hrtimer_func() dereferences priv. brcmuart_remove() cancels the hrtimer before it unregisters the port, so a receive-timeout interrupt that arrives in between re-arms the timer. After devm frees priv, the callback runs on freed memory. Unregister the port before cancelling the hrtimer. serial8250_unregister_port() shuts the port down and frees its IRQ, so brcmuart_handle_irq() can no longer restart the timer, and the final hrtimer_cancel() drains any timer that was armed before or during the unregister. This issue was found by an in-house static analysis tool. The Linux kernel CVE team has assigned CVE-2026-98748 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 41a469482de257ea8db43cf74b6311bd055de030 and fixed in 6.12.113 with commit f5ce06e648d775cc1ccf66f4f594bb8b559a7d8e Issue introduced in 5.13 with commit 41a469482de257ea8db43cf74b6311bd055de030 and fixed in 6.18.56 with commit e32440fa536af96bdbc61d933a7c3a920b965edc Issue introduced in 5.13 with commit 41a469482de257ea8db43cf74b6311bd055de030 and fixed in 7.2.10 with commit 0794ba5332754866b2f1c0cca668775be3ffcf0a Issue introduced in 5.13 with commit 41a469482de257ea8db43cf74b6311bd055de030 and fixed in 7.3-rc6 with commit 189b9dc8c96ec9486482f27c1372b04a7152175e 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-98748 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_bcm7271.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/f5ce06e648d775cc1ccf66f4f594bb8b559a7d8e https://git.kernel.org/stable/c/e32440fa536af96bdbc61d933a7c3a920b965edc https://git.kernel.org/stable/c/0794ba5332754866b2f1c0cca668775be3ffcf0a https://git.kernel.org/stable/c/189b9dc8c96ec9486482f27c1372b04a7152175e