CVE-2017-7187: Linux Kernel - Buffer Overflow
- Cve: CVE-2017-7187
- Name: Linux Kernel - Buffer Overflow
- 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.
- Impact: Local users can cause denial of service or potentially execute arbitrary code due to out-of-bounds write access.
- Remediation: Update to Linux kernel version 4.10.5 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: denial_of_service, remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker needs local access to send ioctl with large command size
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00414
- Epss percentile: 0.36487
- Assignee: [email protected]
- Published at: 2017-03-20T14:59:00Z
- Age in days: 3536
- Modified at: 2026-06-17T01:23:50Z
- Patch available: yes
- References total: 8
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2017-7187
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=4.11/scsi-fixes&id=bf33f87dd04c371ea33feb821b60d63d754e3124 | Issue Tracking, Patch, Vendor Advisory |
| http://www.securityfocus.com/bid/96989 | Third Party Advisory, VDB Entry |
| http://www.securitytracker.com/id/1038086 | Third Party Advisory, VDB Entry |
| https://access.redhat.com/errata/RHSA-2017:1842 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2017:2077 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2017:2669 | Third Party Advisory |
| https://gist.github.com/dvyukov/48ad14e84de45b0be92b7f0eda20ff1b | Third Party Advisory |
| https://source.android.com/security/bulletin/pixel/2017-10-01 | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| linux:linux_kernel | >= 4.10, < 4.10.9; >= 4.5, < 4.9.21; >= 4.2, < 4.4.60; >= 3.19, < 4.1.40; < 3.18.50 | no | nvd | /v1/products/linux/linux_kernel |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| torvalds/linux | commit | yes | /v1/repositories/torvalds/linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 9997488
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports