Race Condition in free5GC AUSF Authentication Context
An authentication state race condition in free5GC AUSF allows an attacker to perform a targeted denial-of-service by overwriting authentication contexts keyed by SUPI, preventing successful subscriber authentication.
CVE search metadata
CVE search record: CVE-2026-55784. Severity: high. CVSS: 7.5. KEV: no. Product: AUSF (<= 1.4.4). Brief: Race Condition in free5GC AUSF Authentication Context. Brief link: https://feed.craftedsignal.io/briefs/2026-08-free5gc-ausf-race/
The free5GC AUSF component (v1.4.4 and earlier) is vulnerable to a race condition that allows an attacker to selectively disrupt 5G authentication procedures for specific subscribers. The vulnerability stems from the use of a global sync.Map to store AusfUeContext objects, where the subscriber's Permanent Identifier (SUPI) serves as the sole lookup key. The implementation lacks logic to detect concurrent authentication sessions for the same subscriber, allowing subsequent requests to unconditionally overwrite existing contexts.
An attacker with network-level access to the Service Based Architecture (SBA) or the SBI/N12 interface can flood the AUSF with concurrent POST /nausf-auth/v1/ue-authentications requests for a targeted SUPI. By replacing the active authentication context mid-procedure, the attacker ensures that the legitimate EAP-AKA' response from the user is validated against mismatched session material (specifically K_aut and XRES). This causes integrity check failures and prevents the subscriber from completing authentication, effectively denying the service to the target.
Attack Chain
- The legitimate subscriber initiates a 5G authentication procedure.
- The AUSF processes the initial request and stores the authentication context (
ctx_LEGIT) in the globalUePoolmap under the target's SUPI key. - The attacker identifies a target SUPI/SUCI and initiates a flood of concurrent
POST /nausf-auth/v1/ue-authenticationsrequests for that same identity. - Each malicious request causes the AUSF to overwrite the previous entry in the
UePoolmap with a new context (ctx_ATTACK). - The target subscriber receives an authentication challenge and computes a valid EAP-AKA' response based on
ctx_LEGIT. - The subscriber transmits the response to the AUSF
/eap-sessionendpoint. - The AUSF retrieves the current (overwritten) context (
ctx_ATTACK) from the map. - The integrity check (AT_MAC verification) fails because the response was signed using parameters from
ctx_LEGITwhile the AUSF validates againstctx_ATTACK, resulting in a service denial.
Impact
Successful exploitation results in a targeted denial of authentication service for any selected subscriber in a 5G network running vulnerable versions of free5GC. While the AUSF service remains operational and no sensitive authentication material is leaked, the impacted subscriber is unable to connect to the network as long as the attacker maintains the request flood. The scope of impact is limited to those with direct or proxied access to the AUSF internal SBI/N12 interface.
Recommendation
- Upgrade free5GC AUSF to a version that addresses the context management vulnerability (patch status for v1.4.4+).
- Implement a unique session identifier in the
AusfUeContextand ensure authentication state lookups use this identifier rather than the SUPI. - Deploy logic to check for ongoing authentication procedures for a specific SUPI and reject concurrent attempts with
HTTP 409 Conflict. - Enforce strict mTLS and OAuth2 requirements on all internal SBI traffic to prevent unauthorized access to the AUSF interface.
- Enable rate limiting on authentication request endpoints to mitigate the impact of flooding attacks.
Immediate actions
Upgrade free5GC AUSF components to a patched version.
Mitigations
Enforce SBI access controls including mTLS and OAuth2.
Lack of SBI isolation