Back

MEDIUM

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

Published Dec 4, 2025

Description

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.

Affected products

Remediation

Red Hat statement

The change hardens the LAN8814 PTP probe path by always initializing shared->phydev so that IRQ handlers cannot dereference NULL if PTP clock registration fails. Impact is limited to systems with the LAN8814 PHY and results in a local kernel crash (DoS).

Weaknesses (0)

No CWE recorded.

References (8)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published Dec 4, 2025
Updated May 11, 2026
Reserved Apr 16, 2025
NVD
Status Deferred
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date Dec 4, 2025