Junglewise Threat Intelligence

CVE-2024-42097: Linux Kernel ALSA emux insufficient validation in patch ioctl

CVE-2024-42097 · Severity: medium · CVSS 5.5 · Published 2024-07-29

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's sound subsystem (ALSA) specifically affecting the Emux synthesizer component. A local user could potentially exploit this flaw to cause a system crash or instability by providing malformed data through specific sound-related system calls. This primarily impacts the availability of the system.

Technical details

A vulnerability in the ALSA emux synthesizer driver (sound/synth/emux/soundfont.c) was caused by insufficient validation of user-supplied data in the patch loading ioctls. Specifically, the load_guspatch() function lacked a check to ensure the specified patch length matched the actual amount of data supplied, and load_data() had inconsistent validation of the main info block. An attacker with local access could exploit this by sending specially crafted ioctl requests to trigger out-of-bounds behaviors or kernel crashes. The fix introduces rigorous length checks and synchronizes validation logic between the load_data() and load_guspatch() functions.

Affected products

  • Linux Linux Kernel up to 4.19.317, 4.20 to 5.4.279, 5.5 to 5.10.221, 5.11 to 5.15.162, 5.16 to 6.1.97, 6.2 to 6.6.37, 6.7 to 6.9.8

Timeline

  • 2024-07-29: advisory: Initial disclosure of CVE-2024-42097
  • 2024-07-05: patched: Fixes committed to various stable kernel branches

References

Related threats