Skip to content
DoS Advisory Intermediate CVE-2020-6098

freeDiameter freeDiameterd Denial of Service Vulnerability

A malformed Diameter CER packet with an AVP whose length field is smaller than the AVP header causes an integer underflow in the length calculation, producing a huge size value. This leads to memory exhaustion and a memcpy with invalid pointers, crashing the freeDiameterd server.

Peter Wang Follow

Originally disclosed on Cisco Talos

High 7.5 View original

An exploitable denial of service vulnerability exists in the freeDiameterd functionality of freeDiameter 1.3.2. A specially crafted Diameter request can trigger a memory corruption resulting in denial-of-service.

Peter Wang, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The AVP length field is not validated against the minimum header size before subtracting, so the unsigned length calculation underflows to a huge value that is then used as a copy size.

Impact

A remote unauthenticated attacker can crash the freeDiameterd server, causing a denial of service.

What the attacker needed

Network access to the Diameter server; no authentication needed

How it was found

  1. Send a crafted Diameter CER packet containing a malformed AVP to the freeDiameterd server.
  2. The server parses the AVP and computes the raw data length by subtracting the header size from the supplied length.
  3. The underflowed length is used in a memory allocation and a memcpy, causing memory exhaustion and a segmentation fault.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Diameter is a networking protocol used by telecom systems to check who may use a service. The server reads a length value from an incoming message and subtracts the header size from it; if the length is smaller than the header, the result wraps around to a very large number. The server then tries to copy that huge amount of data and crashes, so a single bad message can take it down.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Peter Wang

View all

2 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.