{"id":"CVE-2017-7187","details":"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.","modified":"2026-03-12T22:40:21.801633Z","published":"2017-03-20T14:59:00.153Z","related":["SUSE-SU-2017:1183-1","SUSE-SU-2017:1247-1","SUSE-SU-2017:1301-1","SUSE-SU-2017:1360-1","SUSE-SU-2017:1990-1","SUSE-SU-2017:2342-1","SUSE-SU-2017:2525-1"],"references":[{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/96989"},{"type":"ADVISORY","url":"http://www.securitytracker.com/id/1038086"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2017:1842"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2017:2077"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2017:2669"},{"type":"ADVISORY","url":"https://gist.github.com/dvyukov/48ad14e84de45b0be92b7f0eda20ff1b"},{"type":"ADVISORY","url":"https://source.android.com/security/bulletin/pixel/2017-10-01"},{"type":"FIX","url":"https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=4.11/scsi-fixes&id=bf33f87dd04c371ea33feb821b60d63d754e3124"}],"affected":[{"database_specific":{"unresolved_ranges":[{"events":[{"introduced":"0"},{"fixed":"3.18.50"}]},{"events":[{"introduced":"3.19"},{"fixed":"4.1.40"}]},{"events":[{"introduced":"4.2"},{"fixed":"4.4.60"}]},{"events":[{"introduced":"4.5"},{"fixed":"4.9.21"}]},{"events":[{"introduced":"4.10"},{"fixed":"4.10.9"}]}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-7187.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}