CVE-2026-68333: dpaa2-switch: put MAC endpoint device on disconnect
Greg Kroah-Hartman <[email protected]>
| Newsgroups | org.kernel.vger.linux-cve-announce |
|---|---|
| Message-ID | <2026081035-CVE-2026-68333-f526@gregkh> |
From: Greg Kroah-Hartman <[email protected]> Description =========== In the Linux kernel, the following vulnerability has been resolved: dpaa2-switch: put MAC endpoint device on disconnect fsl_mc_get_endpoint() returns the MAC endpoint device with a reference taken through device_find_child(). The switch port connect path stores that device in mac->mc_dev and keeps it for the lifetime of the connected MAC object. However, the disconnect path only closes the MAC and frees the dpaa2_mac object. It does not drop the endpoint device reference stored in mac->mc_dev, so every successful connect leaks that device reference when the MAC is later disconnected. Drop the endpoint device reference before freeing the dpaa2_mac object. The Linux kernel CVE team has assigned CVE-2026-68333 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 84cba72956fddf29ba666f885c39ed147024c125 and fixed in 6.6.148 with commit 1f4ca61b7a93de3dfa5161bcd38ecb99bb091c38 Issue introduced in 5.15 with commit 84cba72956fddf29ba666f885c39ed147024c125 and fixed in 6.12.101 with commit 680eecc850d36a280df9780496bc603fec17b2d6 Issue introduced in 5.15 with commit 84cba72956fddf29ba666f885c39ed147024c125 and fixed in 6.18.42 with commit 26ac2d3602347f0377fbcd5214bc28a9d735ae68 Issue introduced in 5.15 with commit 84cba72956fddf29ba666f885c39ed147024c125 and fixed in 7.1.6 with commit c27694ff6748e08fcd2fdba89018439d75b8198f Issue introduced in 5.15 with commit 84cba72956fddf29ba666f885c39ed147024c125 and fixed in 7.2-rc5 with commit 4c1eabbef7a1707635652e956e39db1269c3af2b 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-68333 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/ethernet/freescale/dpaa2/dpaa2-switch.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/1f4ca61b7a93de3dfa5161bcd38ecb99bb091c38 https://git.kernel.org/stable/c/680eecc850d36a280df9780496bc603fec17b2d6 https://git.kernel.org/stable/c/26ac2d3602347f0377fbcd5214bc28a9d735ae68 https://git.kernel.org/stable/c/c27694ff6748e08fcd2fdba89018439d75b8198f https://git.kernel.org/stable/c/4c1eabbef7a1707635652e956e39db1269c3af2b