# CVE-2018-1000204: Linux Kernel version 3.18 to 4.16 incorrectly handles an SGIO ioctl on /dev/sg0 with dxferdirection=SGDXFERFROMDEV and an empty 6-byte cmdp.

- Severity: Medium 5.3 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.91%, higher than 80% of CVEs (2026-12-01)
- Published: 2018-06-26T14:00:00.000Z
- Modified: 2026-06-17T01:32:40.543Z
- Assigned by: mitre

## Description

Linux Kernel version 3.18 to 4.16 incorrectly handles an SG_IO ioctl on /dev/sg0 with dxfer_direction=SG_DXFER_FROM_DEV and an empty 6-byte cmdp. This may lead to copying up to 1000 kernel heap pages to the userspace. This has been fixed upstream in https://github.com/torvalds/linux/commit/a45b599ad808c3c982fdcdc12b0b8611c2f92824 already. The problem has limited scope, as users don't usually have permissions to access SCSI devices. On the other hand, e.g. the Nero user manual suggests doing `chmod o+r+w /dev/sg*` to make the devices accessible. NOTE: third parties dispute the relevance of this report, noting that the requirement for an attacker to have both the CAP_SYS_ADMIN and CAP_SYS_RAWIO capabilities makes it "virtually impossible to exploit.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- linux linux_kernel: from 3.18 up to 4.16
- canonical ubuntu_linux: 14.04; 16.04; 18.04
- debian debian_linux: 8.0

## Every score

- NVD: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 6.3 Medium `AV:N/AC:M/Au:S/C:C/I:N/A:N`

## References

- <https://usn.ubuntu.com/3752-2/> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2018/07/msg00015.html> (mailing-list, third-party-advisory)
- <https://usn.ubuntu.com/3696-1/> (third-party-advisory, vendor-advisory)
- <https://usn.ubuntu.com/3752-3/> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2018/07/msg00016.html> (mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2018/06/26/3> (mailing-list, third-party-advisory)
- <https://usn.ubuntu.com/3754-1/> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2018/07/msg00020.html> (mailing-list, third-party-advisory)
- <https://access.redhat.com/errata/RHSA-2018:2948> (third-party-advisory, vendor-advisory)
- <https://github.com/torvalds/linux/commit/a45b599ad808c3c982fdcdc12b0b8611c2f92824> (patch, third-party-advisory)
- <https://usn.ubuntu.com/3696-2/> (third-party-advisory, vendor-advisory)
- <https://usn.ubuntu.com/3752-1/> (third-party-advisory, vendor-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00043.html> (vendor-advisory)

## Sources

- CVE List: [CVE-2018-1000204](https://www.cve.org/CVERecord?id=CVE-2018-1000204), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2018-1000204](https://nvd.nist.gov/vuln/detail/CVE-2018-1000204), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-1000204 · Whole record: https://cve.day/CVE-2018-1000204.json · Rebuilt by cve.day 2026-11-25T22:57:38.417Z
