AMF sends in-valid GUTI in registration accept #645
Merged
gab-arrobo merged 2 commits intoomec-project:mainfrom Mar 31, 2026
Merged
AMF sends in-valid GUTI in registration accept #645gab-arrobo merged 2 commits intoomec-project:mainfrom
gab-arrobo merged 2 commits intoomec-project:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR addresses an issue where an invalid UE-provided 5G-GUTI could overwrite a newly allocated (valid) ue.Guti, causing the AMF to send an invalid GUTI in Registration Accept.
Changes:
- Only updates
ue.Gutifrom the decoded Registration Request when the GUAMI derived from the UE’s GUTI matches the AMF’s served GUAMI. - Adds a warning log when the received GUAMI does not match.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Contributor
|
@ashithacdac, |
Contributor
Author
|
Changes have been incorporated, and the PR has been rebased. |
Signed-off-by: AshithaCDAC <ashitha@cdac.in>
Signed-off-by: AshithaCDAC <ashitha@cdac.in>
ce22f1c to
d6ed3b6
Compare
gab-arrobo
approved these changes
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue:
AMF sends an invalid GUTI in registration accept.
RCA:
During troubleshooting, it was observed that when the UE initiates a Registration Request with an invalid GUTI, the core attempts to fetch the AMF UE context using the received GUTI. Since the GUTI is invalid, the UE cannot be found in the core. As a result, the core creates a new AMF UE context and allocates a new valid GUTI for the UE.
However, during the handling of the Registration Request, when the IEs are decoded, the invalid GUTI received from the UE is set again to the UE context. This incorrectly replaces the valid GUTI that was newly assigned by the core. As a result, the core sends the invalid GUTI in the Registration Accept.
Fix:
Update GUTI only when GUAMI is valid.
Supporting Data:
Invalid-guti.zip