# CVE-2026-39461: select(2) file descriptor set overflow causes stack overflow

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-05-21T09:20:26.126Z
- Modified: 2026-07-23T16:10:00.137Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: freebsd

## 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.

(As written by CVE List.)

## Affected

- FreeBSD FreeBSD: from 15.0-RELEASE before p9; from 14.4-RELEASE before p5; from 14.3-RELEASE before p14; 14.3; 14.4; 15.0

## References

- <https://security.freebsd.org/advisories/FreeBSD-SA-26:22.libcasper.asc> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-39461](https://www.cve.org/CVERecord?id=CVE-2026-39461), CVE Terms of Use, modified 2026-05-22
- NVD: [CVE-2026-39461](https://nvd.nist.gov/vuln/detail/CVE-2026-39461), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-39461 · Whole record: https://cve.day/CVE-2026-39461.json · Rebuilt by cve.day 2026-11-25T22:59:22.095Z
