Joyent SmartOS Hyprlofs FS IOCTL 32-bit File System path Buffer Overflow Privilege Escalation Vulnerability
A stack-based buffer overflow exists in the Hyprlofs file system's ioctl handler when processing 32-bit file system paths. An attacker with local access could exploit this to cause an out-of-bounds write, potentially leading to privilege escalation or denial of service.
Originally disclosed on Cisco Talos
An exploitable buffer overflow exists in the the Joyent SmartOS OS 20161110T013148Z Hyprlofs file system. The vulnerability is present in the Ioctl system call with the command HYPRLOFSADDENTRIES when dealing with native file systems.
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
The length check uses 'greater than MAXPATHLEN' instead of 'greater than or equal to', allowing a path length of exactly MAXPATHLEN, which causes a null byte to be written one byte past the end of the stack buffer.
Impact
This could result in potential privilege escalation or denial of service, though the CVSS vector indicates local access and high attack complexity.
What the attacker needed
Local access to the system; ability to invoke ioctl on Hyprlofs
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.
This is a bug in an operating system's file system code. A local user can send a specially crafted request that writes one byte past the end of a buffer, which could crash the system or let the attacker gain higher privileges.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.