Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-58098— Heap out-of-bounds access in semop(2)

Quick assessment

Affected
FreeBSD FreeBSD
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

当 semop(2) 阻塞等待某个信号量条件时,它会释放与该信号量集关联的每集锁并进入睡眠状态。唤醒后,它会检查嵌入在信号量集的 IPC 标识符中的序列号,以判断在调用者睡眠期间该信号量集是否已被移除。该序列号仅有 15 位宽。如果在一个相同的表槽中,在调用者阻塞期间创建和销毁了足够多的信号量集,计数器将发生回绕(wrap around),导致 semop(2) 可能错误地认为原始信号量集仍然存在。随后对该信号量集中某个信号量的访问可能越界。 特权本地用户(非特权用户)可触发内核堆内存的越界访问,从而导致权限提升。

AI Predicted 7.8 Difficulty: Moderate EPSS 0.18% · P7

Affected Version Matrix 4

VendorProduct Version RangeStatus
FreeBSD FreeBSD 15.1-RELEASE< p4 affected
15.0-RELEASE< p14 affected
14.5-RELEASE< p1 affected
14.4-RELEASE< p10 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-58098

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Heap out-of-bounds access in semop(2)
Source: CVE Program / CVE List V5
Vulnerability Description
When semop(2) blocks waiting for a semaphore condition, it releases the per-set lock and sleeps. Upon waking, it checks the sequence number embedded in the semaphore set's IPC identifier to detect whether the set was removed while the caller was asleep. This sequence number is only 15 bits wide. If enough semaphore sets are created and destroyed in the same table slot while a caller is blocked, the counter wraps around, and semop(2) may falsely conclude that the original set still exists. The subsequent access to a semaphore within the set may then be out of bounds. An unprivileged local user can trigger an out-of-bounds access on kernel heap memory, potentially leading to privilege escalation.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
跨界内存写
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
FreeBSD FreeBSD 15.1-RELEASE ~ p4 -

II. Public POCs for CVE-2026-58098

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-58098

请登录查看更多情报信息。

Other References for CVE-2026-58098 (1)

Same Patch Batch · FreeBSD · 2026-10-15 · 13 CVEs total

CVE-2026-58099 Memory safety bugs in kqueue copy-on-fork implementation
CVE-2026-58100 Memory safety bugs in kqueue copy-on-fork implementation
CVE-2026-101302 Remote DoS via receive-side kernel TLS
CVE-2026-101306 Multiple jail filesystem root escapes
CVE-2026-101305 Multiple jail filesystem root escapes
CVE-2026-101304 Multiple jail filesystem root escapes
CVE-2026-101303 IPv6 UDP sendto(2) bypasses jail loopback restriction
CVE-2026-101307 Remotely triggerable buffer overflow in tcp_rack
CVE-2026-101308 TOCTOU race between sound(4) buffer resizing and mmap
CVE-2026-101311 Multiple vulnerabilities in bhyve device models
CVE-2026-101309 Multiple vulnerabilities in bhyve device models
CVE-2026-101310 Multiple vulnerabilities in bhyve device models

IV. Related Vulnerabilities

V. Comments for CVE-2026-58098

No comments yet


Leave a comment