The GETALL and SETALL commands in semctl(2) recorded the number of semaphores in the target set, dropped the lock protecting the set, allocated a… (CVE-2026-58087)
CVE-2026-58087 is a local privilege escalation vulnerability in the semctl(2) system call's GETALL and SETALL commands. These commands improperly handle semaphore sets by relying on a sequence number that can wrap after extensive create/destroy cycles. An unprivileged local user can exploit this to cause out-of-bounds reads and writes on kernel heap memory, potentially leading to privilege escalation.
AI Analysis
Technical Summary
The vulnerability exists in the GETALL and SETALL commands of the semctl(2) system call, which manage semaphore sets. These commands record the number of semaphores, drop the lock protecting the set, allocate a buffer based on that count, and then reacquire the lock. A sequence-number check is used to verify the set has not been replaced, but this sequence number wraps after 0x8000 create/destroy cycles. By rapidly destroying and recreating semaphore sets at the same index, an attacker can cause the sequence number to wrap, allowing a set with a different semaphore count to pass validation. This leads to out-of-bounds reads or writes on kernel heap memory, which an unprivileged local user can exploit to escalate privileges.
Potential Impact
An unprivileged local user can trigger out-of-bounds reads and writes on kernel heap memory, potentially leading to privilege escalation. The vulnerability affects confidentiality, integrity, and availability with high impact as indicated by the CVSS score of 7.8.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, restrict unprivileged local user access and monitor for suspicious activity involving semaphore set operations.
The GETALL and SETALL commands in semctl(2) recorded the number of semaphores in the target set, dropped the lock protecting the set, allocated a… (CVE-2026-58087)
Description
CVE-2026-58087 is a local privilege escalation vulnerability in the semctl(2) system call's GETALL and SETALL commands. These commands improperly handle semaphore sets by relying on a sequence number that can wrap after extensive create/destroy cycles. An unprivileged local user can exploit this to cause out-of-bounds reads and writes on kernel heap memory, potentially leading to privilege escalation.
CVSS v3.1
Score 7.8high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the GETALL and SETALL commands of the semctl(2) system call, which manage semaphore sets. These commands record the number of semaphores, drop the lock protecting the set, allocate a buffer based on that count, and then reacquire the lock. A sequence-number check is used to verify the set has not been replaced, but this sequence number wraps after 0x8000 create/destroy cycles. By rapidly destroying and recreating semaphore sets at the same index, an attacker can cause the sequence number to wrap, allowing a set with a different semaphore count to pass validation. This leads to out-of-bounds reads or writes on kernel heap memory, which an unprivileged local user can exploit to escalate privileges.
Potential Impact
An unprivileged local user can trigger out-of-bounds reads and writes on kernel heap memory, potentially leading to privilege escalation. The vulnerability affects confidentiality, integrity, and availability with high impact as indicated by the CVSS score of 7.8.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, restrict unprivileged local user access and monitor for suspicious activity involving semaphore set operations.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-v78v-rxq5-6w38
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58087"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a85b49bacd9273b4925028a
Added to database: 08/19/2026, 13:50:19 UTC
Last enriched: 08/19/2026, 13:51:38 UTC
Last updated: 08/19/2026, 13:51:38 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.