Vulnerabilities · 2017 · Linux
CVE-2017-7187
Linux Kernel vulnerability
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 Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=4.11/scsi-fixes&id=bf33f87d · Patch
- www.securityfocus.com/bid/96989 · Third Party Advisory
- www.securitytracker.com/id/1038086 · Third Party Advisory
- access.redhat.com/errata/RHSA-2017:1842 · Third Party Advisory
- access.redhat.com/errata/RHSA-2017:2077 · Third Party Advisory
- access.redhat.com/errata/RHSA-2017:2669 · Third Party Advisory
- gist.github.com/dvyukov/48ad14e84de45b0be92b7f0eda20ff1b · Third Party Advisory
- source.android.com/security/bulletin/pixel/2017-10-01 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2017-7187
- cve.org/CVERecord?id=CVE-2017-7187
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.