CVE-2026-49419
JSON

8.8high

Jail reference count underflow

Severity
8.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
freebsd

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.

Affected

Product or packageVersionsReported by
FreeBSD FreeBSDfrom 15.1-RELEASE before p1, from 15.0-RELEASE before p11, 15.0, 15.1CVE List, NVD

Classification

CWE-911

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Cuando se especifica la bandera JAIL_AT_DESC, kern_jail_set() y kern_jail_get() liberaron la referencia a la prisión actual del llamador antes de buscar el descriptor de jail. Si la búsqueda del descriptor fallaba, las rutas de manejo de errores liberaban la misma referencia una segunda vez. Un usuario local sin privilegios puede desencadenar un desbordamiento negativo del contador de referencias de prisión, lo que puede causar que la estructura de prisión sea liberada mientras aún está en uso. Cuando esto se hace en el host de jail, el error generalmente resultará en un pánico inmediato. Sin embargo, si el usuario se está ejecutando en un jail, entonces puede ser posible exploit el error para elevar privilegios.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-49419 changed 2026-08-20CVE Terms of Use
NVDCVE-2026-49419 changed 2026-11-05Public domain