CVE-2024-42298

5.5 MEDIUM

📋 TL;DR

This CVE describes a NULL pointer dereference vulnerability in the Linux kernel's fsl_qmc_audio driver. If devm_kasprintf() fails and returns NULL, the driver doesn't check this value before using it, potentially causing a kernel panic or system crash. This affects Linux systems using the Freescale QMC audio subsystem.

💻 Affected Systems

Products:
  • Linux kernel with fsl_qmc_audio driver
Versions: Linux kernel versions containing the vulnerable code before the fix commits
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems with Freescale QMC audio hardware support enabled in kernel configuration

📦 What is this software?

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic leading to system crash and denial of service, potentially requiring physical access to restart the system.

🟠

Likely Case

System crash or instability when the audio driver encounters memory allocation failures during device initialization or operation.

🟢

If Mitigated

Minor system instability that may cause audio subsystem failures but doesn't compromise the entire system.

🌐 Internet-Facing: LOW - This is a local kernel driver vulnerability requiring local access or specific hardware interaction.
🏢 Internal Only: MEDIUM - Could be exploited by local users or through other vulnerabilities to cause denial of service on affected systems.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: NO
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires local access or ability to trigger the specific memory allocation failure scenario

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Kernel versions containing commits af466037fa2b263e8ea5c47285513d2487e17d90, b4205dfcfe96182118e54343954827eda51b2135, or e62599902327d27687693f6e5253a5d56583db58

Vendor Advisory: https://git.kernel.org/stable/c/af466037fa2b263e8ea5c47285513d2487e17d90

Restart Required: Yes

Instructions:

1. Update Linux kernel to version containing the fix commits. 2. Rebuild kernel if compiling from source. 3. Reboot system to load patched kernel.

🔧 Temporary Workarounds

Disable fsl_qmc_audio driver

linux

Remove or blacklist the vulnerable kernel module if not needed

echo 'blacklist fsl_qmc_audio' >> /etc/modprobe.d/blacklist.conf
rmmod fsl_qmc_audio

🧯 If You Can't Patch

  • Restrict local user access to systems with vulnerable kernel
  • Monitor system logs for kernel panic events related to audio subsystem

🔍 How to Verify

Check if Vulnerable:

Check if fsl_qmc_audio module is loaded: lsmod | grep fsl_qmc_audio

Check Version:

uname -r

Verify Fix Applied:

Check kernel version contains fix commits: uname -r and verify against patched versions

📡 Detection & Monitoring

Log Indicators:

  • Kernel panic messages
  • NULL pointer dereference errors in dmesg
  • Audio subsystem crash logs

Network Indicators:

  • None - local vulnerability only

SIEM Query:

source="kernel" AND ("NULL pointer" OR "kernel panic" OR "fsl_qmc_audio")

🔗 References

📤 Share & Export