Skip to contentSkip to conversation

CVE-2023-54301: serial: 8250_bcm7271: fix leak in `brcmuart_probe`

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 30, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

serial: 8250_bcm7271: fix leak in brcmuart_probe

Smatch reports:
drivers/tty/serial/8250/8250_bcm7271.c:1120 brcmuart_probe() warn:
'baud_mux_clk' from clk_prepare_enable() not released on lines: 1032.

The issue is fixed by using a managed clock.

The Linux kernel CVE team has assigned CVE-2023-54301 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.13 with commit 41a469482de257ea8db43cf74b6311bd055de030 and fixed in 5.15.113 with commit 5258395e67fee6929fb8e50c8239f8de51b8cb2d
	Issue introduced in 5.13 with commit 41a469482de257ea8db43cf74b6311bd055de030 and fixed in 6.1.30 with commit 2a3e5f428fc4315be6144524912eaefac16f43a9
	Issue introduced in 5.13 with commit 41a469482de257ea8db43cf74b6311bd055de030 and fixed in 6.3.4 with commit 56a81445b8e4b8906d557518c5dae3ddbb447d1e
	Issue introduced in 5.13 with commit 41a469482de257ea8db43cf74b6311bd055de030 and fixed in 6.4 with commit f264f2f6f4788dc031cef60a0cf2881902736709

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-2023-54301

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/5258395e67fee6929fb8e50c8239f8de51b8cb2d
	https://git.kernel.org/stable/c/2a3e5f428fc4315be6144524912eaefac16f43a9
	https://git.kernel.org/stable/c/56a81445b8e4b8906d557518c5dae3ddbb447d1e
	https://git.kernel.org/stable/c/f264f2f6f4788dc031cef60a0cf2881902736709