CVE-2026-58094 PUBLISHED

TOCTOU race in POSIX shared memory large page configuration

Assigner: freebsd
Reserved: 29.06.2026 Published: 26.08.2026 Updated: 26.08.2026

The FIOSSHMLPGCNF ioctl(2) operation configures the page size for a largepage shared memory object. This is intended to be used immediately after creating the object, before any memory is allocated for the object. The handler checked whether a page size had already been configured without holding the rangelock. Two concurrent callers could both observe an unconfigured object and set conflicting page sizes, leaving the object in an inconsistent state.

An unprivileged local user can exploit this race to escalate privileges.

Product Status

Vendor FreeBSD
Product FreeBSD
Versions Default: unknown
  • affected from 15.1-RELEASE to p3 (excl.)
  • affected from 15.0-RELEASE to p13 (excl.)
  • affected from 14.4-RELEASE to p9 (excl.)

Credits

  • tsune of GMO Cybersecurity by Ierae, Inc. working with TrendAI Zero Day Initiative finder

References

Problem Types

  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition CWE