Skip to main content
← All vulnerabilities
CVE-2026-39457

Stack overflow via select() file descriptor set overflow

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in p7, p3, p12, p13
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  2. CVE published
  3. Record last updated

Affected versions

  • FreeBSD FreeBSD

    From 15.0-RELEASE · fixed in p7; From 14.4-RELEASE · fixed in p3; From 14.3-RELEASE · fixed in p12; From 13.5-RELEASE · fixed in p13

References 1

security.freebsd.org