Joyent SmartOS Hyprlofs FS IOCTL Add Entries Native File System Denial of Service Vulnerability
A kernel buffer allocated in the HYPRLOFS_ADD_ENTRIES ioctl handler is not freed on an error path, so repeated calls exhaust memory and cause a system-wide denial of service.
Originally disclosed on Cisco Talos
An exploitable denial of service exists in the the Joylent SmartOS OS 20161110T013148Z Hyprlofs file system. The vulnerability is present in the Ioctl system call with the command HYPRLOFSADDENTRIES.
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 paths in hyprlofs_ioctl return without freeing the buffer allocated by kmem_alloc.
Impact
Repeated exploitation causes memory exhaustion, resulting in a full system denial of service.
What the attacker needed
Local access to SmartOS; ability to mount hyprlofs
How it was found
- Compile the provided C proof-of-concept on SmartOS.
- Mount a hyprlofs file system.
- Run the compiled program to trigger the vulnerability.
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 Hyprlofs file system in SmartOS has a function that allocates memory to handle a request. If the request contains invalid data, the function returns early without freeing that memory. Calling it many times leaks memory until the system runs out and crashes.
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.