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.
CVE-2017-7187
Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2022-05-14. NVD baseline CVSS 7.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 7.8(medium)
- EPSS
- 33.3%
- KEV
- Not listed
Published
March 20, 2017
Last Modified
May 13, 2026
References (16)
- cve@mitrehttp://www.securityfocus.com/bid/96989
- cve@mitrehttp://www.securitytracker.com/id/1038086
- cve@mitrehttps://access.redhat.com/errata/RHSA-2017:1842
- cve@mitrehttps://access.redhat.com/errata/RHSA-2017:2077
- cve@mitrehttps://access.redhat.com/errata/RHSA-2017:2669
- cve@mitrehttps://gist.github.com/dvyukov/48ad14e84de45b0be92b7f0eda20ff1b
- cve@mitrehttps://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=4.11/scsi-fixes&id=bf33f87dd04c371ea33feb821b60d63d754e3124
- cve@mitrehttps://source.android.com/security/bulletin/pixel/2017-10-01
- af854a3a-2127-422b-91ae-364da2661108http://www.securityfocus.com/bid/96989
- af854a3a-2127-422b-91ae-364da2661108http://www.securitytracker.com/id/1038086
- af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2017:1842
- af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2017:2077
- af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2017:2669
- af854a3a-2127-422b-91ae-364da2661108https://gist.github.com/dvyukov/48ad14e84de45b0be92b7f0eda20ff1b
- af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=4.11/scsi-fixes&id=bf33f87dd04c371ea33feb821b60d63d754e3124
Vendor Advisories for CVE-2017-7187(3)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2017:2669Red Hat Product SecurityHigh
Red Hat Security Advisory: kernel-rt security and bug fix update
- RHSA-2017:1842Red Hat Product SecurityHigh
Red Hat Security Advisory: kernel security, bug fix, and enhancement update
- RHSA-2017:2077Red Hat Product SecurityHigh
Red Hat Security Advisory: kernel-rt security, bug fix, and enhancement update
Patch Availability(10)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | linux-image-extra-4.10.0-27-generic (4.10.0-27.30~16.04.2) @ xenial | 2026-05-22 | ubuntu |
| ubuntu | linux-image-extra-4.4.0-1013-gke (4.4.0-1013.13) @ xenial | 2026-05-22 | ubuntu |
| ubuntu | linux-image-extra-3.13.0-132-generic (3.13.0-132.181) @ trusty | 2026-05-22 | ubuntu |
| ubuntu | linux-image-raspi2 (4.10.0.1005.7) @ zesty | 2026-05-22 | ubuntu |
| ubuntu | linux-image-3.13.0-132-generic-lpae (3.13.0-132.181~precise1) @ precise | 2026-05-22 | ubuntu |
| ubuntu | linux-image-extra-4.4.0-78-generic (4.4.0-78.99) @ xenial | 2026-05-22 | ubuntu |
| ubuntu | linux-image-extra-4.4.0-78-generic (4.4.0-78.99~14.04.2) @ trusty | 2026-05-22 | ubuntu |
| redhat | kernel-rt-1:3.10.0-693.2.1.rt56.585.el6rt | 2017-09-06 | redhat |
| redhat | kernel-0:3.10.0-693.el7 | 2017-08-01 | redhat |
| redhat | kernel-rt-0:3.10.0-693.rt56.617.el7 | 2017-08-01 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Additional Vendor Advisories
(7)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- UbuntuUSN-3291-1MEDIUM
Linux kernel vulnerabilities
- UbuntuUSN-3291-2MEDIUM
Linux kernel vulnerabilities
- UbuntuUSN-3291-3MEDIUM
Linux kernel (Xenial HWE) vulnerabilities
- UbuntuUSN-3293-1MEDIUM
Linux kernel vulnerabilities
- UbuntuUSN-3361-1MEDIUM
Linux kernel (HWE) vulnerabilities
- UbuntuUSN-3422-1MEDIUM
Linux kernel vulnerabilities
- UbuntuUSN-3422-2MEDIUM
Linux kernel (Trusty HWE) vulnerabilities
Data Freshness Timeline
(refreshed 12× in last 7d / 45× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 101 total refreshes for this CVE.
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-02 16:54 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-28 14:04 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-23 08:30 UTCOSV refresh
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-11 13:57 UTCEPSS rescore
- 2026-06-10 22:15 UTCEPSS rescore
- 2026-06-10 13:19 UTCEPSS rescore
- 2026-06-08 14:14 UTCEPSS rescore
- 2026-06-08 14:14 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-06 07:34 UTCOSV refresh
- 2026-06-05 22:44 UTCEPSS rescore
- 2026-06-05 22:44 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-05-31 22:28 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-29 13:41 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-27 13:38 UTCEPSS rescore
- 2026-05-27 13:38 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 15:12 UTCEG score recompute
- 2026-05-22 15:12 UTCVendor advisory
- 2026-05-22 15:12 UTCGHSA enrichment
- 2026-05-21 22:40 UTCEPSS rescore
- 2026-05-21 22:40 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
Related CVEs(same vendor)
Frequently asked(5)
What is CVE-2017-7187?
When was CVE-2017-7187 disclosed?
Is CVE-2017-7187 actively exploited?
What is the CVSS score of CVE-2017-7187?
How do I remediate CVE-2017-7187?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2017-7187
Is Your Infrastructure Affected by CVE-2017-7187?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.