CVE-2026-49419: Jail reference count underflow

Published Aug 19, 2026
·
Updated

When the JAILATDESC flag is specified, kernjailset() and kernjailget() 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.

Affected Software

1 affected component
FreeBSD FreeBSD jail (kern_jail_set/kern_jail_get)

Event History

Aug 19, 2026
CVE Published
via MITRE·04:32 AM
Data Sourced
via MITRE·04:32 AM
DescriptionWeakness

Frequently Asked Questions

1

Who is most at risk from this issue?

The primary privilege-escalation risk is to systems that allow unprivileged users to run inside a jail. On the jail host, triggering the flaw will generally cause an immediate kernel panic rather than privilege escalation.

2

What must an attacker be able to do to trigger the flaw?

An unprivileged local user must be able to invoke kern_jail_set() or kern_jail_get() with the JAIL_AT_DESC flag and cause the jail descriptor lookup to fail. The vulnerable error path then releases the caller's current prison reference twice.

3

What can be done if patching cannot happen immediately?

The provided information identifies unprivileged users running in jails as the privilege-escalation scenario. Restricting unprivileged access within jails can reduce exposure until a fix is applied.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203