CVE-2026-58099 PUBLISHED

Memory safety bugs in kqueue copy-on-fork implementation

Assigner: freebsd
Reserved: 29.06.2026 Published: 15.10.2026 Updated: 15.10.2026

When copying knotes from a parent kqueue to a child, the copy code did not correctly exclude marker knotes (used internally to track list traversal position) before marking them as in-flux and releasing the kqueue lock. If another thread freed a marker while the lock was dropped, the subsequent in-flux decrement operated on freed memory.

An unprivileged local user may be able to exploit these races to escalate privileges.

Product Status

Vendor FreeBSD
Product FreeBSD
Versions Default: unknown
  • affected from 15.1-RELEASE to p4 (excl.)

Credits

  • Reo Shiseki finder
  • Mark Johnston finder

References

Problem Types

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') CWE
  • CWE-416: Use After Free CWE