CVE-2026-80993: net: phylink: correctly validate returned PCS in phylink_inband_caps
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: phylink: correctly validate returned PCS in phylink_inband_caps
In phylink_inband_caps(), the PCS returned by mac_select_pcs is only checked if NULL but mac_select_pcs can also return an error pointer.
This can cause a kernel panic as phylink_pcs_inband_caps() only checks if passed PCS is not NULL and directly dereference ops from the phylink_pcs struct.
Use the IS_ERR_OR_NULL macro to address both case where the returned PCS can be NULL or an error pointer and prevent a kernel panic.
The Linux kernel CVE team has assigned CVE-2026-80993 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.14 with commit df874f9e52c340cc6f0a0014a97b778f67d46849 and fixed in 6.18.50 with commit b6b533f83461c3730875cf3ed5ff6362dcb67be9 Issue introduced in 6.14 with commit df874f9e52c340cc6f0a0014a97b778f67d46849 and fixed in 7.2.4 with commit fb4d77553841ae85bed9b2cf03351c401e871d85 Issue introduced in 6.14 with commit df874f9e52c340cc6f0a0014a97b778f67d46849 and fixed in 7.3-rc1 with commit f2849b1fd059ec9b3281b771e6ac5aad9feee851
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-80993
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/phylink.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/b6b533f83461c3730875cf3ed5ff6362dcb67be9 https://git.kernel.org/stable/c/fb4d77553841ae85bed9b2cf03351c401e871d85 https://git.kernel.org/stable/c/f2849b1fd059ec9b3281b771e6ac5aad9feee851