kernel: scsi: Stack-based buffer overflow in sg_ioctl function
Published Mar 20, 2017
7.8
HIGHCVSS 3.1
EPSS 0.41%
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.
Affected products
No data.
- < 3.18.50
- ≥ 3.19 · < 4.1.40
- ≥ 4.2 · < 4.4.60
- ≥ 4.5 · < 4.9.21
- ≥ 4.10 · < 4.10.9
No data.
Red Hat Enterprise Linux 7
kernel-0:3.10.0-693.el7
Fixed · RHSA-2017:1842
Red Hat Enterprise Linux 7
kernel-rt-0:3.10.0-693.rt56.617.el7
Fixed · RHSA-2017:2077
Red Hat Enterprise MRG 2
kernel-rt-1:3.10.0-693.2.1.rt56.585.el6rt
Fixed · RHSA-2017:2669
Red Hat Enterprise Linux 5
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | kernel-0:3.10.0-693.el7 | Fixed | RHSA-2017:1842 |
| Red Hat Enterprise Linux 7 | kernel-rt-0:3.10.0-693.rt56.617.el7 | Fixed | RHSA-2017:2077 |
| Red Hat Enterprise MRG 2 | kernel-rt-1:3.10.0-693.2.1.rt56.585.el6rt | Fixed | RHSA-2017:2669 |
| Red Hat Enterprise Linux 5 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue does not affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 5, 6, as the change that introduced the flaw is not present in the code of these products. This issue affects the Linux kernel packages as shipped with Red Hat Enterprise Linux 7 and MRG-2. Future Linux kernel updates for the respective releases may address this issue.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
AV:L/AC:L/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (9 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.41% (0.00414) | 33.35th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.41% (0.00414) | 32.81th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.08% (0.00080) | 21.22th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00042) | 5.07th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.04% (0.00042) | 5.63th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.10% (0.01104) | 54.09th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.10% (0.01104) | 28.85th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.24% (0.01242) | 30.15th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.24% (0.01242) | 0.00th | v1 |
References (12)
- http://www.securityfocus.com/bid/96989 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1038086 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2017:1842 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:2077 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:2669 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2017-7187 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1434327 Issue Tracking
- https://gist.github.com/dvyukov/48ad14e84de45b0be92b7f0eda20ff1b x_refsource_MISCThird Party Advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=4.11/scsi-fixes&id=bf33f87dd04c371ea33feb821b60d63d754e3124 x_refsource_MISCIssue TrackingPatchVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-7187
- https://source.android.com/security/bulletin/pixel/2017-10-01 x_refsource_CONFIRMThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2017-7187
Change history (0)
No recorded changes yet.