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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:48:39.633Z
- **Modified:** 2026-10-19T10:19:43.517Z

## Who should check

- Anyone running Linux \>= 0933bd04047c3b96ba49545a8f91e7e6f8f666ff, \< 35c706d6eb1963735814c5f5bb2674a96eacf3cc; \>= 0933bd04047c3b96ba49545a8f91e7e6f8f666ff, \< 2879b65bfa548e10d59c5fba91d17f8a00cd7029; \>= 0933bd04047c3b96ba49545a8f91e7e6f8f666ff, \< 0d2c49915bc3aea4521cda5e4d42f24f63b94585
- Anyone running Linux 5.18

## 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.

## Affected and fixed versions

- Linux: \>= 0933bd04047c3b96ba49545a8f91e7e6f8f666ff, \< 35c706d6eb1963735814c5f5bb2674a96eacf3cc; \>= 0933bd04047c3b96ba49545a8f91e7e6f8f666ff, \< 2879b65bfa548e10d59c5fba91d17f8a00cd7029; \>= 0933bd04047c3b96ba49545a8f91e7e6f8f666ff, \< 0d2c49915bc3aea4521cda5e4d42f24f63b94585 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 0d2c49915bc3aea4521cda5e4d42f24f63b94585 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98795. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98795.md
Affected: Linux >= 0933bd04047c3b96ba49545a8f91e7e6f8f666ff, < 35c706d6eb1963735814c5f5bb2674a96eacf3cc; >= 0933bd04047c3b96ba49545a8f91e7e6f8f666ff, < 2879b65bfa548e10d59c5fba91d17f8a00cd7029; >= 0933bd04047c3b96ba49545a8f91e7e6f8f666ff, < 0d2c49915bc3aea4521cda5e4d42f24f63b94585; Linux 5.18
Fixed in: Linux 35c706d6eb1963735814c5f5bb2674a96eacf3cc, Linux 2879b65bfa548e10d59c5fba91d17f8a00cd7029, Linux 0d2c49915bc3aea4521cda5e4d42f24f63b94585

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98795 being exploited?

There is no confirmed exploitation: CVE-2026-98795 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98795?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98795?

Linux \>= 0933bd04047c3b96ba49545a8f91e7e6f8f666ff, \< 35c706d6eb1963735814c5f5bb2674a96eacf3cc; \>= 0933bd04047c3b96ba49545a8f91e7e6f8f666ff, \< 2879b65bfa548e10d59c5fba91d17f8a00cd7029; \>= 0933bd04047c3b96ba49545a8f91e7e6f8f666ff, \< 0d2c49915bc3aea4521cda5e4d42f24f63b94585; Linux 5.18.

### Is there a fix for CVE-2026-98795?

Yes. Fixed in Linux 35c706d6eb1963735814c5f5bb2674a96eacf3cc, Linux 2879b65bfa548e10d59c5fba91d17f8a00cd7029, Linux 0d2c49915bc3aea4521cda5e4d42f24f63b94585. Upgrade Linux to 0d2c49915bc3aea4521cda5e4d42f24f63b94585 or later.

### How do I check if I'm affected by CVE-2026-98795?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98795>

HTML: <https://flawdb.com/CVE-2026-98795> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98795>
