CVE-2026-39461

HIGH

select(2) file descriptor set overflow causes stack overflow

Title source: cna
STIX 2.1

Description

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.

References (1)

Core 1
Core References

Scores

CVSS v3 8.8
EPSS 0.0001
EPSS Percentile 0.3%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-121
Status published
Products (6)
freebsd/freebsd 14.3 (14 CPE variants)
freebsd/freebsd 14.4 (6 CPE variants)
freebsd/freebsd 15.0 (9 CPE variants)
FreeBSD/FreeBSD 14.3-RELEASE - p14
FreeBSD/FreeBSD 14.4-RELEASE - p5
FreeBSD/FreeBSD 15.0-RELEASE - p9
Published May 21, 2026
Tracked Since May 21, 2026