serial: 8250_mid: Fix NULL function pointer dereference on DNV/ICX-D/SNR platforms
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1cd54e217c6e2cdb794a897b2f855e13ffcee586 · < b2a3eeb57ba24f8a0e34a69d40adcc63e5b9ca56| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
serial: 8250_mid: Fix NULL function pointer dereference on DNV/ICX-D/SNR platforms
Commit b1b4efea05a5 ("serial: 8250_mid: Disable DMA for selected platforms") replaced the dnv_board setup and exit callbacks with PTR_IF(false, ...), which evaluates to NULL. However, the three call sites in mid8250_probe() and mid8250_remove() unconditionally dereference these function pointers without NULL checks, causing a NULL pointer dereference (kernel oops) on any Denverton (DNV), Ice Lake Xeon D (ICX-D/CDF), or Snowridge (SNR) platform.
Fix this by adding the missing NULL checks before calling the setup and exit callbacks.
From the CVE record · Linux
The Linux kernel's serial 8250_mid driver calls NULL setup or exit callbacks without checking them on Denverton, Ice Lake Xeon D, and Snowridge platforms. This can cause a kernel oops during device probe or removal. The input does not specify an attacker path, authentication requirements, or user interaction.
Teams running Linux kernels on Denverton (DNV), Ice Lake Xeon D (ICX-D/CDF), or Snowridge (SNR) platforms should check their exposure; affected versions were not provided.