CVE-2026-138051
Deferred Deferred - Pending Action

Heap-based Buffer Overflow in OpenAirInterface oai-cn5g-upf

Vulnerability report for CVE-2026-138051, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-28

Last updated on: 2026-11-28

Assigner: VulDB

Description

A security vulnerability has been detected in OpenAirInterface oai-cn5g-upf up to 2.2.2. This issue affects the function pfcp_user_id_ie::load_from of the file pfcp/3gpp_29.244.hpp of the component PFCP N4 User ID IE Type 141 Parser. The manipulation leads to heap-based buffer overflow. Remote exploitation of the attack is possible. The exploit has been disclosed publicly and may be used. The vendor was contacted early about this disclosure.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-28
Last Modified
2026-11-28
Generated
2026-11-29
AI Q&A
2026-11-28
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-119 The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.
CWE-122 A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a heap-based buffer overflow in OpenAirInterface's oai-cn5g-upf up to version 2.2.2. The flaw exists in the PFCP N4 User ID IE Type 141 Parser function pfcp_user_id_ie::load_from. The vulnerability occurs when parsing a User ID IE from a network packet. The parser reads a length value directly from the packet and uses it to read data into a fixed 8-byte array without validating the length. When the length is set to 255, it causes a heap overflow by writing 247 bytes past the array, corrupting adjacent memory including string members. This leads to a crash of the UPF process due to heap corruption.

The vulnerability can be exploited by sending a single malformed UDP datagram containing a Heartbeat Request with a User ID IE where the length field is set to 255. The attack bypasses normal validation checks as the overflow occurs during IE deserialization before message-type dispatch or PFCP association checks.

Detection Guidance

Monitor UPF logs for segmentation faults or crashes in the pfcp_user_id_ie::load_from function. Check for malformed PFCP packets on the N4 interface using network traffic analyzers like Wireshark with custom dissectors for PFCP. Inspect heap corruption errors in system logs. Validate buffer sizes in UPF configuration files to ensure no excessive length values are allowed.

Impact Analysis

This vulnerability can cause the UPF process to crash immediately upon receiving a malicious packet, resulting in a complete loss of all PDU sessions, GTP-U tunnels, and in-flight user data. The crash occurs due to heap corruption, specifically a double-free or heap corruption error during string destruction. The exploit provides a heap corruption primitive with potential for code execution, depending on the attacker's control over the overflow length and written data.

Compliance Impact

This vulnerability could lead to unauthorized access or data corruption in systems handling sensitive data, potentially violating GDPR's integrity and confidentiality requirements or HIPAA's safeguards for protected health information. A successful exploit may cause UPF crashes, disrupting data processing and leading to data loss or unauthorized exposure.

Mitigation Strategies

Upgrade OpenAirInterface oai-cn5g-upf to a patched version beyond 2.2.2. Apply input validation to restrict User ID IE length to 8 bytes or less. Deploy network firewalls to filter malformed PFCP packets. Monitor UPF processes for crashes and restart them if necessary. Review and update PFCP association configurations to enforce strict validation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138051. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...