CVE-2026-58098
published high CVSS 3.1 · 8.4Heap out-of-bounds access in semop(2)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| FreeBSD | — | FreeBSD15.1-RELEASE to < p4 · 15.0-RELEASE to < p14 · 14.5-RELEASE to < p1 · 14.4-RELEASE to < p10 · Other versions: unknown | Affected | Not stated | freebsd |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| FreeBSD | FreeBSD | 15.1-RELEASE to < p4 (affected · release)15.0-RELEASE to < p14 (affected · release)14.5-RELEASE to < p1 (affected · release)14.4-RELEASE to < p10 (affected · release)Default: unknown | freebsd · cna |
Weaknesses
1- CWE-787 CWE-787: Out-of-bounds Write
References
1Provider assertions
2freebsd · cna
Heap out-of-bounds access in semop(2)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 774e4e10f5108233bca11e894e9f581bc0b9e6b0224bdbc774c342cef2ed1809
- Ingested
- 16 Oct 2026, 14:35:47 UTC
- Source record
- Official CVE record