Skip to content

Instantly share code, notes, and snippets.

Affected Version: UERANSIM ≤ 3.3.0

Vendor: UERANSIM

Vulnerability Files:

  • src/lib/nas/encode.cpp

Description:

The vulnerability is caused using a series of RLS message, which includes one RLS heartbeat message, RRC setup request message and RRC setup complete message. The malformed RRC Setup complete meessage carries an unknown NAS message type which causes an uncaught exception in DecodePlainMmMessage() function and crashes the nr-gnb.

@centauruszzz
centauruszzz / UERANSIM_2.md
Last active August 7, 2026 03:22
Null Pointer Dereference in UERANSIM nr-gnb

Affected Version: UERANSIM ≤ 3.3.0

Vendor: UERANSIM

Vulnerability Files:

  • src/gnb/rrc/handler.cpp

Description:

The vulnerability is caused using a series of RLS message, which includes one RLS heartbeat message and one ULInformationTransfer message. The malformed ULInformationTransfer meessage is decoded as the dedicatedNAS_Message set to NULL and the receiveUplinkInformationTransfer function dereferences it without a NULL check, crashing the gNB with a SIGSEGV. The attacker can launch a remote attack using this RLS message sequence and cause Denial-of-Service of nr-gnb.

@centauruszzz
centauruszzz / UERANSIM_1.md
Last active August 6, 2026 12:31
Null Pointer Dereference in UERANSIM nr-gnb ≤ 3.0.0

Affected Version: UERANSIM ≤ 3.3.0

Vendor: UERANSIM

Vulnerability Files:

  • src/lib/rls/rls_pdu.cpp

Description:

The RLS decoding layer of nr-gnb lacks a non-empty check (in DecodeRlsMessage function in rls_pdu.cpp), it only verifies that pduLength <= 16384 and remainingSize > 0. As a result, it accepts the message and produces an empty OctetString of length 0. The upper GTP Layer performs a read at address 0x0, resulting in a SIGSEGV(signal 11).The attacker can launch a remote Denial-of-Service attack to nr-gnb using malformed RLS message.

Open5GS AMF Heap Buffer Overflow in ogs_nas_5gs_decode_gprs_timer_2()

Product Information

Field Value
Product Name Open5GS
Component AMF (Access and Mobility Management Function)
Affected File lib/nas/5gs/ies.c, lib/nas/5gs/decoder.c
Function ogs_nas_5gs_decode_gprs_timer_2(), ogs_nas_5gs_decode_service_accept()
@centauruszzz
centauruszzz / Open5GS_1.md
Last active June 30, 2026 08:48
Memory Leakage in Open5GS AMF

Open5GS AMF Memory Leak in ngap_send_to_nas()

Product Information

Field Value
Product Name Open5GS
Component AMF (Access and Mobility Management Function)
Affected File src/amf/ngap-path.c
Function ngap_send_to_nas()