FreeBSD
Kernel use-after-free via file descriptor syscalls
A file descriptor can be closed while a thread is blocked in a poll(2) or select(2) call waiting for that descriptor. Because the blocked thread does not hold a reference to the underlying object, this closure may result in the object being freed while the thread remains blocked. In this situation, the kernel must remove the blocked thread from the per-object wait queue prior to freeing the object. In the case of some file descriptor types, the kernel failed to unlink blocked threads from the object before freeing it. When the blocked thread is subsequently woken, it accesses memory that has already been freed resulting in a use-after-free vulnerability. The use-after-free vulnerability may be triggered by an unprivileged local user and can be exploited to obtain superuser privileges.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 15.0-RELEASE, < p9
- >= 14.4-RELEASE, < p5
- >= 14.3-RELEASE, < p14
Fixed in p9, p5, p14
Mitigation
Upgrade FreeBSD to p9 or p5 or p14 or later.
References
- Vendor advisory security.freebsd.org/advisories/FreeBSD-SA-26:19.file.as…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.