Skip to content
Race condition Advisory Advanced CVE-2021-21941

Anker Eufy Homebase 2 pushMuxer CreatePushThread use-after-free vulnerability

A use-after-free vulnerability exists in the pushMuxer CreatePushThread functionality of Anker Eufy Homebase 2 2.1.6.9h. A specially-crafted set of network packets can lead to remote code execution.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Critical 10.0 View original

A use-after-free vulnerability exists in the pushMuxer CreatePushThread functionality of Anker Eufy Homebase 2 2.1.6.9h. A specially-crafted set of network packets can lead to remote code execution.

Lilith >_>, 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

Likely a race condition where the receive_push_thread frees the zx_push_stream_ctx object before pthread_create writes the thread ID to it, leading to a use-after-free.

Impact

A remote attacker could execute arbitrary code on the device.

What the attacker needed

Network access to TCP port 9000

The fix

The vendor patched the vulnerability.

How it was found

  1. Connect to TCP port 9000 on the device.
  2. Send a small amount of data to trigger the creation of the push thread.
  3. Repeat the connection rapidly to increase the chance of the race condition.

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 device runs a program that handles video streams. When a new connection arrives, it creates a thread (a lightweight process) and passes the same memory object as both the thread handle and the argument. The new thread frees that object before exiting, but the original thread later writes to it, causing a use-after-free. An attacker can exploit this to run code on the device.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by Lilith >_>

View all

148 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.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.