Bloomberg Comdb2 Distributed Transaction Coordination Fields denial of service vulnerability
A null pointer dereference in Comdb2's distributed transaction handling occurs when a crafted protocol buffer message omits optional fields used by the PREPARE operation. An attacker can connect over TCP and send this message to crash the database process, causing a denial of service.
A null pointer dereference vulnerability exists in the Distributed Transaction component of Bloomberg Comdb2 8.1 when processing a number of fields used for coordination. A specially crafted protocol buffer message can lead to a denial of service.
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 code calls strdup on optional protocol buffer string fields without checking whether they are NULL when the sender omits them.
Impact
A remote unauthenticated attacker can crash the database process, causing a denial of service.
What the attacker needed
Network access to the database TCP port; no authentication required
How it was found
- Create and start a Comdb2 database instance so it registers with the pmux service.
- Query pmux to discover the TCP port the database is listening on.
- Connect to that port and send a newsql request containing a CDB2QUERY with a disttxn message whose operation is PREPARE and whose optional fields are omitted.
- The server processes the message and crashes with 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.
Comdb2 is a database server. When it receives a special message asking it to prepare a distributed transaction, it tries to copy some text fields that the sender left out, so it reads from an empty (null) pointer and crashes. Anyone who can reach the database port can send such a message and take the service 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.