Description
Free5GC is an open-source Linux Foundation project for 5th generation (5G) mobile core networks. Versions prior to 1.4.2 are vulnerable to procedure panic caused by Nil Pointer Dereference in the /sdm-subscriptions endpoint. A remote attacker can cause the UDM service to panic and crash by sending a crafted POST request to the /sdm-subscriptions endpoint with a malformed URL path containing path traversal sequences (../) and a large JSON payload. The DataChangeNotificationProcedure function in notifier.go attempts to access a nil pointer without proper validation, causing a complete service crash with "runtime error: invalid memory address or nil pointer dereference". Exploitation would result in UDM functionality disruption until recovery by restart. This issue has been fixed in version 1.4.2.
Problem types
CWE-478: Missing Default Case in Multiple Condition Expression
Product status
References
github.com/...ree5gc/security/advisories/GHSA-7g27-v5wj-jr75
github.com/free5gc/free5gc/issues/781
github.com/free5gc/udm/pull/78
github.com/...ommit/65d7070f4bfd016864cbbaefbd506bbc85d2fa92