CVE-2017-7187
HIGHDescription
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 to fix
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Exploit Intelligence
Low risk: more likely to be exploited than 33% of all known CVEs.
References
Related Vulnerabilities
Other CWE-119 (Buffer Overflow) vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2023-4966 | Critical | 9.4 | 100% | KEV + Ransom | Fix |
| CVE-2017-11882 | High | 7.8 | 100% | KEV + Ransom | - |
| CVE-2020-0796 | Critical | 10.0 | 100% | KEV + Ransom | - |
| CVE-2008-4250 | Critical | 9.8 | 99% | KEV | - |
| CVE-2017-15944 | Critical | 9.8 | 98% | KEV | Fix |
| CVE-2015-0014 | High | 10.0 | 97% | - | - |
Embed a live status badge for CVE-2017-7187
Markdown
[](https://tridentstack.com/cve/CVE-2017-7187)HTML
<a href="https://tridentstack.com/cve/CVE-2017-7187"><img src="https://tridentstack.com/cve/badge/CVE-2017-7187.svg" alt="CVE-2017-7187"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
Start freeThis product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-05-13.