Security restrictions bypass in Linux kernel - CVE-2017-17807

 

Security restrictions bypass in Linux kernel - CVE-2017-17807

Published: December 26, 2017


Vulnerability identifier: #VU9777
CSH Severity: Low
CVSS v4: 4.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-17807
CWE-ID: CWE-20
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local attacker to bypass security restrictions on the target system.

The weakness exists due to the KEYS subsystem in the Linux kernel omitted an access-control check when adding a key to the current task's "default request-key keyring" via the request_key() system call. A local attacker can use a sequence of crafted system calls to add keys to a keyring with only Search permission (not Write permission) to that keyring, related to construct_get_dest_keyring() in security/keys/request_key.c and bypass intended security restrictions.

Affected software

Linux kernel
Debian Linux
Ubuntu
linux (Ubuntu package)
linux-lts-xenial (Ubuntu package)
linux-aws (Ubuntu package)
linux-kvm (Ubuntu package)
linux-snapdragon (Ubuntu package)
linux-hwe (Ubuntu package)
linux-gcp (Ubuntu package)
linux-azure (Ubuntu package)
linux-oem (Ubuntu package)

How to mitigate CVE-2017-17807

Update to version 4.14.6.

linux (Ubuntu package) - addressed in versions 3.13.0-144.193, 4.4.0-119.143, 4.13.0-38.43
linux-lts-xenial (Ubuntu package) - update to 4.4.0-119.143~14.04.1
linux-aws (Ubuntu package) - addressed in versions 4.4.0-1016.16, 4.4.0-1054.63
linux-kvm (Ubuntu package) - update to 4.4.0-1020.25
linux-snapdragon (Ubuntu package) - update to 4.4.0-1088.93
linux-hwe (Ubuntu package) - update to 4.13.0-38.43~16.04.1
linux-gcp (Ubuntu package) - update to 4.13.0-1012.16
linux-azure (Ubuntu package) - update to 4.13.0-1014.17
linux-oem (Ubuntu package) - update to 4.13.0-1022.24

External References

Related Security Bulletins