CVE-2026-58083

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

Published Aug 19, 2026 CVSS 3.1 · 8.4 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

During a fork, the kernel copies knote objects for kqueue. When a timer‑based knote fires while this copy is underway, the knote can be enqueued twice, corrupting the active list. Because the copy routine does not lock the structure or verify state, the list corruption leads to a use‑after‑free in the kernel. The weakness is classified as CWE‑416 and enables an unprivileged local user to gain elevated privileges.

Affected Systems

The affected vendor is FreeBSD; the vulnerability is in the FreeBSD kernel kqueue subsystem. No specific version ranges are listed, so any kernel build that has not applied the vendor’s patch is potentially vulnerable.

Risk and Exploitability

The CVSS score of 8.4 indicates high severity. The EPSS score is below 1 %, showing a low probability of exploitation at present, and the issue is not in the CISA KEV catalog. Nevertheless, because the attack requires only local access and can be triggered by any unprivileged user, the risk of privilege escalation remains significant for administrators. Prompt remediation is advisable.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest FreeBSD security patch that addresses the kqueue copy‑on‑fork issue.
  • Upgrade to the newest FreeBSD release whose kernel includes the fix.
  • If a patch is unavailable, restrict unprivileged users from accessing kqueue timers by configuring appropriate kernel parameters or ACLs and monitor for unusual kqueue activity.

Generated by OpenCVE AI on August 20, 2026 at 17:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:o:freebsd:freebsd:15.1:-:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:p1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:rc2:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:rc3-p1:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Freebsd
Freebsd freebsd
Vendors & Products Freebsd
Freebsd freebsd
Type Values Removed Values Added
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.
Title Use-after-free in kqueue copy-on-fork
Weaknesses CWE-416
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
freebsd
Published
Updated
Aug 20, 2026, 3:55 AM
Reserved
Jun 29, 2026, 1:40 AM
Status
Analyzed
Published
Aug 19, 2026, 8:17 AM
Modified
Oct 27, 2026, 12:10 PM