HarborGuard / CVE
Back to search
HIGHCVE-2026-39457Published Modified CNA freebsd

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

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.

Metrics

CVSS v3.1
7.8
Severity
HIGH
Fixed in
p12
Affected Products
1

Fix available

p12p13p3p7
Affected packages
  • FreeBSD / FreeBSD
    < p7 (from 15.0-RELEASE) · < p3 (from 14.4-RELEASE) · < p12 (from 14.3-RELEASE) · < p13 (from 13.5-RELEASE)
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVE-2026-39457: Stack overflow via select() file descriptor set overflow | HarborGuard CVE