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

Published Apr 30, 2026
·
Updated

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 FDSETSIZE (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 Software

38 affected components
libnv
FreeBSD FreeBSD=13.5
FreeBSD FreeBSD=13.5-beta3
FreeBSD FreeBSD=13.5-p1
FreeBSD FreeBSD=13.5-p10
FreeBSD FreeBSD=13.5-p11
FreeBSD FreeBSD=13.5-p12
FreeBSD FreeBSD=13.5-p2
FreeBSD FreeBSD=13.5-p3
FreeBSD FreeBSD=13.5-p4
FreeBSD FreeBSD=13.5-p5
FreeBSD FreeBSD=13.5-p6
FreeBSD FreeBSD=13.5-p7
FreeBSD FreeBSD=13.5-p8
FreeBSD FreeBSD=13.5-p9
FreeBSD FreeBSD=14.3
FreeBSD FreeBSD=14.3-p1
FreeBSD FreeBSD=14.3-p10
FreeBSD FreeBSD=14.3-p11
FreeBSD FreeBSD=14.3-p2
FreeBSD FreeBSD=14.3-p3
FreeBSD FreeBSD=14.3-p4
FreeBSD FreeBSD=14.3-p5
FreeBSD FreeBSD=14.3-p6
FreeBSD FreeBSD=14.3-p7
FreeBSD FreeBSD=14.3-p8
FreeBSD FreeBSD=14.3-p9
FreeBSD FreeBSD=14.4
FreeBSD FreeBSD=14.4-p1
FreeBSD FreeBSD=14.4-p2
FreeBSD FreeBSD=14.4-rc1
FreeBSD FreeBSD=15.0
FreeBSD FreeBSD=15.0-p1
FreeBSD FreeBSD=15.0-p2
FreeBSD FreeBSD=15.0-p3
FreeBSD FreeBSD=15.0-p4
FreeBSD FreeBSD=15.0-p5
FreeBSD FreeBSD=15.0-p6

Event History

Apr 30, 2026
CVE Published
via MITRE·08:01 AM
Data Sourced
via MITRE·08:01 AM
DescriptionWeakness
Data Sourced
via NVD·09:16 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-39457?

CVE-2026-39457 has a high severity rating due to its potential for causing denial of service through stack overflow.

2

How do I fix CVE-2026-39457?

To fix CVE-2026-39457, update libnv to the latest version that addresses the overflow issue.

3

What versions are affected by CVE-2026-39457?

CVE-2026-39457 affects various FreeBSD versions including 13.5 and 14.3.

4

What types of attacks does CVE-2026-39457 enable?

CVE-2026-39457 can enable denial of service attacks by causing a stack overflow in affected applications.

5

Is there a workaround for CVE-2026-39457?

A practical workaround for CVE-2026-39457 is to limit the number of file descriptors used by the application.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203