Privilege escalation in Linux Kernel



Published: 2018-06-28 | Updated: 2018-06-29
Risk Low
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2018-12714
CVE-2018-12904
CWE-ID CWE-787
CWE-264
Exploitation vector Local
Public exploit Public exploit code for vulnerability #1 is available.
Public exploit code for vulnerability #2 is available.
Vulnerable software
Subscribe
Linux kernel
Operating systems & Components / Operating system

Vendor Linux Foundation

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) Privilege escalation

EUVDB-ID: #VU13505

Risk: Low

CVSSv3.1: 7.9 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2018-12714

CWE-ID: CWE-787 - Out-of-bounds write

Exploit availability: No

Description

The vulnerability allows a local attacker to gain elevated privileges on the target system.

The vulnerability exists due to the filter-parsing component, as defined in the kernel/trace/trace_events_filter.c source code file of the affected software, could be called without a filter, which would result in an N=0 case. A local attacker can make perf_event_open and mmap system calls that submit malicious input, trigger a slab out-of-bounds write condition in the predicate_parse function and cause the system to crash or execute arbitrary code with elevated privileges.

Successful exploitation of the vulnerability may result in complete system compromise.

Mitigation

Install update from vendor's website.

Vulnerable software versions

Linux kernel: 4.15 - 4.17.2

External links

http://bugzilla.kernel.org/show_bug.cgi?id=200019


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.

2) Privilege escalation

EUVDB-ID: #VU13516

Risk: Low

CVSSv3.1: 7 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2018-12904

CWE-ID: CWE-264 - Permissions, Privileges, and Access Controls

Exploit availability: No

Description

The vulnerability allows a local attacker to gain elevated privileges on the target system.

The vulnerability exists due to insufficient checking of the current privilege level (CPL) for Virtual Machine Extensions (VMX) instructions by the arch/x86/kvm/vmx.c source code file when nested virtualization is used. A local attacker can cause a targeted L1 Kernel-based Virtual Machine (KVM) guest to exit and gain elevated privileges on the targeted L1 system, which could be used to conduct further attacks.

Mitigation

Install update from vendor's website.

Vulnerable software versions

Linux kernel: 4.15 - 4.17.2

External links

http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=727ba748e110b4de50d142edca9d6a9b7e6111d8


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



###SIDEBAR###