{"id":10500,"date":"2026-09-04T18:51:04","date_gmt":"2026-09-04T10:51:04","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-58087"},"modified":"2026-09-04T18:51:04","modified_gmt":"2026-09-04T10:51:04","slug":"cve-2026-58087","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-58087","title":{"rendered":"CVE-2026-58087 [HIGH] &#8211; The GETALL and SETALL commands in semctl(2) recorded the number of semaphores in the targe"},"content":{"rendered":"<p>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.<\/p>\n<p>An unprivileged local user can trigger out-of-bounds reads and writes on kernel heap memory, potentially leading to privilege escalation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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. <\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-10500","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/10500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}