Free5GC denial of service via incomplete cleanup in PCF
Affects Free5GC PCF when an AM policy creation request fails, such as when UDR policy-data retrieval fails. No fixed version is listed; the fix is commit eba1c48.
- Exploited
- No known exploitation
- Fix
- Vendor patch: eba1c48
- Who is exposed
- Not reported
Summary
The Free5GC PCF component has a flaw in its PostPoliciesProcedure function, where manipulating the supi argument leaves cleanup incomplete. A remote attacker can trigger this without logging in, with a low impact on availability.
Written by a model
Original description
A vulnerability was detected in Free5GC up to 4.3.0. The impacted element is the function PostPoliciesProcedure of the file internal/sbi/processor/ampolicy.go of the component PCF. Performing a manipulation of the argument supi results in incomplete cleanup. The attack is possible to be carried out remotely. The exploit is now public and may be used. The patch is named eba1c481300df4e7ac8000c99d0cc36dd73b941e. Applying a patch is the recommended action to fix this issue.
Who should check
Operators and teams running the free5gc PCF with AM policy creation that retrieves policy data from a UDR.
“Previously, failed AM policy creation requests could leave newly allocated UE contexts in UePool when UDR policy-data retrieval failed.”
What to do
Apply the vendor's patch: eba1c48.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-138036 (Free5GC PCF ampolicy.go PostPoliciesProcedure cleanup), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-138036 (entry last updated 2026-11-28):
Affected:
- n/a Free5GC: versions 4.0, 4.1, 4.2, 4.3.0
Vendor patches: eba1c48 (source: https://github.com/free5gc/pcf/commit/eba1c481300df4e7ac8000c99d0cc36dd73b941e). Check each asset for these patch ids, not only its version.
Conditions (all must be true for the bug to be hit):
- An AM policy creation request fails, such as when UDR policy-data retrieval fails. (source: https://github.com/free5gc/pcf/pull/93)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-138036 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-138036 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/free5gc/pcf/pull/93
- https://github.com/free5gc/pcf/commit/eba1c481300df4e7ac8000c99d0cc36dd73b941e
- https://vuldb.com/vuln/444958
- https://vuldb.com/vuln/444958/cti
- https://vuldb.com/cve/CVE-2026-138036
- https://vuldb.com/submit/1068089
- https://github.com/free5gc/free5gc/
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-138036
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-138036"}.Affected versions
- n/a Free5GC4.0, 4.1, 4.2, 4.3.0
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure17/25No login or user action needed, reachable over the network without a login · Unknown: Advisories don't say whether default setups are affected
- Reach?/20Unknown. No tracked technology or package matched
- Severity6.9/10CVSS 6.9
- No patch0/5No signal
What would change the score
- Would score about 69 if added to CISA KEV
- Would score about 64 if CISA's SSVC rates exploitation active
- Would score about 29 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
Evidence 10
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-138036 |
| Record | NVD · CVE-2026-138036 |
| Public exploit code 1Establishes: Public exploit code exists (Exploit-DB, Metasploit, Nuclei and GitHub). | |
| Exploit | GitHub · free5gc/free5gc · Issue #1214 |
| Other links 7 | |
| Advisory | VulDB · Advisory #444958 |
| Advisory | VulDB · Threat intelligence #444958 |
| Advisory | VulDB · CVE-2026-138036 record |
| Advisory | VulDB · Submission #1068089 |
| Patch | GitHub · free5gc/pcf · Pull request #93 |
| Patch | GitHub · free5gc/pcf · Commit eba1c481 |
| Repository | GitHub · free5gc/free5gc · Repository |
Questions about CVE-2026-138036
Is CVE-2026-138036 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
When an AM policy creation request fails, the PCF can keep the newly allocated UE contexts in its UE pool instead of releasing them.
Source: github.com, github.com
Which versions are affected by CVE-2026-138036?
Free5GC: versions 4.0, 4.1, 4.2, 4.3.0.
Source: cve.now feed data
Am I affected, and how do I check?
The advisory's facts name no affected version range. The bug involves failed AM policy creation requests, such as when UDR policy-data retrieval fails. To check a build, compare the PCF source in use against commit eba1c48 in the Free5GC repository.
Source: github.com, github.com
How do I fix CVE-2026-138036?
Apply commit eba1c48 from the Free5GC project. The facts name no fixed release version.
Source: github.com, github.com
Related
- CVE-2026-129496Timezone cache use-after-free can lead to remote code execution
- CVE-2026-129481Use-after-free after interrupted session shutdown
- CVE-2026-129182Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown
- CVE-2026-77309AIT-GUI route chain allows unauthenticated Python execution in server process
- CVE-2026-126905Incomplete cleanup in V8 in Google Chrome prior to 157.0.8103.78 allowed a remote attacker to potentially execute arbitrary code inside…
- CVE-2026-128346ExcelJS through 4.4.0 Resource Exhaustion via Streaming WorkbookReader Temporary Files
No corrections so far. Something wrong on this page? Report an error.