accel/qaic: Fix bootlog initialization ordering
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 |
|
|
6.12.556.17.56.18In the Linux kernel, the following vulnerability has been resolved:
accel/qaic: Fix bootlog initialization ordering
As soon as we queue MHI buffers to receive the bootlog from the device, we could be receiving data. Therefore all the resources needed to process that data need to be setup prior to queuing the buffers.
We currently initialize some of the resources after queuing the buffers which creates a race between the probe() and any data that comes back from the device. If the uninitialized resources are accessed, we could see page faults.
Fix the init ordering to close the race.
From the CVE record · Linux
The Linux kernel's accel/qaic driver queues buffers to receive a device bootlog before all resources needed to process it are initialized. If data arrives during probe, the driver can access uninitialized resources and cause page faults. The input does not specify an attacker access requirement or user interaction.
Engineers running Linux kernels with the accel/qaic driver should check their kernel versions; affected versions are not specified.