Skip to content
DoS Write-up Intermediate

Crashing VMware Guests with a Silly Filesystem Bug

A bug in VMware Tools' shared folders implementation for macOS guests fails to check the length of filenames after escaping illegal characters, allowing a filename with many colons to cause a kernel panic and reboot the guest. An attacker with the ability to place a file in a shared folder can crash the guest, resulting in a denial of service.

medium.com

Published on medium.com

A few months ago, I began digging into some VMware products — primarily VMware Fusion and VMware-tools. A number of issues found throughout my research were disclosed to the vendor, but what we’re talking about today is the finding in TRA-2020-38.

James Sebree, on medium.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the HGFS escape function replaces each illegal character with two characters without checking the resulting length, leading to a buffer overflow in the kernel extension.

Impact

The vulnerability allows a denial of service by crashing the guest, but the attacker cannot control the crash for further exploitation.

What the attacker needed

MacOS virtual machine; shared folders enabled; ability to place a file in the shared folder

How it was found

  1. Create a file in a shared directory with a filename containing 128 or more colons.
  2. Share the directory to the guest.
  3. Perform an action on the guest that causes the HGFS kernel extension to process the filename, such as viewing the directory in Finder or running ls.
  4. The guest crashes with a kernel panic.

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 write-up has not been written yet. The Original tab links to the source.

Shared folders let a virtual machine see files from the host computer. The software that handles these files did not check if a filename became too long after replacing certain characters, so a very long name could crash the virtual machine. This is like a denial-of-service attack: the attacker cannot steal data but can stop the machine from working.

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.

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.