Open5GS NRF and SMF crash paths show why core network fuzzing belongs in CI

Open5GS 2.8.0 contains two related availability defects. CVE-2026-138038 is a reachable assertion in the NRF function nrf_nnrf_handle_nf_discover in src/nrf/nnrf-handler.c. CVE-2026-138039 is a denial of service in the SMF function smf_ue_find_by_imsi in src/smf/context.c. Both are remotely reachable, both have public exploit information, and both have patches.

Taken together, the defects show why 5G core testing cannot stop at service startup. The NRF handles network-function discovery. The SMF handles session state keyed by subscriber identity. A malformed discovery request or a zero-length IMSI during GTP-C session creation should produce an error, not an assertion or crash.

Assertions are correct in development and dangerous in production

An assertion documents an invariant the programmer believes must hold. When that invariant is reachable from network input, the assertion becomes a denial-of-service instruction. Production handlers should validate external fields, choose a defined error response, increment a metric, and continue serving other subscribers.

The NRF and SMF fixes need separate validation because they exercise different interfaces. NRF testing should cover empty discovery criteria, unexpected network-function profiles, and inconsistent service names. SMF testing should cover missing or zero-length IMSIs, malformed GTP-C session messages, and duplicate session state.

Operator response

Apply the patch associated with dbc35e6aadeb3f6ef3e028a8b52ee3cf5920082e for the NRF issue and df92296dbf60c21a2dd09e74f4903cee995cd2c2 for the SMF issue. Confirm the commit is present in the build you deploy.

Track process exits, assertion logs, and restarts for both network functions. Correlate them with SBI and GTP-C traffic rather than treating every restart as an orchestration problem.

Limit SBI and GTP-C exposure to the mobile core network. Filter malformed messages at the edge where practical, but do not rely on a network filter as the only fix.

Add malformed-input cases to a continuous integration or pre-release lab. The test should verify the service's error response, process identity, and recovery time.

Limits

These CVEs describe availability impact. The records do not establish remote code execution or subscriber-data disclosure. The value of a combined review is operational: both defects sit on control-plane paths that determine whether the mobile core can continue handling subscribers.

References