Skip to content
OpenAdvisories
High · 7.8 Public exploit CVE-2026-45250 EUVD-2026-31252GHSA-qr94-c32q-xh3q

Stack buffer overflow via setcred(2)

Published May 21, 2026 · Updated May 22, 2026 · 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.

Affected products

VendorProductAffectedFixed
FreeBSD FreeBSD 15.0-RELEASE – < p9, 14.4-RELEASE – < p5, 14.3-RELEASE – < p14 p9

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • venglin/setcred ★ 22 · May 21, 2026

    CVE-2026-45250: FreeBSD 14.4 setcred kernel buffer overflow (LPE)

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 1

References