ASoC: codecs: pcm512x: fix null-ptr dereference in pcm512x_overclock_xxx_put()
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:
ASoC: codecs: pcm512x: fix null-ptr dereference in pcm512x_overclock_xxx_put()
In the pcm512x chipset driver, pcm512x_overclock_xxx_put() is defined as a general mixer kcontrol instead of a DAPM kcontrol, so struct snd_soc_dapm_context must not be accessed via snd_soc_dapm_kcontrol_to_dapm().
This causes a NULL pointer dereference, so it must be modified to use snd_soc_component_to_dapm().
From the CVE record · Linux
The Linux kernel’s pcm512x codec driver can dereference a NULL pointer when its overclock mixer control handler accesses a DAPM context incorrectly. This can cause a crash; the input does not specify how an attacker could trigger it or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the pcm512x codec driver should check their kernel version; affected versions are not specified.