CVE-2023-37025

6.5 MEDIUM

📋 TL;DR

A null pointer dereference vulnerability in Magma's Mobile Management Entity (MME) allows network-adjacent attackers to crash the MME service by sending a malformed S1AP Reset packet missing the ResetType field. This affects Magma versions up to 1.8.0, potentially disrupting cellular network connectivity for users served by the affected MME.

💻 Affected Systems

Products:
  • Magma (Open-source mobile core network solution)
Versions: All versions <= 1.8.0
Operating Systems: Linux-based systems running Magma
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems with the MME component enabled and exposed to network-adjacent attackers.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete MME service crash leading to denial of service for all users in the affected cellular network area, requiring manual restart of the MME service.

🟠

Likely Case

Service disruption affecting a subset of users as the MME crashes and potentially restarts automatically, causing temporary connectivity loss.

🟢

If Mitigated

Minimal impact with proper network segmentation and monitoring allowing quick detection and recovery from crashes.

🌐 Internet-Facing: LOW - Attack requires network adjacency to the MME, not direct internet exposure.
🏢 Internal Only: HIGH - Network-adjacent attackers within the cellular core network can exploit this vulnerability.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires sending a specifically crafted S1AP Reset packet, which is relatively simple for attackers with network access to the MME.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: v1.9 (specifically commit 08472ba98b8321f802e95f5622fa90fec2dea486)

Vendor Advisory: https://cellularsecurity.org/ransacked

Restart Required: Yes

Instructions:

1. Update Magma to version 1.9 or later. 2. Apply commit 08472ba98b8321f802e95f5622fa90fec2dea486 if using source build. 3. Restart the MME service after patching.

🔧 Temporary Workarounds

Network Segmentation

linux

Restrict access to MME S1AP interface to only trusted network elements

iptables -A INPUT -p sctp --dport 36412 -s trusted_ip_range -j ACCEPT
iptables -A INPUT -p sctp --dport 36412 -j DROP

🧯 If You Can't Patch

  • Implement strict network access controls to limit S1AP interface exposure
  • Deploy monitoring and alerting for MME service crashes with automated restart capabilities

🔍 How to Verify

Check if Vulnerable:

Check Magma version: if <= 1.8.0 and MME is running, system is vulnerable

Check Version:

magma version | grep -i version

Verify Fix Applied:

Verify Magma version is >= 1.9 or includes commit 08472ba98b8321f802e95f5622fa90fec2dea486

📡 Detection & Monitoring

Log Indicators:

  • MME service crash logs
  • Segmentation fault errors in MME logs
  • Unexpected MME restarts

Network Indicators:

  • Malformed S1AP Reset packets missing ResetType field
  • Unusual S1AP traffic from unexpected sources

SIEM Query:

source="magma_logs" AND ("segmentation fault" OR "null pointer" OR "MME crash")

🔗 References

📤 Share & Export