Author: HanyiLuo, Yuqi Huo
CVE-2025-29632
the information for the vulnerability covered by CVE-2025-29632
Affected versions: 4.0.0 and previous versions
When free5gc processes the InitialUEMessage, it only checks whether the nASPDU reference is nil (i.e., whether it is a null pointer), but does not verify if the content of nASPDU is empty. This results in passing an empty byte array as a parameter when calling nas_security.DecodePlainNasNoIntegrityCheck(nASPDU.Value) during subsequent message parsing. In this function, accessing the NAS message security header fails due to the empty value, leading to an error and crash in the AMF.
poc.py an exploit script