Skip to main content

In the Linux kernel, the following vulnerability has been resolved: net: phylink: record the PHY only once bringup cannot fail phylink_bringup_phy()… (CVE-2026-98563)

0
Medium
Published: 10/18/2026 (10/18/2026, 18:31:54 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's phylink component was resolved that involved improper handling of the PHY device pointer during bringup. The function phylink_bringup_phy() stored the PHY pointer before a potentially failing step, leading to stale pointers referencing freed PHY devices. This could cause subsequent operations to access invalid memory references. The issue was found in scenarios where a PHY driver arrives after switch probes, allowing a retry path that exposes this flaw. The fix involved updating the pointer only after the last failure-prone call, preventing stale references.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 20:49:27 UTC

Technical Analysis

The Linux kernel's phylink subsystem had a vulnerability where phylink_bringup_phy() prematurely stored the PHY device pointer (pl->phydev) before a last fallible operation. On MACs implementing LPI, phy_eee_rx_clock_stop() can fail with a real MDIO error, causing callers to unwind with phy_detach() unaware of pl->phydev. This results in pl->phydev pointing to a freed phy_device, which subsequent functions like phylink_resolve() and ethtool helpers continue to access, leading to use-after-free conditions. The problem is exacerbated in the SFP path where error handling does not clear pl->phydev, leaving a dangling pointer. The vulnerability was discovered while ensuring DSA ports survive PHY drivers arriving late. The fix was to update pl->phydev only after the last call that can fail, ensuring no stale pointers remain and that PHY-side state order is preserved.

Potential Impact

This vulnerability can lead to use-after-free conditions within the Linux kernel's phylink subsystem, potentially causing kernel crashes or undefined behavior when stale pointers to freed PHY devices are accessed. The impact depends on the caller context but generally risks system stability and reliability. There is no indication of remote code execution or privilege escalation from the provided data.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to address this issue by updating the PHY device pointer only after the last potentially failing call in phylink_bringup_phy(). Users should apply the official kernel updates that include this fix. Since this is a kernel-level vulnerability, upgrading to the patched kernel version is the recommended remediation. No additional mitigation steps are indicated in the advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-84r8-c8cx-whp6
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98563"]

Threat ID: 6ad520af2cdf04f656993ab2

Added to database: 10/18/2026, 19:40:31 UTC

Last enriched: 10/18/2026, 20:49:27 UTC

Last updated: 10/18/2026, 22:28:13 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses