pds_core: make wait_context part of q_info
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:
pds_core: make wait_context part of q_info
Make the wait_context a full part of the q_info struct rather than a stack variable that goes away after pdsc_adminq_post() is done so that the context is still available after the wait loop has given up.
There was a case where a slow development firmware caused the adminq request to time out, but then later the FW finally finished the request and sent the interrupt. The handler tried to complete_all() the completion context that had been created on the stack in pdsc_adminq_post() but no longer existed. This caused bad pointer usage, kernel crashes, and much wailing and gnashing of teeth.
From the CVE record · Linux
The Linux kernel’s pds_core driver can use an invalid completion context after an admin queue request times out and firmware later sends an interrupt. This can crash the kernel. The input does not establish whether an attacker can trigger the condition or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the pds_core driver should check their versions; affected versions are not specified.