CVE-2024-38388

ALSA: hda/cs_dsp_ctl: Use private_free for control cleanup

State
Published
Severity
7.8 High
Published
Jun 21, 2024
Updated
Aug 5, 2026
Reserved
Jun 21, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.13.3 LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:LCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 3233b978af23f11b4ad4f7f11a9a64bd05702b1f to before 191dc1b2ff0fb35e7aff15a53224837637df8bffAffected
  • 3233b978af23f11b4ad4f7f11a9a64bd05702b1f to before 6e359be4975006ff72818e79dad8fe48293f2eb2Affected
  • 3233b978af23f11b4ad4f7f11a9a64bd05702b1f to before 3291486af5636540980ea55bae985f3eaa5b0740Affected
  • 3233b978af23f11b4ad4f7f11a9a64bd05702b1f to before 172811e3a557d8681a5e2d0f871dc04a2d17eb13Affected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 6.1.93 through 6.1.*Not affected
  • 6.6.33 through 6.6.*Not affected
  • 6.9.4 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.