CVE-2019-18683

MEDIUM

Description

An issue was discovered in drivers/media/platform/vivid in the Linux kernel through 5.3.8. It is exploitable for privilege escalation on some Linux distributions where local users have /dev/video0 access, but only if the driver happens to be loaded. There are multiple race conditions during streaming stopping in this driver (part of the V4L2 subsystem). These issues are caused by wrong mutex locking in vivid_stop_generating_vid_cap(), vivid_stop_generating_vid_out(), sdr_cap_stop_streaming(), and the corresponding kthreads. At least one of these race conditions leads to a use-after-free.

References

http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00029.html

http://www.openwall.com/lists/oss-security/2019/11/05/1

https://lore.kernel.org/lkml/[email protected]/

https://security.netapp.com/advisory/ntap-20191205-0001/

https://www.openwall.com/lists/oss-security/2019/11/02/1

Details

Source: MITRE

Published: 2019-11-04

Updated: 2019-12-05

Type: CWE-362

Risk Information

CVSS v2.0

Base Score: 6.9

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

Impact Score: 10

Exploitability Score: 3.4

Severity: MEDIUM

CVSS v3.0

Base Score: 7

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

Impact Score: 5.9

Exploitability Score: 1

Severity: HIGH