CVE-2017-7187: Linux Kernel

High severity, CVSS 7.8. EPSS: 0.4% chance of exploitation in the next 30 days.

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.

Affected products

  • Linux Linux Kernel: before 3.18.50 (fixed in 3.18.50); from 3.19, before 4.1.40 (fixed in 4.1.40); from 4.2, before 4.4.60 (fixed in 4.4.60); from 4.5, before 4.9.21 (fixed in 4.9.21); from 4.10, before 4.10.9 (fixed in 4.10.9)

Published 2017-03-20. Last modified 2026-06-17.