{"apiVersion":"1.0","identifier":"CVE-2026-58087","description":"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 buffer sized for that count, and reacquired the lock. A sequence-number check was used to verify that the set had not been replaced in the interim, but the sequence number wraps after 0x8000 create/destroy cycles. By rapidly destroying and recreating semaphore sets at the same index, another process can cause the sequence number to wrap, allowing a set with a different number of semaphores to pass validation. The subsequent copy then reads or writes past the end of the allocated buffer. An unprivileged local user can trigger out-of-bounds reads and writes on kernel heap memory, potentially leading to privilege escalation.","publishedAt":"2026-08-19T08:17:12","lastModifiedAt":"2026-08-26T16:54:50","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-58087","cvssScore":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","epssProbability":0.00121,"riskScore":0.79,"affectedProduct":"Linux Kernel","affectedVersions":"unknown","vulnerabilityType":"Kernel","operatingSystems":[],"links":{"self":"https://www.redsauce.net/api/cves/CVE-2026-58087","webPages":{"es":"https://www.redsauce.net/es/cves/CVE-2026-58087","en":"https://www.redsauce.net/en/cves/CVE-2026-58087","fr":"https://www.redsauce.net/fr/cves/CVE-2026-58087","pt":"https://www.redsauce.net/pt/cves/CVE-2026-58087","de":"https://www.redsauce.net/de/cves/CVE-2026-58087","sk":"https://www.redsauce.net/sk/cves/CVE-2026-58087","el":"https://www.redsauce.net/el/cves/CVE-2026-58087"},"source":"https://nvd.nist.gov/vuln/detail/CVE-2026-58087"}}