FreeBSD : FreeBSD -- jail_attach(2) relies on the caller to change the cwd (bba850fd-770e-11eb-b87a-901b0ef719ab)

high Nessus Plugin ID 146845
New! Vulnerability Priority Rating (VPR)

Tenable calculates a dynamic VPR for every vulnerability. VPR combines vulnerability information with threat intelligence and machine learning algorithms to predict which vulnerabilities are most likely to be exploited in attacks. Read more about what VPR is and how it is different from CVSS.

VPR Score: 6.3

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

When a process, such as jexec(8) or killall(1), calls jail_attach(2) to enter a jail, the jailed root can attach to it using ptrace(2) before the current working directory is changed. Impact : A process with superuser privileges running inside a jail could change the root directory outside of the jail, thereby gaining full read and writing access to all files and directories in the system.

Solution

Update the affected packages.

See Also

http://www.nessus.org/u?9efeefaa

Plugin Details

Severity: High

ID: 146845

File Name: freebsd_pkg_bba850fd770e11ebb87a901b0ef719ab.nasl

Version: 1.3

Type: local

Published: 2/25/2021

Updated: 4/6/2021

Dependencies: ssh_get_info.nasl

Configuration: Enable paranoid mode

Risk Information

Risk Factor: High

VPR Score: 6.3

CVSS Score Source: CVE-2020-25582

CVSS v2.0

Base Score: 8.5

Temporal Score: 6.3

Vector: AV:N/AC:L/Au:S/C:C/I:C/A:N

Temporal Vector: E:U/RL:OF/RC:C

CVSS v3.0

Base Score: 8.7

Temporal Score: 7.6

Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N

Temporal Vector: E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:FreeBSD, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info, Settings/ParanoidReport

Exploit Ease: No known exploits are available

Patch Publication Date: 2/25/2021

Vulnerability Publication Date: 2/24/2021

Reference Information

CVE: CVE-2020-25582

FreeBSD: SA-21:05.jail_chdir