CVE-2026-39461

published 21 May 2026 · updated 22 May 2026

select(2) file descriptor set overflow causes stack overflow

8.8HighCVSS 8.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in p14, p5 and p9.

libcasper(3) communicates with helper processes via UNIX domain sockets, and uses the select(2) system call to wait for data to become available. However, it does not verify that its socket descriptor fits within select(2)'s descriptor set size limit of FD_SETSIZE (1024). An attacker able to cause an application using libcasper(3) to allocate large file descriptors, e.g., by opening many descriptors and executing a program which is not careful to close them upon startup, may trigger stack corruption. If the target application runs with setuid root privileges, this could be used to escalate local privileges.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
FreeBSD>=14.3-RELEASE <p14, >=14.4-RELEASE <p5, >=15.0-RELEASE <p9p14, p5, p9

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-39461 severity on Zeptric[![CVE-2026-39461](https://zeptric.io/badge/cve/CVE-2026-39461.svg)](https://zeptric.io/cve/CVE-2026-39461)