# CVE-2025-40239: net: phy: micrel: always set shared->phydev for LAN8814

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-12-04T15:31:28.941Z
- Modified: 2026-10-19T19:10:00.130Z
- Assigned by: Linux

## Description

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

net: phy: micrel: always set shared->phydev for LAN8814

Currently, during the LAN8814 PTP probe shared->phydev is only set if PTP
clock gets actually set, otherwise the function will return before setting
it.

This is an issue as shared->phydev is unconditionally being used when IRQ
is being handled, especially in lan8814_gpio_process_cap and since it was
not set it will cause a NULL pointer exception and crash the kernel.

So, simply always set shared->phydev to avoid the NULL pointer exception.

(As written by CVE List.)

## Affected

- Linux Linux: from b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746 before da1ef8e9eb5d4a12bec32d11636e521e7d529b9e; from b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746 before b093b06826b836c2824858669db080c190c04715; from b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746 before 399d10934740ae8cdaa4e3245f7c5f6c332da844; 6.10 (not affected: before 6.10; from 6.12.56 up to 6.12.*; from 6.17.6 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/da1ef8e9eb5d4a12bec32d11636e521e7d529b9e>
- <https://git.kernel.org/stable/c/b093b06826b836c2824858669db080c190c04715>
- <https://git.kernel.org/stable/c/399d10934740ae8cdaa4e3245f7c5f6c332da844>

## Sources

- CVE List: [CVE-2025-40239](https://www.cve.org/CVERecord?id=CVE-2025-40239), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40239](https://nvd.nist.gov/vuln/detail/CVE-2025-40239), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40239 · Whole record: https://cve.day/CVE-2025-40239.json · Rebuilt by cve.day 2026-11-25T22:59:08.269Z
