{"id":"CVE-2026-98795","aliases":["CVE-2026-98795"],"related":[],"kind":"vulnerability","state":"published","title":"net: sparx5: skip ptp deinit if init was skipped","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: sparx5: skip ptp deinit if init was skipped\n\nsparx5_ptp_init() returns early on the base lan969x variants\nbecause they do not have the SPX5_FEATURE_PTP flag. It also returns early\nwhen no \"ptp\" interrupt is described. Unbinding the driver then causes a\nNULL pointer dereference when cleaning up uninitialized tx_skbs queues:\n\n    Unable to handle kernel NULL pointer dereference at virtual address\n    0000000000000008\n    Call trace:\n    skb_queue_purge_reason+0x68/0x120 (P)\n    sparx5_ptp_deinit+0x64/0xc0\n    mchp_sparx5_remove+0x38/0x70\n    platform_remove+0x20/0x30\n    device_remove+0x4c/0x80\n\nBefore per-port tx_skbs were added, a NULL dereference would have happened\nwhen calling ptp_clock_unregister() on the never-registered PTP clocks.\n\nFix by returning early in sparx5_ptp_deinit() if PTP is not used.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: sparx5: skip ptp deinit if init was skipped\n\nsparx5_ptp_init() returns early on the base lan969x variants\nbecause they do not have the SPX5_FEATURE_PTP flag. It also returns early\nwhen no \"ptp\" interrupt is described. Unbinding the driver then causes a\nNULL pointer dereference when cleaning up uninitialized tx_skbs queues:\n\n    Unable to handle kernel NULL pointer dereference at virtual address\n    0000000000000008\n    Call trace:\n    skb_queue_purge_reason+0x68/0x120 (P)\n    sparx5_ptp_deinit+0x64/0xc0\n    mchp_sparx5_remove+0x38/0x70\n    platform_remove+0x20/0x30\n    device_remove+0x4c/0x80\n\nBefore per-port tx_skbs were added, a NULL dereference would have happened\nwhen calling ptp_clock_unregister() on the never-registered PTP clocks.\n\nFix by returning early in sparx5_ptp_deinit() if PTP is not used.","source":"cvelist"}],"published":"2026-10-18T15:48:39.633Z","modified":"2026-10-19T10:19:43.517Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0933bd04047c3b96ba49545a8f91e7e6f8f666ff","fixed":"35c706d6eb1963735814c5f5bb2674a96eacf3cc","status":"affected"},{"type":"git","introduced":"0933bd04047c3b96ba49545a8f91e7e6f8f666ff","fixed":"2879b65bfa548e10d59c5fba91d17f8a00cd7029","status":"affected"},{"type":"git","introduced":"0933bd04047c3b96ba49545a8f91e7e6f8f666ff","fixed":"0d2c49915bc3aea4521cda5e4d42f24f63b94585","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"6.18.56","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.10","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/35c706d6eb1963735814c5f5bb2674a96eacf3cc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2879b65bfa548e10d59c5fba91d17f8a00cd7029","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d2c49915bc3aea4521cda5e4d42f24f63b94585","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98795","url":"https://www.cve.org/CVERecord?id=CVE-2026-98795","licence":"CVE Terms of Use","modified":"2026-10-19T09:25:48.008Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98795","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98795","licence":"Public domain","modified":"2026-10-19T10:19:43.517Z"}],"updatedAt":"2026-11-25T22:59:45.305Z","epss":{"score":0.00166,"percentile":0.06093,"date":"2026-12-01T12:00:22.000Z"}}