net: phylink: correctly validate returned PCS in phylink_inband_caps
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.50, 7.2.4
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From df874f9e52c340cc6f0a0014a97b778f67d46849 · fixed in b6b533f83461c3730875cf3ed5ff6362dcb67be9; From df874f9e52c340cc6f0a0014a97b778f67d46849 · fixed in fb4d77553841ae85bed9b2cf03351c401e871d85; From df874f9e52c340cc6f0a0014a97b778f67d46849 · fixed in f2849b1fd059ec9b3281b771e6ac5aad9feee851
- Linux Linux
6.14
- KernelLinux
From 6.14.0 · fixed in 6.18.50; From 6.19.0 · fixed in 7.2.4