CVE-2026-98795: net: sparx5: skip ptp deinit if init was skipped

Published Oct 18, 2026
·
Updated

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

net: sparx5: skip ptp deinit if init was skipped

sparx5ptpinit() returns early on the base lan969x variants because they do not have the SPX5FEATUREPTP flag. It also returns early when no "ptp" interrupt is described. Unbinding the driver then causes a NULL pointer dereference when cleaning up uninitialized txskbs queues:

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 Call trace: skbqueuepurgereason+0x68/0x120 (P) sparx5ptpdeinit+0x64/0xc0 mchpsparx5remove+0x38/0x70 platformremove+0x20/0x30 deviceremove+0x4c/0x80

Before per-port txskbs were added, a NULL dereference would have happened when calling ptpclockunregister() on the never-registered PTP clocks.

Fix by returning early in sparx5ptpdeinit() if PTP is not used.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Update sparx5_ptp_deinit() to return early when PTP is not used or sparx5_ptp_init() was skipped, including base lan969x variants without a "ptp" interrupt, so it does not purge uninitialized tx_skbs queues or unregister never-registered PTP clocks.

Event History

Oct 18, 2026
CVE Published
via MITRE·03:48 PM
Data Sourced
via MITRE·03:48 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203