The Linux Foundation Magma Buffer Overflow Vulnerability in PDN Address Decoding Function Allows Denial-of-Service

Vulnerability

A buffer overflow vulnerability has been identified in The Linux Foundation Magma version 1.8.0 and prior. The issue arises in the 'decode_pdn_address' function within the PDNAddress.cpp file, where improper handling of crafted NAS packets can lead to a denial-of-service condition. This vulnerability is present in the 5G core implementation of Magma.

Impact

Exploitation of this vulnerability causes a denial-of-service condition by disrupting cellular communications at a city-wide level, as the vulnerability can be exploited by sending a single crafted NAS packet over the network.

Reproduction

To reproduce this vulnerability, send an 'Initial UE Message' S1AP packet containing a malformed PDN Address within the NAS payload to the Magma AMF. This can be done by establishing a connection as an unauthenticated user and transmitting the crafted packet over the network.

Remediation

Users can upgrade to Magma version 1.9 or later, where this vulnerability has been fixed.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
1.4
impact
2.5
exploitability
9.1
remediation
7.7
relevance
0.0
threat
6.4
urgency
2.9
incentive
10.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.