VDB

CVE-2018-1000204

CVE-2018-1000204 PUBLISHED

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.

PackageEcosystemFixed in
linux-awsUbuntu:16.04:LTS4.4.0-1062.71
linux_kernellinux4.16
linux-oemUbuntu:18.04:LTS4.15.0-1017.20
linuxUbuntu:18.04:LTS4.15.0-33.36
linux-awsUbuntu:18.04:LTS4.15.0-1020.20
linux-fipsUbuntu:Pro:FIPS:16.04:LTS4.4.0-1008.10

Affected products

VendorProductVersions
n/an/an/a
n/an/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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›