What’s Vulnerable › Vulnerabilities
CVE-2026-45250: Stack buffer overflow via setcred(2)
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-21 · updated 2026-07-23
- Weakness: CWE-121
Description
The setcred(2) system call is only available to privileged users. However, before the privilege level of the caller is checked, the user-supplied list of supplementary groups is copied into a fixed-size kernel stack buffer without first validating its length. If the supplied list exceeds the capacity of that buffer, a stack buffer overflow occurs. Because the bounds check on the supplementary groups list occurs after the kernel stack buffer has already been written, an unprivileged local user may trigger the overflow without holding any special privilege. Successful exploitation may allow an attacker to execute arbitrary code in the context of the kernel, allowing an unprivileged local user to gain elevated privileges on the affected system.
Affected products
- FreeBSD: 14.3, 14.3-p1, 14.3-p10, 14.3-p11, 14.3-p12, 14.3-p13 (+23)
References
- https://security.freebsd.org/advisories/FreeBSD-SA-26:18.setcred.asc
- http://www.openwall.com/lists/oss-security/2026/05/21/18
- http://www.openwall.com/lists/oss-security/2026/05/21/3
- http://www.openwall.com/lists/oss-security/2026/05/22/5
Get alerted when CVE-2026-45250 or the next vulnerability affects your stack