dmaengine: idxd: Fix potential null dereference on pointer status
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: idxd: Fix potential null dereference on pointer status
There are calls to idxd_cmd_exec that pass a null status pointer however a recent commit has added an assignment to *status that can end up with a null pointer dereference. The function expects a null status pointer sometimes as there is a later assignment to *status where status is first null checked. Fix the issue by null checking status before making the assignment.
Addresses-Coverity: ("Explicit null dereferenced")
From the CVE record · Linux
The Linux kernel's dmaengine idxd code can dereference a null status pointer when idxd_cmd_exec is called without one. The input does not specify how an attacker could trigger this, whether authentication or user interaction is required, or the resulting impact.
Engineers running Linux kernels with the dmaengine idxd code should check their versions; affected versions are not specified.