ASoC: xilinx: formatter_pcm: pass aud_drv_data to irq handlers
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6f6c3c36f0917be24587eeba818ab4fdfcb5465a · < f51a540b14eecb8667bbe450192318271b87631e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: xilinx: formatter_pcm: pass aud_drv_data to irq handlers
The irq handlers take a struct device pointer and call dev_get_drvdata() to obtain the driver data. However, the driver data is only set at the end of probe, after devm_request_irq(), so an interrupt taken in between causes the handlers to pass a NULL pointer to readl() and crash.
Pass the private data directly as the devm_request_irq() argument instead of the device pointer, matching what the handlers expect.
From the CVE record · Linux
In the Linux kernel's ASoC Xilinx formatter PCM driver, an interrupt during probe can reach a handler before driver data is set, causing a NULL-pointer crash. The input does not establish whether an attacker can trigger the interrupt or whether access or user interaction is required.
Engineers running Linux kernels with the ASoC Xilinx formatter PCM driver should check their affected versions; none are specified in the input.