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

- 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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-18T15:48:39.633Z
- Modified: 2026-10-19T10:19:43.517Z
- Assigned by: Linux

## Description

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

net: sparx5: skip ptp deinit if init was skipped

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

    Unable to handle kernel NULL pointer dereference at virtual address
    0000000000000008
    Call trace:
    skb_queue_purge_reason+0x68/0x120 (P)
    sparx5_ptp_deinit+0x64/0xc0
    mchp_sparx5_remove+0x38/0x70
    platform_remove+0x20/0x30
    device_remove+0x4c/0x80

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

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

(As written by CVE List.)

## Affected

- Linux Linux: from 0933bd04047c3b96ba49545a8f91e7e6f8f666ff before 35c706d6eb1963735814c5f5bb2674a96eacf3cc; from 0933bd04047c3b96ba49545a8f91e7e6f8f666ff before 2879b65bfa548e10d59c5fba91d17f8a00cd7029; from 0933bd04047c3b96ba49545a8f91e7e6f8f666ff before 0d2c49915bc3aea4521cda5e4d42f24f63b94585; 5.18 (not affected: before 5.18; from 6.18.56 up to 6.18.*; from 7.2.10 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/35c706d6eb1963735814c5f5bb2674a96eacf3cc>
- <https://git.kernel.org/stable/c/2879b65bfa548e10d59c5fba91d17f8a00cd7029>
- <https://git.kernel.org/stable/c/0d2c49915bc3aea4521cda5e4d42f24f63b94585>

## Sources

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

---

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