Out-of-bounds write in FreeBSD - CVE-2026-58087
Published: July 29, 2026 / Updated: July 30, 2026
FreeBSD
Detailed vulnerability description
The vulnerability allows a local user to escalate privileges.
The vulnerability exists due to out-of-bounds read and out-of-bounds write in semctl(2) GETALL and SETALL handling when processing semaphore set control operations during concurrent destruction and recreation of semaphore sets. A local user can rapidly destroy and recreate semaphore sets at the same index to trigger a sequence number wrap and cause out-of-bounds access on kernel heap memory to escalate privileges.
The issue occurs because the semaphore count is recorded before dropping the set lock, and the sequence-number validation can be bypassed after wraparound.