CVE-2026-58083 PUBLISHED

Use-after-free in kqueue copy-on-fork

Assigner: freebsd
Reserved: 29.06.2026 Published: 19.08.2026 Updated: 19.08.2026

While the kernel was copying knotes during fork, a knote with a timer-based filter could fire and be enqueued on the kqueue's active list before the copy was complete. The copy routine did not account for this and could enqueue the new knote a second time, corrupting the active list. In addition, the copy routine did not hold the appropriate locks while reading knote state, allowing further races.

An unprivileged local user can trigger a use-after-free in the kernel, potentially leading to privilege escalation.

Product Status

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

Credits

  • Hazley Samsudin of GovTech CSG finder

References

Problem Types

  • CWE-416: Use After Free CWE