Classic buffer overflow in the Erlang/OTP megaco flex scanner C driver allows a remote unauthenticated attacker to corrupt the driver's memory (and… (CVE-2026-59250)
A classic buffer overflow vulnerability exists in the Erlang/OTP megaco flex scanner C driver, allowing a remote unauthenticated attacker to corrupt memory by sending a specially crafted H.248/Megaco message with an oversized property parameter name. This overflow can lead to denial of service or potentially remote code execution. The vulnerability affects multiple OTP versions prior to specific fixed releases. A patch is available from the vendor.
AI Analysis
Technical Summary
The Erlang/OTP megaco flex scanner C driver contains a buffer overflow in the mfs_load_property_groups routine when processing a property name longer than approximately 452 bytes. This name is unsafely copied into a fixed 512-byte buffer without proper bounds checking, overwriting adjacent memory fields in the MfsErlDrvData struct. The corrupted pointers and counters can be exploited by subsequent scanner code to perform arbitrary writes and frees, enabling remote code execution or denial of service. The overflow occurs before any authentication, requiring only network access to the megaco transport port on nodes configured with {scanner, flex}. Affected OTP versions include OTP 17.0 before 27.3.4.15, OTP 28.0 before 28.5.0.4, and OTP 29.0 before 29.0.4, corresponding to megaco versions 3.17.1 before 4.7.2.2, 4.8 before 4.8.3.1, and 4.9 before 4.9.1. The vendor has released patches addressing this issue.
Potential Impact
A remote unauthenticated attacker can exploit this vulnerability to corrupt memory in the Erlang megaco flex scanner driver, potentially causing a denial-of-service crash or achieving remote code execution within the BEAM VM process. The vulnerability is exploitable over the network without authentication, posing a significant risk to affected systems.
Mitigation Recommendations
A vendor-provided patch is available and should be applied promptly. The issue is fixed in OTP versions 27.3.4.15 and later, 28.5.0.4 and later, and 29.0.4 and later, as well as corresponding megaco versions 4.7.2.2 and later, 4.8.3.1 and later, and 4.9.1 and later. Systems should be updated to these versions or later to remediate the vulnerability. Refer to the Ubuntu security notice USN-8827-1 for specific package updates and instructions.
Classic buffer overflow in the Erlang/OTP megaco flex scanner C driver allows a remote unauthenticated attacker to corrupt the driver's memory (and… (CVE-2026-59250)
Description
A classic buffer overflow vulnerability exists in the Erlang/OTP megaco flex scanner C driver, allowing a remote unauthenticated attacker to corrupt memory by sending a specially crafted H.248/Megaco message with an oversized property parameter name. This overflow can lead to denial of service or potentially remote code execution. The vulnerability affects multiple OTP versions prior to specific fixed releases. A patch is available from the vendor.
CVSS v4.0
Affected software
pkg:deb/ubuntu/erlang?arch=source&distro=esm-infra-legacy/trustypkg:deb/ubuntu/erlang?arch=source&distro=esm-infra-legacy/xenialpkg:deb/ubuntu/erlang?arch=source&distro=esm-infra/bionicpkg:deb/ubuntu/erlang?arch=source&distro=esm-infra/focalpkg:deb/ubuntu/erlang?arch=source&distro=jammypkg:deb/ubuntu/erlang?arch=source&distro=noblepkg:deb/ubuntu/erlang?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Erlang/OTP megaco flex scanner C driver contains a buffer overflow in the mfs_load_property_groups routine when processing a property name longer than approximately 452 bytes. This name is unsafely copied into a fixed 512-byte buffer without proper bounds checking, overwriting adjacent memory fields in the MfsErlDrvData struct. The corrupted pointers and counters can be exploited by subsequent scanner code to perform arbitrary writes and frees, enabling remote code execution or denial of service. The overflow occurs before any authentication, requiring only network access to the megaco transport port on nodes configured with {scanner, flex}. Affected OTP versions include OTP 17.0 before 27.3.4.15, OTP 28.0 before 28.5.0.4, and OTP 29.0 before 29.0.4, corresponding to megaco versions 3.17.1 before 4.7.2.2, 4.8 before 4.8.3.1, and 4.9 before 4.9.1. The vendor has released patches addressing this issue.
Potential Impact
A remote unauthenticated attacker can exploit this vulnerability to corrupt memory in the Erlang megaco flex scanner driver, potentially causing a denial-of-service crash or achieving remote code execution within the BEAM VM process. The vulnerability is exploitable over the network without authentication, posing a significant risk to affected systems.
Mitigation Recommendations
A vendor-provided patch is available and should be applied promptly. The issue is fixed in OTP versions 27.3.4.15 and later, 28.5.0.4 and later, and 29.0.4 and later, as well as corresponding megaco versions 4.7.2.2 and later, 4.8.3.1 and later, and 4.9.1 and later. Systems should be updated to these versions or later to remediate the vulnerability. Refer to the Ubuntu security notice USN-8827-1 for specific package updates and instructions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-59250
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.04:LTS"]
- Cvss Version
- 4.0
- State
- PUBLISHED
Patch Information
Threat ID: 6abb4194f7a7c54106cc3807
Added to database: 09/29/2026, 04:41:56 UTC
Last enriched: 09/29/2026, 04:51:24 UTC
Last updated: 09/29/2026, 18:11:19 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.