Vulnerability database / CVE-2017-7187
CVE-2017-7187
HIGH 7.8 CVSS 3.1 The sg_ioctl function in drivers/scsi/sg.c in the Linux kernel through 4.10.4 allows local users to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a large command size in an SG_NEXT_CMD_LEN ioctl call, leading to out-of-bounds write access in the sg_write function.
Published 20 Mar 2017
Last modified 17 Jun 2026 Assigned by cve@mitre.org NVD status Modified Weakness
CWE-119 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 3.1
HIGH 7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD
nvd@nist.gov (Primary)
CVSS 2.0
HIGH 7.2
AV:L/AC:L/Au:N/C:C/I:C/A:C
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
linux
linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
< 3.18.50
3.18.50 NVD
linux
linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
>= 3.19, < 4.1.40
4.1.40 NVD
linux
linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
>= 4.2, < 4.4.60
4.4.60 NVD
linux
linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
>= 4.5, < 4.9.21
4.9.21 NVD
linux
linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
>= 4.10, < 4.10.9
4.10.9
References
History
25 Nov 2026 20:19 UTC · NVD: first stored (published 20 Mar 2017)