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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-15 · Modified: 2026-10-16
- Record: https://cvemate.com/vulnerability/CVE-2026-58098 · JSON: https://cvemate.com/vulnerability/CVE-2026-58098/json

## Description

```text
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.
```

## Signals

- CVSS: 8.4 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.114%, percentile 1.602%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- freebsd freebsd: ≥ 15.1-RELEASE, \< p4 \| ≥ 15.0-RELEASE, \< p14 \| ≥ 14.5-RELEASE, \< p1 \| ≥ 14.4-RELEASE, \< p10 \| 14.4 \| 14.4:p1 \| 14.4:p2 \| 14.4:p3 \| 14.4:p4 \| 14.4:p5 \| 14.4:p6 \| 14.4:p7 \| 14.4:p8 \| 14.4:p9 \| 14.5 \| 15.0 \| 15.0:p1 \| 15.0:p10 \| 15.0:p11 \| 15.0:p12 \| 15.0:p13 \| 15.0:p2 \| 15.0:p3 \| 15.0:p4 \| 15.0:p5 \| 15.0:p6 \| 15.0:p7 \| 15.0:p8 \| 15.0:p9 \| 15.1 \| 15.1:p1 \| 15.1:p2 \| 15.1:p3

## References

- <https://security.freebsd.org/advisories/FreeBSD-SA-26:64.sysvsem.asc>

---

Data as of 2026-12-05T11:28:55.455Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
