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… (CVE-2026-49419)
CVE-2026-49419 is a vulnerability in the kern_jail_set() and kern_jail_get() functions where the JAIL_AT_DESC flag causes a reference count underflow on the prison structure. This occurs because the reference to the caller's current prison is released twice if the jail descriptor lookup fails. An unprivileged local user can trigger this flaw, potentially causing a kernel panic on the jail host or privilege escalation if exploited from within a jail.
AI Analysis
Technical Summary
The vulnerability arises when kern_jail_set() and kern_jail_get() release the reference to the caller's current prison before looking up the jail descriptor with the JAIL_AT_DESC flag. If the descriptor lookup fails, error-handling code releases the same reference again, causing a reference count underflow. This can lead to the prison structure being freed while still in use. On the jail host, this typically results in an immediate kernel panic. However, if exploited from within a jail, it may allow an unprivileged local user to escalate privileges.
Potential Impact
An unprivileged local user can cause a prison reference count underflow, leading to use-after-free conditions. On the jail host, this results in a kernel panic causing denial of service. Within a jail, the vulnerability may be exploited for privilege escalation, potentially allowing the attacker to gain higher privileges than intended.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict unprivileged local user access and avoid running untrusted code within jails. Monitor vendor channels for official patches or temporary mitigations.
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… (CVE-2026-49419)
Description
CVE-2026-49419 is a vulnerability in the kern_jail_set() and kern_jail_get() functions where the JAIL_AT_DESC flag causes a reference count underflow on the prison structure. This occurs because the reference to the caller's current prison is released twice if the jail descriptor lookup fails. An unprivileged local user can trigger this flaw, potentially causing a kernel panic on the jail host or privilege escalation if exploited from within a jail.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises when kern_jail_set() and kern_jail_get() release the reference to the caller's current prison before looking up the jail descriptor with the JAIL_AT_DESC flag. If the descriptor lookup fails, error-handling code releases the same reference again, causing a reference count underflow. This can lead to the prison structure being freed while still in use. On the jail host, this typically results in an immediate kernel panic. However, if exploited from within a jail, it may allow an unprivileged local user to escalate privileges.
Potential Impact
An unprivileged local user can cause a prison reference count underflow, leading to use-after-free conditions. On the jail host, this results in a kernel panic causing denial of service. Within a jail, the vulnerability may be exploited for privilege escalation, potentially allowing the attacker to gain higher privileges than intended.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict unprivileged local user access and avoid running untrusted code within jails. Monitor vendor channels for official patches or temporary mitigations.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-w2h3-c2wj-whwm
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-49419"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4b9acd9273b4925188f
Added to database: 08/19/2026, 13:50:49 UTC
Last enriched: 08/19/2026, 14:21:13 UTC
Last updated: 08/19/2026, 14:21:13 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.