[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025032717-CVE-2023-53019-441a@gregkh>
Date: Thu, 27 Mar 2025 17:44:06 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2023-53019: net: mdio: validate parameter addr in mdiobus_get_phy()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: mdio: validate parameter addr in mdiobus_get_phy()
The caller may pass any value as addr, what may result in an out-of-bounds
access to array mdio_map. One existing case is stmmac_init_phy() that
may pass -1 as addr. Therefore validate addr before using it.
The Linux kernel CVE team has assigned CVE-2023-53019 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 4.14.305 with commit 1d80c259dfbadefa61b7ea334dfce5cb57f8c72f
Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 4.19.272 with commit c431a3d642593bbdb99e8a9e3eed608b730db6f8
Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 5.4.231 with commit 8a7b9560a3a8eb8724888c426e05926752f73aa0
Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 5.10.166 with commit 4bc5f1f6bc94e695dfd912122af96e7115a0ddb8
Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 5.15.91 with commit ad67de330d83e8078372b52af18ffe8d39e26c85
Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 6.1.9 with commit 7879626296e6ffd838ae0f2af1ab49ee46354973
Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 6.2 with commit 867dbe784c5010a466f00a7d1467c1c5ea569c75
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-53019
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/net/phy/mdio_bus.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/1d80c259dfbadefa61b7ea334dfce5cb57f8c72f
https://git.kernel.org/stable/c/c431a3d642593bbdb99e8a9e3eed608b730db6f8
https://git.kernel.org/stable/c/8a7b9560a3a8eb8724888c426e05926752f73aa0
https://git.kernel.org/stable/c/4bc5f1f6bc94e695dfd912122af96e7115a0ddb8
https://git.kernel.org/stable/c/ad67de330d83e8078372b52af18ffe8d39e26c85
https://git.kernel.org/stable/c/7879626296e6ffd838ae0f2af1ab49ee46354973
https://git.kernel.org/stable/c/867dbe784c5010a466f00a7d1467c1c5ea569c75
Powered by blists - more mailing lists