Bloomberg Comdb2 CDB2SQLQUERY Protocol Buffer Message null pointer dereference vulnerability
A null pointer dereference in Comdb2's handling of CDB2SQLQUERY protocol buffer messages allows an attacker to crash the database process by sending a crafted message over TCP. This results in a denial of service.
A null pointer dereference vulnerability exists in the CDB2SQLQUERY protocol buffer message handling of Bloomberg Comdb2 8.1. 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 dereferences the sqlquery pointer without checking if it is null when processing features.
Impact
An attacker can crash the database process, causing a denial of service.
What the attacker needed
Network access to the database port
How it was found
- Create a database instance and start the comdb2 service.
- Query the pmux service to find the database port.
- Send a header with type set to 1 (CDB2QUERY) followed by a crafted protocol buffer message that omits the sqlquery field.
- The server crashes due to null pointer dereference.
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 that talks to clients using a binary format called Protocol Buffers. The server assumed a certain part of the message would always be present, but an attacker could leave it out, causing the server to crash when it tried to use that missing part. This means anyone who can connect to the database 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.