Joyent SmartOS Hyprlofs FS IOCTL Add Entries 32-bit File System Denial of Service Vulnerability
The Hyprlofs ioctl handler for adding entries allocates a kernel buffer but returns early on invalid entry data without freeing it. Repeated calls exhaust kernel memory and cause a full system 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 when used with a 32 bit model.
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 an early error return in the ioctl handler skips the kmem_free call for the buffer allocated with kmem_alloc.
Impact
Repeated triggering causes memory exhaustion, resulting in a full system denial of service.
What the attacker needed
Local access to SmartOS; ability to mount a hyprlofs file system
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.
A file system driver in the operating system reserves a chunk of memory to hold a list of entries, then checks each entry. If an entry is invalid it stops early but forgets to give the memory back. Calling this operation over and over leaks memory until the machine runs out and stops 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.