OpenAirInterface AMF can exhaust its SMF discovery path
CVE-2026-138052 affects OpenAirInterface oai-cn5g-amf up to 2.2.2. The flaw is in amf_sbi::discover_smf in amf_sbi.cpp. A malformed or unexpected discovery result leads to a denial of service. The issue has a public exploit and a CVSS 4.0 base score of 6.9.
The Access and Mobility Management Function depends on the Session Management Function for PDU session handling. Discovery is an internal control-plane operation, but it sits on a path that can be influenced by network-function state. If the AMF assumes that every discovery response contains a usable SMF object, a failed lookup can terminate or stall the process.
Failure handling in service-based architecture
5G core functions communicate through service-based interfaces. Discovery and selection involve filtering, preference, and state. A robust client treats no result, multiple results, malformed JSON, timeout, and inconsistent service identifiers as normal failure cases. It should retry with a bound, choose another candidate, and preserve enough diagnostic context to explain the failure.
The patch for this CVE should be reviewed as a state-handling fix, not only as a parser update. Operators need to know which NF discovery path failed, whether the AMF restarted, and how long session setup was unavailable.
Patching and verification
Apply the fix associated with commit 1eabe18bf0cb5a248e0429f4daac91dee51c8a43 to the affected release line.
Check whether the AMF has restarted during SMF discovery or registration events. Correlate those restarts with NRF changes, SMF upgrades, and network-function deregistration.
Segment the core service network from management and user networks. Limit which traffic can reach SBI endpoints and monitor for malformed discovery requests.
Test the patched AMF with empty discovery sets, delayed responses, duplicate SMF identifiers, and malformed JSON. Verify that it returns a controlled error and remains in service.
Scope
This CVE concerns availability of the AMF and its ability to discover the SMF. It does not establish subscriber data exposure. The main operational lesson is that network-function discovery needs explicit failure semantics because a control-plane lookup is part of the data path's availability chain.