Description
The sg implementation in the Linux kernel through 4.9 does not properly restrict write operations in situations where the KERNEL_DS option is set, which allows local users to read or write to arbitrary kernel memory locations or cause a denial of service (use-after-free) by leveraging access to a /dev/sg device, related to block/bsg.c and drivers/scsi/sg.c. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-9576.
Metrics
CVSS 3.1 7.0/10
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
References
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=128394eff343fc6d2f32172f03e24829539c5835Patch, Vendor Advisory
- http://rhn.redhat.com/errata/RHSA-2017-0817.htmlThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/12/30/1Mailing List, Third Party Advisory
- http://www.securityfocus.com/bid/95169Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1037538Third Party Advisory, VDB Entry
- https://access.redhat.com/errata/RHSA-2017:1842Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:2077Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:2669Third Party Advisory
- https://github.com/torvalds/linux/commit/128394eff343fc6d2f32172f03e24829539c5835Patch, Vendor Advisory
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=128394eff343fc6d2f32172f03e24829539c5835Patch, Vendor Advisory
- http://rhn.redhat.com/errata/RHSA-2017-0817.htmlThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/12/30/1Mailing List, Third Party Advisory
- http://www.securityfocus.com/bid/95169Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1037538Third Party Advisory, VDB Entry
- https://access.redhat.com/errata/RHSA-2017:1842Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:2077Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:2669Third Party Advisory
- https://github.com/torvalds/linux/commit/128394eff343fc6d2f32172f03e24829539c5835Patch, Vendor Advisory
Timeline
- Published
- Dec 30, 2016
- Last modified
- Jun 17, 2026
- NVD status
- Modified