CVE-2018-1000204
Reported by mitre · Published June 26, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-aws | Ubuntu:16.04:LTS | 4.4.0-1062.71 |
| linux_kernel | linux | 4.16 |
| linux-oem | Ubuntu:18.04:LTS | 4.15.0-1017.20 |
| linux | Ubuntu:18.04:LTS | 4.15.0-33.36 |
| linux-aws | Ubuntu:18.04:LTS | 4.15.0-1020.20 |
| linux-fips | Ubuntu:Pro:FIPS:16.04:LTS | 4.4.0-1008.10 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
Timeline
- Jun 20, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jul 16, 2024 PoC Published
- Aug 5, 2024 CVE Updated
- Mar 6, 2026 Distribution Patch (155 in total, the first dated here)
- Mar 6, 2026 Security Advisory (162 in total, the first dated here)
- Sep 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-1000204
vulnetix vdb fixes CVE-2018-1000204
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-1000204/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- USN-3752-2 vendor-advisoryx_refsource_UBUNTU
- [debian-lts-announce] 20180714 [SECURITY] [DLA 1422-1] linux security update mailing-listx_refsource_MLIST
- USN-3696-1 vendor-advisoryx_refsource_UBUNTU
- USN-3752-3 vendor-advisoryx_refsource_UBUNTU
- [debian-lts-announce] 20180715 [SECURITY] [DLA 1422-2] linux security update mailing-listx_refsource_MLIST
- x_refsource_MISC
- USN-3754-1 vendor-advisoryx_refsource_UBUNTU
- [debian-lts-announce] 20180718 [SECURITY] [DLA 1423-1] linux-4.9 new package mailing-listx_refsource_MLIST
- RHSA-2018:2948 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- USN-3696-2 vendor-advisoryx_refsource_UBUNTU
- USN-3752-1 vendor-advisoryx_refsource_UBUNTU
- openSUSE-SU-2019:1407 vendor-advisoryx_refsource_SUSE