CVE-2026-102945
## Summary HandlePathSwitchRequest guards the UESecurityCapabilities IE for presence but never for length, and the extensible APER type silently yields an empty bit string, so six unguarded index-zero reads panic on an unrecovered goroutine and terminate the AMF. The AMF is the control-plane entry point for a 5G core, so terminating it drops mobility management for every subscriber. Confirmed at HEAD daed5a2 (present in v3.1.5). ## The defect ngap/handler.go: ```go if uESecurityCapabilities != nil { // line 3267, PRESENCE only amfUe.UESecurityCapability.SetEA1_128_5G((uESecurityCapabilities.NRencryptionAlgorithms.Value.Bytes[0] & 0x80) >> 7) // line 3268 ... (five more Bytes[0] reads, lines 3269-3273) } ``` Six index-zero reads, all guarded only by a nil check on the containing IE. Why the bit string can be empty: the field is declared `aper:"sizeExt,sizeLB:16,sizeUB:16"`. Because the type is EXTENSIBLE, parseBitString DISCARDS the SIZE(16) constraint when the peer sets the extension bit, and then `if rawLength == 0 { return bitString, nil }` returns a bit string with an empty Bytes slice and NO ERROR. So the decoder hands the handler a well-formed, error-free value whose Bytes has length zero, and the handler indexes it. The length guarantee the maintainers rely on comes from an ASN.1 SIZE constraint that the encoder rules legitimately waive on the extension path. ## Verification Proven dynamically, not by reading. Eight crafted bytes (40 00 80 00 80 00 80 00) decode cleanly through the REAL APER decoder, and the handler's exact expression then panics with "index out of range [0] with length 0". Panic discipline was checked first: the NGAP receive path has NO recover() (the only recover in the package is on SendToRan, the transmit path), so this is a genuine process kill and the AMF terminates. Attacker model, stated conservatively: a rogue or compromised gNB on the N2 in
Properties
- Severity
- medium
- Summary
- Aether Project amf: panic on an unrecovered NGAP goroutine
- Nvd fetched at
- 2026-11-22T12:30:49.958423+00:00
- Epss score
- 0.00361
- Cvss severity
- MEDIUM
- Cvss score
- 4.9
- Retrieved at
- 2026-11-22T12:32:25+00:00
- Ghsa published
- 2026-11-20T00:20:38Z
- Source url
- https://github.com/advisories/GHSA-v6w5-38cf-pcv8
- Ghsa updated
- 2026-11-20T00:20:39Z
- Ghsa id
- GHSA-v6w5-38cf-pcv8
- Last source
- FIRST EPSS
- Score
- 4.9
- Cvss version
- 3.1
- Cve id
- CVE-2026-102945
- Cvss vector
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- First seen by Signal
- 2026-11-19T23:31:53+00:00
- Name
- CVE-2026-102945
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
Related Entities (5)
HAS_WEAKNESS (3)
AFFECTS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph