VMware VNC Lock Count Denial of Service Vulnerability
The VMware VNC server increments a global lock counter for each connection but never decrements it, so many connections cause the counter to overflow and the server to shut down the virtual machine. An attacker could open many VNC connections to trigger a denial of service.
Originally disclosed on Cisco Talos
An exploitable Denial of Service vulnerability exists in the remote management functionality of VMware . A large amount of VNC connections can cause an exception in the server to trigger, resulting in a shutdown of the virtual machine.
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
Likely the lock counter is incremented on each VNC connection but never decremented, so it eventually reaches a maximum value and triggers a shutdown.
Impact
An attacker could cause a denial of service by shutting down the virtual machine, but only if they can open enough connections to reach the counter limit.
What the attacker needed
Network access to the VNC port; ability to open many TCP connections
How it was found
- Open many TCP connections to the VNC server port.
- Each successful connection increments the lock counter twice.
- Continue until the counter reaches its maximum value.
- The server logs an error and kills all threads, shutting down the virtual machine.
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.
The VNC server keeps a count of how many connections are active, but it only ever adds to this count and never subtracts when connections close. After enough connections, the count hits a maximum limit and the server shuts down the virtual machine to protect itself. An attacker can exploit this by simply opening many connections, without needing to log in or send any data.
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.