CVE-2024-38388
JSON

7.8high

ALSA: hda/cs_dsp_ctl: Use private_free for control cleanup

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: hda/cs_dsp_ctl: Use private_free for control cleanup Use the control private_free callback to free the associated data block. This ensures that the memory won't leak, whatever way the control gets destroyed. The original implementation didn't actually remove the ALSA controls in hda_cs_dsp_control_remove(). It only freed the internal tracking structure. This meant it was possible to remove/unload the amp driver while leaving its ALSA controls still present in the soundcard. Obviously attempting to access them could cause segfaults or at least dereferencing stale pointers.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 3233b978af23f11b4ad4f7f11a9a64bd05702b1f before 191dc1b2ff0fb35e7aff15a53224837637df8bff, from 3233b978af23f11b4ad4f7f11a9a64bd05702b1f before 6e359be4975006ff72818e79dad8fe48293f2eb2, from 3233b978af23f11b4ad4f7f11a9a64bd05702b1f before 3291486af5636540980ea55bae985f3eaa5b0740, from 3233b978af23f11b4ad4f7f11a9a64bd05702b1f before 172811e3a557d8681a5e2d0f871dc04a2d17eb13, 6.0
Not affected: before 6.0, from 6.1.93 up to 6.1.*, from 6.6.33 up to 6.6.*, from 6.9.4 up to 6.9.*, from 6.10 up to *
CVE List
linux linux_kernelfrom 6.0 before 6.1.93, from 6.2 before 6.6.33, from 6.7 before 6.9.4NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP3.3low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ALSA: hda/cs_dsp_ctl: Use private_free for control cleanup Use the control private_free callback to free the associated data block. This ensures that the memory won't leak, whatever way the control gets destroyed. The original implementation didn't actually remove the ALSA controls in hda_cs_dsp_control_remove(). It only freed the internal tracking structure. This meant it was possible to remove/unload the amp driver while leaving its ALSA controls still present in the soundcard. Obviously attempting to access them could cause segfaults or at least dereferencing stale pointers.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ALSA: hda/cs_dsp_ctl: use private_free para la limpieza del control. Use la devolución de llamada de control private_free para liberar el bloque de datos asociado. Esto garantiza que la memoria no se pierda, sea cual sea la forma en que se destruya el control. La implementación original en realidad no eliminó los controles ALSA en hda_cs_dsp_control_remove(). Sólo liberó la estructura de seguimiento interna. Esto significaba que era posible quitar/descargar el controlador del amplificador dejando sus controles ALSA todavía presentes en la tarjeta de sonido. Obviamente, intentar acceder a ellos podría provocar errores de segmentación o al menos eliminar la referencia a punteros obsoletos.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-38388 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-38388 changed 2026-08-04Public domain