open5gs/tests/attach
Sukchan Lee 78c0af8764 [MME/AMF] Prevent UE context corruption on identity mismatch
An Attach or Registration Request can arrive on an S1/NG connection
already associated with another subscriber. The request was dispatched
through that association without checking its mobile identity.

The subsequent identity update could relabel the associated UE context
and migrate another subscriber's sessions into it. This either aborted
the MME/AMF when the target already owned sessions or silently assigned
the existing sessions to the wrong subscriber.

Re-resolve the identity before dispatch. If it differs from a registered
context or a context with sessions, release the access connection and
drop the request so the UE can retry on a newly resolved context.

Keep the existing migration behaviour for unfinished procedures without
sessions, and add regression tests for the affected MME and AMF paths.

Issues: #4739
2026-08-11 15:50:17 +09:00
..
abts-main.c [MME/AMF] Prevent UE context corruption on identity mismatch 2026-08-11 15:50:17 +09:00
auth-test.c merge main branch 2026-06-10 09:07:45 +09:00
crash-test.c mme: remove old IMSI hash entry before overwriting UE IMSI 2026-03-13 22:07:09 +09:00
emm-status-test.c [MME] Problem keep changing PDN-Type (#3209) 2024-05-18 14:01:00 +09:00
guti-test.c merge main branch 2026-06-10 09:07:45 +09:00
identity-test.c [MME/AMF] Prevent UE context corruption on identity mismatch 2026-08-11 15:50:17 +09:00
idle-test.c MME: handle EPS Bearer Context Status mismatch when active_flag=0 (#4112) 2025-10-16 21:46:38 +09:00
issues-test.c Merge branch 'main' into home-routed 2025-04-06 18:36:57 +09:00
meson.build [MME/AMF] Prevent UE context corruption on identity mismatch 2026-08-11 15:50:17 +09:00
reset-test.c [MME] Problem keep changing PDN-Type (#3209) 2024-05-18 14:01:00 +09:00
s1setup-test.c [MME] Implement ENBConfigurationUpdate (#2589) 2023-09-16 20:58:58 +09:00
simple-test.c Merge branch 'main' into home-routed 2025-04-06 18:36:57 +09:00
ue-context-test.c merge main branch 2026-06-10 09:07:45 +09:00