CVE-2026-58098: Heap out-of-bounds access in semop(2)

CVE-2026-58098 affects 33 listed versions of FreeBSD in the Dawnsentry catalogue.

8.4CVSS high
None knownexploitation
under 1%EPSS (next 30 days)
15 October 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

FreeBSD

33 of 250 listed versions are affected. Fixed in 15.1-RELEASE-p4, 15.0-RELEASE-p14, 14.5-RELEASE-p1, 14.4-RELEASE-p10. The newest release, 15.1-p7, is not affected.

15.1-p3 15.1-p2 15.1-p1 15.1 15.0-p13 15.0-p12 15.0-p11 15.0-p10 15.0-p9 15.0-p8 15.0-p7 15.0-p6 15.0-p5 15.0-p4 15.0-p3 15.0-p2 15.0-p1 15.0 14.5-p4 14.5-p3 14.5-p2 14.5-p1 14.5 14.4-p9 14.4-p8 14.4-p7 14.4-p6 14.4-p5 14.4-p4 14.4-p3 14.4-p2 14.4-p1 14.4

What it is

When semop(2) blocks waiting for a semaphore condition, it releases the per-set lock and sleeps. Upon waking, it checks the sequence number embedded in the semaphore set's IPC identifier to detect whether the set was removed while the caller was asleep. This sequence number is only 15 bits wide. If enough semaphore sets are created and destroyed in the same table slot while a caller is blocked, the counter wraps around, and semop(2) may falsely conclude that the original set still exists. The subsequent access to a semaphore within the set may then be out of bounds. An unprivileged local user can trigger an out-of-bounds access on kernel heap memory, potentially leading to privilege escalation.

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (Freebsd)

Published by Freebsd on 15 October 2026. Last changed 19 October 2026.

Sources

Check one version you run: look CVE-2026-58098 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.