{"id":"CVE-2017-1000378","published":"2017-06-19T16:00:00Z","modified":"2024-08-05T22:00:41Z","title":"The NetBSD qsort() function is recursive, and not randomized, an attacker can construct a pathological input array of…","vendor":null,"product":null,"tier":"tail","description":{"text":"The NetBSD qsort() function is recursive, and not randomized, an attacker can construct a pathological input array of N elements that causes qsort() to deterministically recurse N/4 times. This allows attackers to consume arbitrary amounts of stack memory and manipulate stack memory to assist in arbitrary code execution attacks. This affects NetBSD 7.1 and possibly earlier versions.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04123,"percentile":0.91039,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.securityfocus.com/bid/99255","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt","tags":["x_refsource_MISC"]},{"url":"http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdlib/qsort.c?rev=1.23&content-type=text/x-cvsweb-markup","tags":["x_refsource_MISC"]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":18.21}]},"summary":{"text":"The NetBSD qsort() function in the standard C library is recursive and not randomized, so an attacker-controlled input array can be crafted to force deterministic recursion of roughly N/4 levels. This can exhaust stack memory and be used to manipulate stack contents in support of arbitrary code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:23:10Z"},"euvd":{"id":"EUVD-2017-1537","exploited":false,"provenance":"source"}}