CVE-2026-15449

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

State
Published
Severity
5.8 Medium
Published
Jul 16, 2026
Updated
Jul 17, 2026
Reserved
Jul 10, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.05.8 MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:Nillumos

Weaknesses

  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
  • CWE-122 Heap-based Buffer Overflow

Affected Products

ProductVersions
illumos-gateillumos
  • eae72b5b807baa9116e64502cbb278edf15f3146 to before 6959feb5b430411a4809b06c53dcdb42fb525eacAffectedfrom 6959feb5b430411a4809b06c53dcdb42fb525eacNot affected
OmniOSOmniOS
  • any to before r151054Affected
  • r151058 to before r151058jAffectedfrom r151058jNot affected
  • r151056 to before r151056ajAffectedfrom r151056ajNot affected
  • r151054 to before r151054bjAffectedfrom r151054bjNot affected
SmartOSTriton Data Center
  • any to before 202060709Affectedfrom 20260709Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.