FreeBSD libcasper Privilege Escalation Vulnerability via File Descriptor Overflow

Vulnerability

A vulnerability in libcasper, a FreeBSD library that allows Capsicum-sandboxed applications to access restricted system interfaces, has been identified. The issue arises because libcasper does not properly validate socket descriptors before using the select system call to monitor data availability. This oversight can lead to stack corruption, particularly if an application allocates large file descriptors by leaving many open and then executing a program that fails to close them. The vulnerability is especially concerning if the affected application has setuid root privileges, as it could be exploited to escalate local privileges.

Impact

Exploitation of this vulnerability can cause stack corruption, with the potential to escalate local privileges, especially if the target application is running with setuid root rights.

Remediation

Users can upgrade to a supported FreeBSD version that has addressed this vulnerability. Instructions for updating via the pkg utility, freebsd-update utility, or by applying a source code patch are available in the FreeBSD Security Advisory.

Added: May 21, 2026, 10:25 AM
Updated: May 21, 2026, 10:25 AM

Vulnerability Rating

Custom Algorithm
spread
5.4
impact
7.5
exploitability
2.3
remediation
7.7
relevance
9.0
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.