CVE-2026-98795

Source
https://cve.org/CVERecord?id=CVE-2026-98795
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98795.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98795
Downstream
Published
2026-10-18T15:48:39Z
Modified
2026-10-19T02:47:26Z
Summary
net: sparx5: skip ptp deinit if init was skipped
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98795.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0933bd04047c3b96ba49545a8f91e7e6f8f666ff
Fixed
35c706d6eb1963735814c5f5bb2674a96eacf3cc
Fixed
2879b65bfa548e10d59c5fba91d17f8a00cd7029
Fixed
0d2c49915bc3aea4521cda5e4d42f24f63b94585

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98795.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.18.0
Fixed
6.18.56
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.10

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98795.json"