tracing: Fix mmiotrace possible NULL dereferencing of hiter->dev
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f984b51e0779a6dd30feedc41404013ca54e5d05 · < 8464427e1c177809a9488a97dfa2807d9dcf323b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tracing: Fix mmiotrace possible NULL dereferencing of hiter->dev
If the mmio_pipe_open() fails to find a PCI device, the hiter->dev will be assigned to NULL. The mmiotrace read() function dereferences the hiter->dev if hiter exists.
Change the test of the read to not only check hiter being NULL, but also the hiter->dev before dereferencing it.
From the CVE record · Linux
The Linux kernel's mmiotrace read function can dereference a NULL PCI device pointer if mmio_pipe_open() fails to find a PCI device. A subsequent read can trigger the dereference; the input does not specify whether an attacker can reach this condition, or any authentication or user-interaction requirements.
Engineers running Linux kernels with mmiotrace should check their builds; affected versions are not specified.