8.4high
Use-after-free in kqueue copy-on-fork
- Severity
- 8.4high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.12% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- freebsd
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| FreeBSD FreeBSD | from 15.1-RELEASE before p2, 15.1 | CVE List, NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Mientras el kernel copiaba knotes durante el fork, un knote con un filtro basado en temporizador podría activarse y ser encolado en la lista activa del kqueue antes de que la copia estuviera completa. La rutina de copia no tuvo esto en cuenta y podría encolar el nuevo knote una segunda vez, corrompiendo la lista activa. Además, la rutina de copia no mantenía los bloqueos apropiados mientras leía el estado del knote, permitiendo más condiciones de carrera. Un usuario local sin privilegios puede desencadenar un uso después de liberación en el kernel, lo que podría llevar a una escalada de privilegios.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-58083 changed 2026-08-20 | CVE Terms of Use |
| NVD | CVE-2026-58083 changed 2026-10-27 | Public domain |