← Back to Pull requests

nrUE NAS: decode the IEs of the Service Accept #983

Open
unknown opened this pull request with 149 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 04, 2026 13:15 UTC
Author

On develop the UE never decodes the IEs of a Service Accept:

  • handle_service_accept() passed the whole NAS PDU to decode_fgs_service_accept(), which expects only the message body, so decoding stopped at the first header octet (0x7e). It now skips the security protected header, if any, and the 5GMM header first, as handle_service_reject() does (from #783).

  • decode_pdu_session_ie() checked for 4 octets after the IEI instead of 3 (length and 2 content octets), rejecting a PDU session status or reactivation result IE at the end of the message (OAI CN5G places reactivation result last).
  • Also logs each reactivation error cause instead of repeating the first, and frees the decoded message.

    Testing:

  • test_service_accept() also decodes its encoded message cut after the PDU session reactivation result, so that it is the last IE (fails without the fgmm_lib.c change).

  • The header skipping in handle_service_accept() gives the expected IEs on the 18-octet protected Service Accept from CI (7e 02 3a b9 45 b3 03 7e 00 4e 50 02 02 00 26 02 00 00).

  • nr_nas_msg.c and nas_lib_test build without warnings; clang-format is clean.
  • Could a maintainer add the nrUE label?

    Diff: 149 lines (+111 / -38) across 1 files Reviewer: antcybersec Review duration: 18836m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.33) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 149 lines diff across 1 files
    0.33
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.300
    Real PR Conversation Timeline
    1 comments
    "Review active on #983"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 33.0% (LOW) · Higher = larger blast radius
    33.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.6% · Safe to merge
    17.6%