CVE-2026-15449

TOCTOU double copyin in illumos dld ioctl handling causes kernel heap corruption

Published Jul 16, 2026 CVSS 4.0 · 5.8 Medium EPSS < 1% KEV · Not listed
Description
A time-of-check to time-of-use (TOCTOU) flaw in the illumos data-link pseudo-driver (dld) affects handling of the DLDIOC_GETMACPROP and DLDIOC_SETMACPROP ioctls on /dev/dld. drv_ioc_prop_common() in usr/src/uts/common/io/dld/dld_drv.c copies the dld_ioc_macprop_t ioctl header in once to read its pr_valsize field, sizes and allocates a kernel heap buffer from that value, and then copies the full request in a second time from the same unprivileged user address. A concurrent thread can enlarge pr_valsize between the two copyins, so the second copyin and the subsequent property handling write beyond the end of the undersized allocation and corrupt the kernel heap. An unprivileged local user, including one confined to a non-global zone that owns a datalink, can trigger this to panic the system. The resulting kernel heap corruption may be usable for further compromise.

Analysis

AI-generated

Technical impact

A time‑of‑check to time‑of‑use (TOCTOU) flaw in the illumos data‑link pseudo‑driver (dld) allows an unprivileged local user to trigger a double copyin of the DLDIOC_GETMACPROP and DLDIOC_SETMACPROP ioctls. The first copyin reads the ioctl header to capture the property value size; a concurrent thread can enlarge that size before the second copyin, causing the kernel to allocate an undersized buffer and subsequently write beyond its end. The resulting heap corruption can crash the system and may be leveraged for further compromise. The weakness is classed as a heap‑based buffer overflow (CWE‑122) coupled with a TOCTOU race (CWE‑367).

Affected Systems

The vulnerability affects the illumos family, including OmniOS, Triton Data Center SmartOS, and the illumos‑gate source tree. Specific affected versions are not enumerated in the advisory, so any current installation that has not applied the fix for issue 18020 is potentially vulnerable.

Risk and Exploitability

The CVSS score of 5.8 indicates medium severity, and the EPSS score of less than 1% reflects a low probability of active exploitation. It is not listed in CISA KEV, so no known public exploits are reported. The vulnerability requires local privilege and a race condition, risk level remains moderate due to the potential for system downtime and privilege escalation within the host.

Remediation

Vendor Solution

Update your illumos distribution to one that includes the fix for issue 18020.


Vendor Workaround

No mitigation is available. The referenced notification includes a DTrace script that detects exploitation attempts.


OpenCVE Recommended Actions

  • Update your illumos distribution to a version that includes the fix for issue 18020.
  • Deploy and run the provided DTrace script to monitor and alert on exploitation attempts.
  • Restrict write access to /dev/dld, limiting unprivileged users from issuing DLDIOCs to reduce the window for the race.

Generated by OpenCVE AI on July 31, 2026 at 01:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Illumos
Illumos illumos-gate
Omnios
Omnios omnios
Tritondatacenter
Tritondatacenter smartos
Vendors & Products Illumos
Illumos illumos-gate
Omnios
Omnios omnios
Tritondatacenter
Tritondatacenter smartos
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A time-of-check to time-of-use (TOCTOU) flaw in the illumos data-link pseudo-driver (dld) affects handling of the DLDIOC_GETMACPROP and DLDIOC_SETMACPROP ioctls on /dev/dld. drv_ioc_prop_common() in usr/src/uts/common/io/dld/dld_drv.c copies the dld_ioc_macprop_t ioctl header in once to read its pr_valsize field, sizes and allocates a kernel heap buffer from that value, and then copies the full request in a second time from the same unprivileged user address. A concurrent thread can enlarge pr_valsize between the two copyins, so the second copyin and the subsequent property handling write beyond the end of the undersized allocation and corrupt the kernel heap. An unprivileged local user, including one confined to a non-global zone that owns a datalink, can trigger this to panic the system. The resulting kernel heap corruption may be usable for further compromise.
Title TOCTOU double copyin in illumos dld ioctl handling causes kernel heap corruption
Weaknesses CWE-122
CWE-367
References
Metrics cvssV4_0

{'score': 5.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
illumos
Published
Updated
Jul 17, 2026, 12:42 PM
Reserved
Jul 10, 2026, 7:23 PM
Status
Deferred
Published
Jul 16, 2026, 8:16 PM
Modified
Jul 17, 2026, 6:45 PM