ASoC: rt711-sdca: fix kernel NULL pointer dereference when IO error
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 |
|
|
5.15.565.18.135.19In the Linux kernel, the following vulnerability has been resolved:
ASoC: rt711-sdca: fix kernel NULL pointer dereference when IO error
The initial settings will be written before the codec probe function. But, the rt711->component doesn't be assigned yet. If IO error happened during initial settings operations, it will cause the kernel panic. This patch changed component->dev to slave->dev to fix this issue.
From the CVE record · Linux
The Linux kernel's rt711-sdca codec can dereference a NULL pointer if an I/O error occurs while initial settings are written before codec probe. This can cause a kernel panic; the input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with the rt711-sdca codec should check their versions; affected versions are not specified.