CVE-2026-45250
Modified Modified - Updated After Analysis
Stack Buffer Overflow in FreeBSD Kernel via Supplementary Groups

Publication date: 2026-05-21

Last updated on: 2026-05-22

Assigner: 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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-21
Last Modified
2026-05-22
Generated
2026-06-10
AI Q&A
2026-05-21
EPSS Evaluated
2026-06-09
NVD
EUVD
Affected Vendors & Products
Showing 29 associated CPEs
Vendor Product Version / Range
freebsd freebsd 15.0
freebsd freebsd 15.0
freebsd freebsd 14.3
freebsd freebsd 14.3
freebsd freebsd 14.3
freebsd freebsd 14.3
freebsd freebsd 14.3
freebsd freebsd 14.3
freebsd freebsd 14.3
freebsd freebsd 14.3
freebsd freebsd 14.3
freebsd freebsd 15.0
freebsd freebsd 14.4
freebsd freebsd 15.0
freebsd freebsd 14.3
freebsd freebsd 14.4
freebsd freebsd 15.0
freebsd freebsd 14.3
freebsd freebsd 14.3
freebsd freebsd 14.4
freebsd freebsd 14.4
freebsd freebsd 15.0
freebsd freebsd 15.0
freebsd freebsd 14.3
freebsd freebsd 14.3
freebsd freebsd 14.4
freebsd freebsd 14.4
freebsd freebsd 15.0
freebsd freebsd 15.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-121 A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-45250 is a stack buffer overflow vulnerability in FreeBSD's setcred(2) system call. The vulnerability arises because the system call copies a user-supplied list of supplementary groups into a fixed-size kernel stack buffer without first validating the length of that list.

Since the bounds check on the supplementary groups list occurs only after the buffer has been written, an unprivileged local user can trigger a stack buffer overflow by providing a list that exceeds the buffer's capacity.

This flaw allows an attacker to execute arbitrary code in the kernel context, potentially leading to privilege escalation.

Compliance Impact

The provided information does not specify how this vulnerability impacts compliance with common standards and regulations such as GDPR or HIPAA.

Impact Analysis

This vulnerability can allow an unprivileged local user to execute arbitrary code within the kernel, which can lead to gaining elevated privileges on the affected FreeBSD system.

Successful exploitation means an attacker could take full control of the system, bypassing normal security restrictions.

Mitigation Strategies

To mitigate the CVE-2026-45250 vulnerability, users should upgrade their FreeBSD systems by applying the official patches released by the FreeBSD Project for stable and release branches.

  • Use pkg or freebsd-update tools to install the patches.
  • Alternatively, apply the source code patches provided by the FreeBSD Project.
  • After patching, perform a system reboot to ensure the updates take effect.

No workaround is available, so timely patching and rebooting are critical.

Detection Guidance

There is no specific detection method or commands provided in the available resources to identify exploitation or presence of this vulnerability on a system or network.

The vulnerability is a local kernel stack buffer overflow triggered by the setcred(2) system call when an unprivileged user supplies an excessively long list of supplementary groups.

Detection would typically involve monitoring for unusual kernel panics or crashes related to setcred(2), but no explicit detection commands or signatures are mentioned.

The recommended action is to apply the official patches released by the FreeBSD Project and reboot the system to mitigate the vulnerability.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-45250. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart