CVE-2017-7187
Published: 20 March 2017
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.
From the Ubuntu Security Team
Dmitry Vyukov discovered that the generic SCSI (sg) subsystem in the Linux kernel contained a stack-based buffer overflow. A local attacker with access to an sg device could use this to cause a denial of service (system crash) or possibly execute arbitrary code.
Notes
Author | Note |
---|---|
jdstrand | android kernels (flo, goldfish, grouper, maguro, mako and manta) are not supported on the Ubuntu Touch 14.10 and earlier preview kernels linux-lts-saucy no longer receives official support linux-lts-quantal no longer receives official support |
Priority
Status
Package | Release | Status |
---|---|---|
linux Launchpad, Ubuntu, Debian |
artful |
Not vulnerable
(4.10.0-21.23)
|
precise |
Ignored
(was needed ESM criteria)
|
|
trusty |
Released
(3.13.0-132.181)
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Released
(4.4.0-78.99)
|
|
yakkety |
Ignored
(reached end-of-life)
|
|
zesty |
Released
(4.10.0-21.23)
|
|
Patches: Introduced by 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 |
||
linux-armadaxp Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
(precise was needed)
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
This package is not directly supported by the Ubuntu Security Team | ||
linux-aws Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Not vulnerable
(4.4.0-1002.2)
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Released
(4.4.0-1017.26)
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-azure Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Not vulnerable
(4.15.0-1023.24~14.04.1)
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Not vulnerable
(4.11.0-1009.9)
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-euclid Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Ignored
(was needed ESM criteria)
|
|
zesty |
Does not exist
|
|
linux-flo Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
(trusty was ignored)
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Ignored
(abandoned)
|
|
yakkety |
Ignored
(abandoned)
|
|
zesty |
Does not exist
|
|
linux-gcp Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Not vulnerable
(4.10.0-1004.4)
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-gke Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Released
(4.4.0-1013.13)
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-goldfish Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
(trusty was ignored)
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Ignored
(abandoned)
|
|
yakkety |
Ignored
(abandoned)
|
|
zesty |
Ignored
(abandoned)
|
|
linux-grouper Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
(trusty was ignored)
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-hwe Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Released
(4.10.0-27.30~16.04.2)
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-hwe-edge Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Released
(4.10.0-27.30~16.04.2)
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-kvm Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Not vulnerable
(4.4.0-1004.9)
|
|
zesty |
Does not exist
|
|
linux-linaro-omap Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
(precise was ignored [abandoned])
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-linaro-shared Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
(precise was ignored [abandoned])
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-linaro-vexpress Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
(precise was ignored [abandoned])
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-lts-quantal Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
(precise was ignored [end-of-life])
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
This package is not directly supported by the Ubuntu Security Team | ||
linux-lts-raring Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
(precise was ignored [end-of-life])
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-lts-saucy Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
(precise was ignored [end-of-life])
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
This package is not directly supported by the Ubuntu Security Team | ||
linux-lts-trusty Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Released
(3.13.0-132.181~precise1)
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-lts-utopic Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
(trusty was ignored [out of standard support])
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-lts-vivid Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
(trusty was ignored [was needed now end-of-life])
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-lts-wily Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
(trusty was ignored [out of standard support])
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-lts-xenial Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Released
(4.4.0-78.99~14.04.2)
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-maguro Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
(trusty was ignored)
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-mako Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
(trusty was ignored)
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Ignored
(abandoned)
|
|
yakkety |
Ignored
(abandoned)
|
|
zesty |
Does not exist
|
|
linux-manta Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
(trusty was ignored)
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-oem Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Not vulnerable
(4.13.0-1008.9)
|
|
zesty |
Does not exist
|
|
linux-qcm-msm Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
(precise was ignored [abandoned])
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
|
linux-raspi2 Launchpad, Ubuntu, Debian |
artful |
Not vulnerable
(4.10.0-1005.7)
|
precise |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Released
(4.4.0-1055.62)
|
|
yakkety |
Ignored
(reached end-of-life)
|
|
zesty |
Released
(4.10.0-1005.7)
|
|
linux-snapdragon Launchpad, Ubuntu, Debian |
artful |
Not vulnerable
(4.4.0-1058.62)
|
precise |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Released
(4.4.0-1058.62)
|
|
yakkety |
Released
(4.4.0-1058.62)
|
|
zesty |
Released
(4.4.0-1058.62)
|
|
linux-ti-omap4 Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
precise |
Does not exist
(precise was needed)
|
|
trusty |
Does not exist
|
|
upstream |
Released
(4.11~rc5)
|
|
xenial |
Does not exist
|
|
yakkety |
Does not exist
|
|
zesty |
Does not exist
|
Severity score breakdown
Parameter | Value |
---|---|
Base score | 7.8 |
Attack vector | Local |
Attack complexity | Low |
Privileges required | Low |
User interaction | None |
Scope | Unchanged |
Confidentiality | High |
Integrity impact | High |
Availability impact | High |
Vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-7187
- https://gist.github.com/dvyukov/48ad14e84de45b0be92b7f0eda20ff1b
- https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=4.11/scsi-fixes&id=bf33f87dd04c371ea33feb821b60d63d754e3124
- https://ubuntu.com/security/notices/USN-3293-1
- https://ubuntu.com/security/notices/USN-3291-1
- https://ubuntu.com/security/notices/USN-3291-2
- https://ubuntu.com/security/notices/USN-3291-3
- https://ubuntu.com/security/notices/USN-3361-1
- https://ubuntu.com/security/notices/USN-3422-1
- https://ubuntu.com/security/notices/USN-3422-2
- NVD
- Launchpad
- Debian