net: sparx5: skip ptp deinit if init was skipped
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.18.56, 7.2.10
- CVEs
- CVE-2026-98795
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 03:36 UTC · Revision 1
Source evidence
net: sparx5: skip ptp deinit if init was skipped
core-osv · Original sourcePublished 18 Oct 2026, 15:48 UTC
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.
osv:CVE-2026-98795
Kernel
Fixed versions: 6.18.56, 7.2.10
Complete source record
{
"id": "386e10717bde08e2ea28d42e02d3105c5cad4f8765fbe895ed117daeb134b6b7",
"url": "https://osv.dev/vulnerability/CVE-2026-98795",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: sparx5: skip ptp deinit if init was skipped",
"summary": "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.",
"evidence": "osv:CVE-2026-98795",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.18.56",
"evidence": "/affected/1/ranges"
},
{
"value": "7.2.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-98795",
"aliases": [
"CVE-2026-98795"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.18.0"
},
{
"fixed": "6.18.56"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.2.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98795.json"
}
}
],
"modified": "2026-10-28T02:30:32.716035241Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0d2c49915bc3aea4521cda5e4d42f24f63b94585",
"https://git.kernel.org/stable/c/2879b65bfa548e10d59c5fba91d17f8a00cd7029",
"https://git.kernel.org/stable/c/35c706d6eb1963735814c5f5bb2674a96eacf3cc",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98795.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-98795",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98795.json"
}
},
"related_cves": [
{
"value": "CVE-2026-98795",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 500058,
"published_at": "2026-10-18T15:48:39.633+00:00"
}