# CVE-2026-58099: Memory safety bugs in kqueue copy-on-fork implementation

- Severity: High 7.0 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-10-15T06:31:18.042Z
- Modified: 2026-10-19T21:02:15.750Z
- Weaknesses: CWE-362, CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: freebsd

## Description

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.

(As written by CVE List.)

## Affected

- FreeBSD FreeBSD: from 15.1-RELEASE before p4; 15.1

## References

- <https://security.freebsd.org/advisories/FreeBSD-SA-26:65.kqueue.asc> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-58099](https://www.cve.org/CVERecord?id=CVE-2026-58099), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-58099](https://nvd.nist.gov/vuln/detail/CVE-2026-58099), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-58099 · Whole record: https://cve.day/CVE-2026-58099.json · Rebuilt by cve.day 2026-11-25T22:59:44.850Z
