CVE-2026-39457

published 30 Apr 2026 · updated 11 Nov 2026

Stack overflow via select() file descriptor set overflow

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in p13, p12, p3 and 1 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
FreeBSDfreebsd=13.5, =14.3, =14.4, =15.0
FreeBSD>=13.5-RELEASE <p13, >=14.3-RELEASE <p12, >=14.4-RELEASE <p3, >=15.0-RELEASE <p7p13, p12, p3, p7

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-39457 severity on Zeptric[![CVE-2026-39457](https://zeptric.io/badge/cve/CVE-2026-39457.svg)](https://zeptric.io/cve/CVE-2026-39457)