# CVE-2026-39457: Stack overflow via select() file descriptor set overflow

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-04-30T08:01:49.015Z
- Modified: 2026-11-11T21:10:00.200Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: freebsd

## Description

When exchanging data over a socket, libnv uses select(2) to wait for data to arrive.  However, it does not verify whether the provided socket descriptor fits in select(2)'s file descriptor set size limit of FD_SETSIZE (1024).

An attacker who is able to force a libnv application to allocate large file descriptors, e.g., by opening many descriptors and executing a program which is not careful to close them upon startup, can trigger stack corruption.  If the target application is setuid-root, then this could be used to elevate local privileges.

(As written by CVE List.)

## Affected

- FreeBSD FreeBSD: from 15.0-RELEASE before p7; from 14.4-RELEASE before p3; from 14.3-RELEASE before p12; from 13.5-RELEASE before p13; 13.5; 14.3; 14.4; 15.0

## References

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

## Sources

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

---

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