CVE-2026-39461

select(2) file descriptor set overflow causes stack overflow

State
Published
Severity
8.8 High
Published
May 21, 2026
Updated
May 22, 2026
Reserved
Apr 28, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-121 Stack-based Buffer Overflow

Affected Products

ProductVersions
FreeBSDFreeBSD
  • 15.0-RELEASE to before p9Affected
  • 14.4-RELEASE to before p5Affected
  • 14.3-RELEASE to before p14Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.