CVE-2017-7187

HIGHCVSS 7.8/10EPSS 0.41%

Last modified

CVE-2017-7187 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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.. EPSS estimates a 0.41% chance of exploitation in the next 30 days.

Description

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.

Metrics

CVSS 3.1
7.8/10

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

EPSS Probability
0.41%

33.0th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
LinuxLinux Kernel< 3.18.50
LinuxLinux Kernel>= 3.19, < 4.1.40
LinuxLinux Kernel>= 4.2, < 4.4.60
LinuxLinux Kernel>= 4.5, < 4.9.21
LinuxLinux Kernel>= 4.10, < 4.10.9

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2017-7187?
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.
How severe is CVE-2017-7187?
CVE-2017-7187 has a CVSS score of 7.8/10 (HIGH severity). The EPSS model estimates a 0.41% probability of exploitation in the next 30 days.
How do I fix CVE-2017-7187?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2017-7187?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST