CVE-2026-114586: Out-of-bounds read and write in illumos STREAMS allow local privilege escalation
Three memory-safety flaws in illumos STREAMS processing allow a local user to read and modify kernel heap memory and gain root privileges. First, the timod module in usr/src/uts/common/io/timod.c does not validate the offsets and lengths in a TUNITDATAREQ message sent by the calling process. timod is pushed onto transport endpoints opened through the XTI/TLI library. When timfilladdr() rebuilds such a message, it copies the options from the OPToffset in the message, which it applies relative to the end of the message and not the start. A crafted offset and length cause kernel heap memory outside the message to be copied into the new message. That memory includes the STREAMS data block header, which contains kernel pointers. On a connectionless loopback transport endpoint such as /dev/ticlts, those bytes are returned to the process in the resulting TUDERRORIND. Second, the IFDINSERT handler in strioctl() in usr/src/uts/common/os/streamio.c compares the signed length of the control buffer with an unsigned value, so a negative length passes validation. The handler then writes a four-byte value at an offset chosen by the process, beyond the end of the allocated message. The value is the device minor number of the stream named in the request. An unprivileged local user can combine the two. The read locates the credential structure of their process, and the write sets the user ID in that structure to zero. Third, auditsock() in usr/src/uts/common/c2/audit.c reads a socket address from a transport message at an offset taken from the message. It does not check that the address lies within the message, so when auditing is enabled this is a further out-of-bounds read. The flaws are present in all versions of illumos-gate prior to commit a324e0c7.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch a324e0c7
Event History
Frequently Asked Questions
Does exploitation require remote network access?
The described attacks are initiated by a local user. The information-disclosure path uses a connectionless loopback transport endpoint such as /dev/ticlts, rather than requiring a remote peer.
What capabilities does an attacker need for the disclosed attack paths?
An attacker needs to be able to submit crafted STREAMS messages or ioctls from a local process. The timod issue involves a crafted T_UNITDATA_REQ on a transport endpoint using timod, while the I_FDINSERT issue relies on a malicious control-buffer length and process-selected offset.