A use-after-free vulnerability in OpenBSD's sys/kern/sysv_sem.c allows local privilege escalation to root. The vulnerability is a context switch use-after-free after tsleep in sys_semget(). This issue was discovered as part of the Patch The Planet initiative, which uses AI models to find vulnerabilities in open-source projects. The vulnerability affects OpenBSD versions up to 7.9.