CVE-2026-44318 free5GC: BSF concurrent PUT /nbsf-management/v1/subscriptions/{subId} crashes the BSF process via concurrent map read/write on Subscriptions
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, free5GC's BSF PUT /nbsf-management/v1/subscriptions/{subId} handler has an unsynchronized write on the global Subscriptions map. The handler first reads the map under RLock() via BSFContext.GetSubscription(subId), but if the subscription does not exist, ReplaceIndividualSubcription() writes back to the same map directly without taking the mutex (bsfContext.BsfSelf.Subscriptions[subId] = subscription). Under concurrent authenticated PUT load, one goroutine can read while another writes the map, which causes the Go runtime to abort the process with fatal error: concurrent map read and map write (Go runtime panics that come from concurrent map access bypass recover() and terminate the process). The BSF container exits with code 2 -- the entire BSF SBI surface goes down until restart. This vulnerability is fixed in 4.2.2.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| free5gc | < 4.2.2; = < 4.2.2 | 4.2.2 | Fixed |
| free5gc github.com/free5gc/bsf(Go) | < 1.0.2 | 1.0.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| free5gc github.com/free5gc/bsf(Go) | < 1.0.2 | 1.0.2 |
| free5gc | = < 4.2.2 | No fix listed |
| free5gc | < 4.2.2 | 4.2.2 |
References
- https://github.com/free5gc/free5gc/security/advisories/GHSA-27ph-8q4f-h7m7 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/free5gc/free5gc/issues/926 exploit issue-tracking
- https://github.com/free5gc/bsf/pull/7 issue-tracking patch
- https://github.com/free5gc/bsf/commit/277908565fd628d974a13ef562b81a8b7b519ffa patch
- github.com product
- github.com