Skip to content
DoS Advisory Advanced CVE-2022-21801

Reolink RLC-410W netserver recv_command denial of service vulnerability

A specially crafted network request to the camera's netserver service causes an integer overflow when calculating a buffer size, so a buffer is never allocated but is later dereferenced. This crashes the netserver binary and can reboot the device, giving a remote unauthenticated attacker a denial of service.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 8.6 View original

A denial of service vulnerability exists in the netserver recvcommand functionality of reolink RLC-410W v3.0.0.13620121102. A specially-crafted network request can lead to a reboot.

Francesco Benvenuto, 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

A signed size field from the request header is added to a constant without checking for integer overflow, so a negative value produces a zero allocation length and the later dereference hits a null pointer.

Impact

A remote attacker could crash the netserver process and cause the camera to reboot, disrupting its operation.

What the attacker needed

Network access to the camera; no authentication needed

The fix

The size arithmetic should be validated so that negative or overflowing lengths are rejected before any allocation or dereference; the vendor patched the issue shortly after disclosure.

How it was found

  1. Send a request to the netserver service whose header carries a negative data size value.
  2. The size check treats the negative value as small, so parsing continues instead of aborting.
  3. The size plus a constant overflows to zero, so no buffer is allocated for the command.
  4. The command is queued and later parsed, dereferencing the empty buffer and crashing netserver.

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 camera runs a small program that reads incoming network messages and works out how much memory to reserve for each one. A crafted message makes that size calculation wrap around to zero, so no memory is reserved, yet the program still tries to read from that empty spot and crashes. The result is that the camera restarts, which an attacker can trigger remotely without logging in.

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.

More by Francesco Benvenuto

View all

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

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.