CVE 7.8 HIGH

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

7.8 / 10
HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

Basic Information

ID CVE-2026-39457
Source freebsd
Published Apr 30, 2026 at 08:01
Modified Apr 30, 2026 at 13:11

Affected Product

Vendor FreeBSD
Product FreeBSD
Version 15.0-RELEASE
Affected Versions FreeBSD FreeBSD 15.0-RELEASE
FreeBSD FreeBSD 14.4-RELEASE
FreeBSD FreeBSD 14.3-RELEASE
FreeBSD FreeBSD 13.5-RELEASE

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.