# CVE-2026-45250: Stack buffer overflow via setcred(2)

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-05-21T08:37:17.553Z
- Modified: 2026-07-23T16:10:00.137Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: freebsd

## 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.

(As written by CVE List.)

## Affected

- FreeBSD FreeBSD: from 15.0-RELEASE before p9; from 14.4-RELEASE before p5; from 14.3-RELEASE before p14; 14.3; 14.4; 15.0

## References

- <https://security.freebsd.org/advisories/FreeBSD-SA-26:18.setcred.asc> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/05/21/3>
- <http://www.openwall.com/lists/oss-security/2026/05/21/18>
- <http://www.openwall.com/lists/oss-security/2026/05/22/5>

## Sources

- CVE List: [CVE-2026-45250](https://www.cve.org/CVERecord?id=CVE-2026-45250), CVE Terms of Use, modified 2026-05-22
- NVD: [CVE-2026-45250](https://nvd.nist.gov/vuln/detail/CVE-2026-45250), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-45250 · Whole record: https://cve.day/CVE-2026-45250.json · Rebuilt by cve.day 2026-11-25T22:59:22.093Z
