ALSA: hda/conexant: Fix missing error check for jack detection
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7aeb259086487417f0fecf66e325bee133e8813a · < 1da5c73f3793b224696617a2a21def7500ba18d6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: hda/conexant: Fix missing error check for jack detection
In cx_probe(), the return value of snd_hda_jack_detect_enable_callback() is ignored. This function returns a pointer, and if it fails (e.g., due to memory allocation failure), it returns an error pointer which must be checked using IS_ERR().
If the registration fails, the driver continues to probe, but the jack detection callback will not be registered. This can lead to a kernel crash later when the driver attempts to handle jack events or accesses the uninitialized structure.
Check the return value using IS_ERR() and propagate the error via PTR_ERR() to the probe caller.
From the CVE record · Linux
The ALSA Conexant driver fails to check whether jack detection callback registration succeeded. If registration fails, such as during a memory allocation failure, later jack-event handling can crash the kernel. The input does not describe an attacker pathway, authentication requirement, or user interaction.
Engineers running Linux kernels with the ALSA Conexant driver should check whether their kernel includes the fix; affected versions are not specified.