CVEvulnerability
CVE-2024-38388
7.8 HIGH
Official page ↗
- Status
- Modified
- Published
- 2024-06-21
- Last modified
- 2026-08-04
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 3.3 LOW — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
- Weaknesses
- CWE-401
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 configurations
• linux linux kernel (>= 6.0 < 6.1.93)
• linux linux kernel (>= 6.2 < 6.6.33)
• linux linux kernel (>= 6.7 < 6.9.4)
Related
Weakness · CWE (1)
- CWE-401 Missing Release of Memory after Effective Lifetime weakness
References
- https://git.kernel.org/stable/c/172811e3a557d8681a5e2d0f871dc04a2d17eb13 Patch
- https://git.kernel.org/stable/c/191dc1b2ff0fb35e7aff15a53224837637df8bff Patch
- https://git.kernel.org/stable/c/3291486af5636540980ea55bae985f3eaa5b0740 Patch
- https://git.kernel.org/stable/c/6e359be4975006ff72818e79dad8fe48293f2eb2 Patch
- https://git.kernel.org/stable/c/172811e3a557d8681a5e2d0f871dc04a2d17eb13 Patch
- https://git.kernel.org/stable/c/191dc1b2ff0fb35e7aff15a53224837637df8bff Patch
- https://git.kernel.org/stable/c/3291486af5636540980ea55bae985f3eaa5b0740 Patch
- https://git.kernel.org/stable/c/6e359be4975006ff72818e79dad8fe48293f2eb2 Patch