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.
Published: 2026-10-15
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: Privilege escalation
Action: Apply Patch
AI Analysis

Impact

The vulnerability is a race condition and use‑after‑free in the FreeBSD kqueue copy‑on‑fork path. When a parent process’s kqueue knotes are in a fork, marker knotes are not correctly removed before the kqueue lock is released. If a concurrent thread frees a marker while the lock is dropped, the subsequent in‑flux decrement operates on freed memory. This flaw can be triggered by an unprivileged local user and may allow that user to elevate privileges to an arbitrary level, potentially root. The weakness is characterized by the Common Weakness Enumerations for Race Condition (CWE‑362) and Use After Free (CWE‑416).

Affected Systems

The flaw resides in the FreeBSD operating system, affecting the kqueue subsystem. No specific release or version was listed in the advisory, so all potentially vulnerable FreeBSD installations that have not applied the patch identified in the FreeBSD Security Advisory (FreeBSD‑SA‑26:65.kqueue) are at risk.

Risk and Exploitability

Exploitation requires a local account and the presence of concurrent threads that can free a kqueue marker during the race. The EPSS score of <1% indicates that exploitation is unlikely to have occurred publicly, yet local attacks remain feasible, and the vulnerability is not listed in the CISA KEV catalog. Because privilege escalation is possible, the risk is significant. Attacks would likely be performed by a local attacker with sufficient process‑level concurrency to trigger the race, enabling them to gain elevated privileges. The CVSS score of 7 indicates high severity.

Generated by OpenCVE AI on October 19, 2026 at 17:07 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor‑supplied patch or upgrade to a FreeBSD release that includes the kqueue copy‑on‑fork fix identified in the FreeBSD-SA‑26:65.kqueue advisory.
  • Limit unprivileged local users from accessing kqueue copy‑on‑fork functionality, for example by configuring appropriate MAC or access‑control policies to restrict the use of the relevant system calls.
  • Monitor system logs for abnormal kqueue activity and set audit rules to alert on potential misuse of kqueue after fork.

Generated by OpenCVE AI on October 19, 2026 at 17:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 21:15:00 +0000

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:p2:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:p3:*:*:*:*:*:*

Mon, 19 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


Sat, 17 Oct 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Freebsd
Freebsd freebsd
Vendors & Products Freebsd
Freebsd freebsd

Fri, 16 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 15 Oct 2026 06:45:00 +0000

Type Values Removed Values Added
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.
Title Memory safety bugs in kqueue copy-on-fork implementation
Weaknesses CWE-362
CWE-416
References

cve-icon MITRE

Status: PUBLISHED

Assigner: freebsd

Published:

Updated: 2026-10-19T14:10:47.179Z

Reserved: 2026-06-29T01:40:17.499Z

Link: CVE-2026-58099

cve-icon Vulnrichment

Updated: 2026-10-16T14:17:43.395Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-15T07:18:02.373

Modified: 2026-10-19T21:02:15.750

Link: CVE-2026-58099

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T17:15:06Z

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free