CVE-2018-1000204
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…
- Published
- Updated
- Reserved
- 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.
Timeline
ID reserved
By mitre
- 18 days later
· 18 days later
Published
- 6 years later
· 6 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Medium5.3 | CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 1.9% · top 20% of all CVEs (7 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Weakness
- n/a
Affected products
n/a
- affected n/a
References (13)
- USN-3752-2 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- [debian-lts-announce] 20180714 [SECURITY] [DLA 1422-1] linux security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- USN-3696-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- USN-3752-3 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- [debian-lts-announce] 20180715 [SECURITY] [DLA 1422-2] linux security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://www.openwall.com/lists/oss-security/2018/06/26/3 (opens in a new tab)x_refsource_MISCx_transferred
- USN-3754-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- [debian-lts-announce] 20180718 [SECURITY] [DLA 1423-1] linux-4.9 new package (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- RHSA-2018:2948 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://github.com/torvalds/linux/commit/a45b599ad808c3c982fdcdc12b0b8611c2f92824 (opens in a new tab)x_refsource_CONFIRMx_transferred
- USN-3696-2 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- USN-3752-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- openSUSE-SU-2019:1407 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2018-1000204)Record last updated .