A use-after-free vulnerability in OpenBSD through version 7.9 allows local attackers to escalate privileges to root. The flaw exists in sysv_sem.c and is identified as CVE-2026-57589.
# NVD - cve-2026-57589
Source: [https://nvd.nist.gov/vuln/detail/cve-2026-57589](https://nvd.nist.gov/vuln/detail/cve-2026-57589)
### Description
sys/kern/sysv\_sem\.c in OpenBSD through 7\.9 has a use\-after\-free allowing local privilege escalation to root\. This is a context switch use\-after\-free after tsleep in sys\_semget\(\)\.
### Metrics
*NVD enrichment efforts reference publicly available information to associate vector strings\. CVSS information contributed by other sources is also displayed\.*
**CVSS 4\.0 Severity and Vector Strings:**

**NIST:**NVD
NVD assessment not yet provided\.
### References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace\. We have provided these links to other web sites because they may have information that would be of interest to you\. No inferences should be drawn on account of other sites being referenced, or not, from this page\. There may be other web sites that are more appropriate for your purpose\. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites\. Further, NIST does not endorse any commercial products that may be mentioned on these sites\. Please address comments about this page to[\[email protected\]](https://nvd.nist.gov/cdn-cgi/l/email-protection#0c627a684c62657f78226b637a)\.
URLSource\(s\)Tag\(s\)[https://github\.com/openbsd/src/commit/1957873d2063db11dab780eca75b5e629d1e838d](https://github.com/openbsd/src/commit/1957873d2063db11dab780eca75b5e629d1e838d)MITRE[https://openai\.com/index/patch\-the\-planet/](https://openai.com/index/patch-the-planet/)MITRE
### Weakness Enumeration
CWE\-IDCWE NameSource[CWE\-416](http://cwe.mitre.org/data/definitions/416.html)Use After FreeMITRE
### Change History
3 change records found[show changes](https://nvd.nist.gov/vuln/detail/cve-2026-57589#VulnChangeHistorySection)
A critical local privilege escalation vulnerability in FreeBSD (CVE-2026-45257) allows an unprivileged user to write arbitrary data into the page cache of any readable file, bypassing file permissions and flags, leading to full root compromise. The bug affects default installations of FreeBSD 13.0 and later via unsafe composition of sendfile, KTLS, and in-kernel AES-GCM decryption.
A single faulty character in the Linux kernel introduced a use-after-free vulnerability (CVE-2026-53111) allowing unprivileged users to escalate privileges to root on Debian and Ubuntu systems; the bug has been fixed and backported.
A heap use-after-free vulnerability has been reported in the OpenSSL PKCS7_verify() function, potentially allowing attackers to exploit memory corruption.
Bad Epoll (CVE-2026-46242) is a race-condition use-after-free vulnerability in the Linux kernel's epoll subsystem that allows unprivileged users to escalate to root on both Linux and Android devices. It was reported by Jaeyoung Chung and was missed by Anthropic's Mythos AI.
A use-after-free vulnerability in the DRM GEM core ioctl DRM_IOCTL_GEM_CHANGE_HANDLE allows unprivileged local users with render node access to escalate to root. The bug was fixed in the Linux kernel mainline in May 2026.