Description
An issue was discovered in the Linux kernel through 4.17.2. The filter parsing in kernel/trace/trace_events_filter.c could be called with no filter, which is an N=0 case when it expected at least one line to have been read, thus making the N-1 index invalid. This allows attackers to cause a denial of service (slab out-of-bounds write) or possibly have unspecified other impact via crafted perf_event_open and mmap system calls.
References (5)
Core 5
Core References
Exploit, Third Party Advisory x_refsource_misc
https://github.com/lcytxw/bug_repro/tree/master/bug_200019
Patch, Third Party Advisory x_refsource_misc
https://github.com/torvalds/linux/commit/81f9c4e4177d31ced6f52a89bb70e93bfb77ca03
Vendor Advisory x_refsource_misc
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=81f9c4e4177d31ced6f52a89bb70e93bfb77ca03
Issue Tracking, Vendor Advisory x_refsource_misc
https://bugzilla.kernel.org/show_bug.cgi?id=200019
Third Party Advisory, VDB Entry vdb-entry
x_refsource_bid
http://www.securityfocus.com/bid/104544
Scores
CVSS v3
9.8
EPSS
0.0170
EPSS Percentile
82.4%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-787
Status
published
Products (1)
linux/linux_kernel
4.17 - 4.17.4
Published
Jun 24, 2018
Tracked Since
Feb 18, 2026