Apple macOS SMB server lock request infinite loop
A flaw in the macOS SMB server's handling of lock requests with overlapping ranges causes an infinite loop when a lock call fails. An attacker can send crafted packets to exhaust CPU and threads, leading to denial of service.
Originally disclosed on Cisco Talos
A resource exhaustion vulnerability exists in the SMB Server on Apple macOS 11.2. A specially crafted SMB packet can trigger an infinite loop which leads to maximum CPU utilization and 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
Likely, the error-handling path after a failed lock_range call incorrectly enters an infinite loop instead of returning an error.
Impact
The SMB server becomes unavailable and the whole operating system is affected as SMB threads use up all available CPU.
What the attacker needed
Network access to SMB service; valid SMB credentials (low privileges)
The fix
The vendor patched the vulnerability.
How it was found
- Send a crafted SMB lock request with overlapping lock ranges to the vulnerable server.
- The server's lock_range call fails and enters an infinite loop, consuming CPU.
- Repeat the request to exhaust all available client handling threads, causing denial of service.
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 SMB server is a program that lets computers share files over a network. When it receives a request to lock parts of a file, a mistake in error handling can make it loop forever, using up all the computer's processing power and stopping the file-sharing service.
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.