Description
When the JAIL_AT_DESC flag is specified, kern_jail_set() and kern_jail_get() released the reference to the caller's current prison before looking up the jail descriptor. If the descriptor lookup failed, error-handling paths released the same reference a second time. An unprivileged local user can trigger a prison reference count underflow, which may cause the prison structure to be freed while still in use. When this is done on the jail host, the bug will generally result in an immediate panic. However, if the user is running in a jail, then it may be possible to exploit the bug to elevate privileges.
Weaknesses
- CWE-911 — CWE-911: Improper Update of Reference Count
Affected products
| Vendor | Product | Versions |
|---|---|---|
| FreeBSD | FreeBSD | 15.1-RELEASE to <p1; 15.0-RELEASE to <p11 |
References
- https://security.freebsd.org/advisories/FreeBSD-SA-26:38.jail.asc (vendor-advisory)
Generated from the official CVE List on 19 Aug 2026 07:05 UTC.