Skip to main content
← All vulnerabilities
CVE-2026-45250

Stack buffer overflow via setcred(2)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in p9, p5, p14
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  2. CVE published
  3. Record last updated

Affected versions

  • FreeBSD FreeBSD

    From 15.0-RELEASE · fixed in p9; From 14.4-RELEASE · fixed in p5; From 14.3-RELEASE · fixed in p14

References 2

security.freebsd.org

GitHub · venglin/setcred