Skip to main content
Vulnerability Database/CVE-2026-98756

CVE-2026-98756: Linux Kernel Use-After-Free Vulnerability

CVE-2026-98756 is a use-after-free flaw in the Linux kernel USB cdns3 driver causing NULL pointer crashes during device probing. This article covers technical details, affected versions, and patches.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98756 Overview

CVE-2026-98756 is a NULL pointer dereference vulnerability in the Linux kernel's Cadence USBSS (cdns3) PCI driver. The flaw resides in the cdns3_pci_probe function, which handles probing of a two-function PCI device. When the second PCI function is probed while the first function has been enabled but has not yet stored its driver data, pci_get_drvdata() returns NULL. The subsequent wrap->devfn assignment dereferences this NULL pointer and crashes the kernel. The fix returns -EPROBE_DEFER so that probing is retried after the first function completes.

Critical Impact

A race condition during PCI device probing causes a kernel NULL pointer dereference, resulting in a kernel crash (denial of service) on systems using the Cadence USBSS controller.

Affected Products

  • Linux kernel versions containing the cdns3 PCI driver prior to the patched commits
  • Systems with Cadence USBSS two-function PCI controllers
  • Downstream distributions shipping the vulnerable drivers/usb/cdns3/cdns3-pci-wrap.c code

Discovery Timeline

  • 2026-10-18 - CVE-2026-98756 published to NVD
  • 2026-10-21 - Last updated in NVD database

Technical Details for CVE-2026-98756

Vulnerability Analysis

The Cadence USBSS controller exposes itself as a two-function PCI device. The first probed function allocates driver data and stores a reference using pci_set_drvdata(). The second function is designed to reuse that data by calling pci_get_drvdata() once pci_is_enabled() confirms the first function has been probed.

A race window exists between when the first function is enabled and when it actually calls pci_set_drvdata(). If the second function is probed inside that window, pci_get_drvdata() returns NULL. The driver then performs a wrap->devfn field assignment on the NULL pointer, triggering an immediate kernel oops. The call trace confirms the crash originates in cdns3_pci_probe+0xa4/0x300 during normal device enumeration at boot.

Root Cause

The root cause is an unchecked return value from pci_get_drvdata() combined with a timing assumption that pci_is_enabled() implies driver data has been published. The two conditions are not equivalent, leaving a NULL dereference window during concurrent probe operations on sibling PCI functions.

Attack Vector

Exploitation requires local hardware conditions that trigger the probe race on the affected Cadence USBSS controller. There is no indication of remote attack vectors or privilege escalation. The practical impact is a kernel crash (denial of service) during device initialization, which may prevent affected systems from booting reliably when the hardware is present. No public proof-of-concept, exploit tooling, or CISA KEV listing is associated with this issue.

Technical details on the fix are available in the upstream commits: Kernel Commit 45b6064, Kernel Commit 549c04d, Kernel Commit d16046f, Kernel Commit dbdd0ca, and Kernel Commit e5052f2.

Detection Methods for CVE-2026-98756

Indicators of Compromise

  • Kernel oops or panic messages containing cdns3_pci_probe+0xa4/0x300 in the call trace
  • NULL pointer dereference traces during PCI probe, following local_pci_probe, pci_call_probe, and __driver_attach frames
  • Boot-time failures or hangs on hardware equipped with Cadence USBSS two-function PCI devices

Detection Strategies

  • Scan running kernels and distribution package versions for builds predating the fix commits referenced in the upstream advisories
  • Audit dmesg and persistent crash logs (/var/log/kern.log, kdump, pstore) for repeated cdns3 probe failures
  • Inventory assets containing Cadence USBSS controllers using lspci output to scope exposure

Monitoring Recommendations

  • Collect kernel crash telemetry from endpoints and servers into centralized logging to spot clustered cdns3_pci_probe oopses
  • Alert on repeated driver probe failures that correlate with USB subsystem initialization
  • Track vendor kernel advisories for backports of the referenced stable commits across supported distributions

How to Mitigate CVE-2026-98756

Immediate Actions Required

  • Apply the upstream Linux kernel patches that return -EPROBE_DEFER when pci_get_drvdata() yields NULL in cdns3_pci_probe
  • Update to a distribution kernel that incorporates the referenced stable commits
  • Reboot affected systems after patching to ensure the fixed probe path is loaded

Patch Information

The fix has been merged into the Linux stable trees. Refer to the authoritative commits: Kernel Commit 45b6064, Kernel Commit 549c04d, Kernel Commit d16046f, Kernel Commit dbdd0ca, and Kernel Commit e5052f2. The patch adds a NULL check and returns -EPROBE_DEFER so the kernel retries probing once the first PCI function finishes initialization.

Workarounds

  • Blacklist the cdns3_pci_wrap module on systems that do not require Cadence USBSS functionality until the kernel is patched
  • Disable the affected PCI device in platform firmware where feasible to prevent probe attempts
  • Pin boot order and module load sequences to reduce concurrent probing of the two PCI functions where supported

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.