CVE-2024-50073

7.8 HIGH

📋 TL;DR

A use-after-free vulnerability in the Linux kernel's GSM multiplexer (n_gsm) allows attackers to potentially execute arbitrary code or cause denial of service. The vulnerability occurs when multiple threads access freed memory through ioctl operations, affecting systems using GSM modem functionality.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Versions before the fix commits (specific versions vary by distribution)
Operating Systems: Linux distributions with vulnerable kernel versions
Default Config Vulnerable: ✅ No
Notes: Only vulnerable if GSM modem functionality (n_gsm module) is loaded and used.

📦 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 →

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 →

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

Local privilege escalation to kernel-level code execution, potentially leading to full system compromise.

🟠

Likely Case

Kernel panic or system crash causing denial of service.

🟢

If Mitigated

No impact if GSM modem functionality is disabled or systems are properly patched.

🌐 Internet-Facing: LOW - Requires local access to the system.
🏢 Internal Only: MEDIUM - Local attackers or malicious users could exploit this vulnerability.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploit requires local access and knowledge of GSM modem operations. The KASAN report shows a proof-of-concept exists.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Kernel versions with commits 0eec592c6a7460ba795d7de29f3dc95cb5422e62 or later

Vendor Advisory: https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

Restart Required: Yes

Instructions:

1. Update Linux kernel to patched version. 2. Reboot system. 3. Verify kernel version is updated.

🔧 Temporary Workarounds

Disable GSM modem functionality

linux

Unload the n_gsm kernel module if not needed

sudo rmmod n_gsm

Blacklist n_gsm module

linux

Prevent n_gsm module from loading at boot

echo 'blacklist n_gsm' | sudo tee /etc/modprobe.d/blacklist-n_gsm.conf

🧯 If You Can't Patch

  • Restrict local user access to systems with GSM modem functionality
  • Implement strict access controls and monitoring for GSM modem operations

🔍 How to Verify

Check if Vulnerable:

Check if n_gsm module is loaded: lsmod | grep n_gsm

Check Version:

uname -r

Verify Fix Applied:

Check kernel version against patched versions from vendor advisories

📡 Detection & Monitoring

Log Indicators:

  • Kernel panic logs
  • KASAN reports mentioning gsm_cleanup_mux
  • System crashes related to n_gsm

Network Indicators:

  • Unusual GSM modem activity from unauthorized users

SIEM Query:

Search for kernel logs containing 'gsm_cleanup_mux' or 'n_gsm' with error/panic indicators

🔗 References

📤 Share & Export