Bug 1771826 (CVE-2019-18683) - CVE-2019-18683 kernel: race condition in vivid_stop_generating_vid_cap(),vivid_stop_generating_vid_out(), sdr_cap_stop_streaming()
Summary: CVE-2019-18683 kernel: race condition in vivid_stop_generating_vid_cap(),vivi...
Alias: CVE-2019-18683
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1771828
Blocks: 1771829
TreeView+ depends on / blocked
Reported: 2019-11-13 05:18 UTC by Dhananjay Arunesh
Modified: 2021-02-16 21:04 UTC (History)
47 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel. Multiple race conditions were found in the vivid driver leading to privilege escalation and in at least one case a use-after-free condition. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Clone Of:
Last Closed: 2019-12-06 11:00:04 UTC

Attachments (Terms of Use)

Description Dhananjay Arunesh 2019-11-13 05:18:15 UTC
An issue was discovered in drivers/media/platform/vivid in the Linux kernel. 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.


Comment 1 Dhananjay Arunesh 2019-11-13 05:18:44 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1771828]

Comment 2 Justin M. Forbes 2019-11-14 17:20:07 UTC
The vivid drivers are not enabled for Fedora as they depend on CONFIG_V4L_TEST_DRIVERS.

Note You need to log in before you can comment on or make changes to this bug.