CVE-2025-15547

8.8

FreeBSD · FreeBSD

A privilege management flaw in FreeBSD allows a jailed root user to escape the chroot environment and access the host filesystem by leveraging the nullfs mount functionality.

Executive summary

A vulnerability in FreeBSD enables a privileged jailed user to escape their container and gain full access to the host filesystem, posing a critical risk to system isolation.

Vulnerability

This is an improper privilege management issue (CWE-269) occurring within the kernel path lookup logic. A user with root privileges inside a jail configured with the allow.mount.nullfs option can exploit this flaw to escape the jail and access the host or parent jail filesystem.

Business impact

Successful exploitation of this vulnerability results in a complete compromise of the jail sandbox, allowing an attacker to escape into the underlying host environment. This leads to unauthorized access to sensitive host data, potential privilege escalation, and total system control. With a CVSS score of 8.8, this vulnerability is classified as High, reflecting the severe impact of a container breakout on infrastructure integrity and data confidentiality.

Remediation

Immediate Action: Apply the vendor-supplied security patches by updating to FreeBSD 14.3-RELEASE-p8 or 13.5-RELEASE-p9 as detailed in the FreeBSD security advisory.

Proactive Monitoring: Monitor system logs for unusual mount operations or unauthorized attempts to access files outside of established jail boundaries.

Compensating Controls: Disable the allow.mount.nullfs option for all jails where nullfs mounting is not strictly required to minimize the attack surface until patching can be completed.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

Given the severity of a container breakout, administrators must prioritize patching affected FreeBSD systems immediately. Implementing the vendor-provided updates is the only definitive way to resolve the underlying kernel logic error. In environments where immediate patching is not feasible, ensure that jail configurations are audited to restrict the mount capabilities of jailed users.

More FreeBSD CVEs

Sources