---
title: "CVE-2017-7187"
canonical_url: "https://pkgseek.com/security/CVE-2017-7187"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2017-7187

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 is rated HIGH (7.8), with 3 indexed affected package builds across 2 distributions.

- **Severity / Score**: HIGH (7.8)
- **Affected builds**: 3
- **Affected distros**: 2
- **Distros with fixed_in**: Debian

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | usbip | 2.0+6.12.117-1 | 4.9.18-1 |
| Ubuntu | focal | linux-riscv-headers-5.4.0-24 | 5.4.0-24.28 | — |
| Ubuntu | jammy | linux-riscv-headers-5.15.0-1007 | 5.15.0-1007.7 | — |
