open5gs/tests
Sukchan Lee ad3939296d
Some checks failed
Meson Continuous Integration / Build and Test on Ubuntu Latest (push) Has been cancelled
[nas] Reject malformed IMSIs across 4G and 5G paths
TS 23.003 limits an IMSI to 15 decimal digits, but several identity
conversion paths accepted overlong or non-decimal values.

Validate null-scheme SUCI MSINs before constructing SUCI and SUPI
strings. Centralize SUCI validation in the NAS conversion helper and
propagate failures through AMF Registration Request and Identity
Response handling with 5GMM cause 95. Keep detailed error logging at
each failure stage.

Validate MCC, MNC and MSIN components when reconstructing an IMSI SUPI
in the SBI layer, and improve UDM logging when SUCI conversion fails.

Validate EPS IMSIs before modifying MME context or hash state. Reject
non-decimal BCD values and invalid IMSI lengths in Attach Request and
Identity Response handling.

Also validate the peer-controlled IMSI IE in Gn SGSN Context Request
and Response messages. An 8-octet TBCD value without a filler nibble
decodes to 16 digits plus a trailing NUL, which overflowed the previous
16-byte stack buffer before validation. Use a 17-byte temporary decode
buffer, reject IMSI IEs longer than 8 octets, and continue enforcing the
15-digit IMSI limit after conversion.

Update registration tests to normalize MSIN padding only for
null-scheme SUCIs, preserve protected scheme output, assert successful
test SUCI conversion, record returned GMM causes, and verify rejection
of an overlong SUCI.
2026-07-18 16:28:00 +09:00
..
310014 [MME] Problem keep changing PDN-Type (#3209) 2024-05-18 14:01:00 +09:00
af merge main branch 2026-06-10 09:07:45 +09:00
app [AMF] Fix UE context transfer when only NRF is client (#3880) 2025-05-31 20:51:06 +09:00
attach merge main branch 2026-06-10 09:07:45 +09:00
common [nas] Reject malformed IMSIs across 4G and 5G paths 2026-07-18 16:28:00 +09:00
core [tests] fix compiler warnings when used with latest GCC 2025-11-13 06:40:18 +09:00
crypt merge main branch 2026-06-10 09:07:45 +09:00
csfb MME: handle EPS Bearer Context Status mismatch when active_flag=0 (#4112) 2025-10-16 21:46:38 +09:00
fuzzing OSS-Fuzz: Create new fuzzers targets sbi processing 2026-06-25 07:49:17 +09:00
handover amf/ngap: use ogs_warn for missing RAN UE context 2026-03-15 20:09:43 +09:00
non3gpp gtp: update TLV definitions to Rel-19 2026-06-17 13:14:13 +09:00
registration [nas] Reject malformed IMSIs across 4G and 5G paths 2026-07-18 16:28:00 +09:00
sctp [SCTP] Support setting local address (#3344) 2024-12-23 21:16:15 +09:00
slice [AMF,SMF] Prevent mapped HPLMN SST to always be set 2025-01-11 20:22:46 +09:00
transfer [AMF] Fix UE context transfer when only NRF is client (#3880) 2025-05-31 20:51:06 +09:00
unit merge main branch 2026-06-10 09:07:45 +09:00
volte [mme] Use bitmap-based EBI management to avoid bearer allocation crash 2026-02-02 22:22:56 +09:00
vonr smf: Handle QoS flow description delete 2026-07-10 10:07:09 +09:00
meson.build [AMF] Registation status update and tests 2024-09-03 22:09:56 +09:00