Skip to content
Fencer Vulns
medium 5.3

CVE-2018-1000204 json

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…

published 2018-06-26 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-1877

cvss
5.3
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.9%
EPSS 1.9% chance of exploitation in 30 days, percentile 79%
public exploits
0
none known

Summary

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.

Patch / fix

  • linux Debian 14, Debian 13, Debian 12 4.16.12-1

debian advisories DEBIAN-CVE-2018-1000204

  • linux Ubuntu 14.04 LTS 3.13.0-157.207
  • linux Ubuntu 16.04 LTS 4.4.0-130.156
  • linux Ubuntu 18.04 LTS 4.15.0-33.36
  • linux-aws Ubuntu 14.04 LTS 4.4.0-1024.25
  • linux-aws Ubuntu 16.04 LTS 4.4.0-1062.71
  • linux-aws Ubuntu 18.04 LTS 4.15.0-1020.20
  • linux-gcp Ubuntu 16.04 LTS 4.15.0-1018.19~16.04.2
  • linux-gcp Ubuntu 18.04 LTS 4.15.0-1018.19

ubuntu advisories UBUNTU-CVE-2018-1000204

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel-alt RHEL 7 4.14.0-115.el7a
  • perf RHEL 7 4.14.0-115.el7a
  • kernel RHEL 7 4.14.0-115.el7a
  • python-perf RHEL 7 4.14.0-115.el7a
  • kernel-tools RHEL 7 4.14.0-115.el7a
  • kernel-tools-libs RHEL 7 4.14.0-115.el7a
  • kernel-bootwrapper RHEL 7 4.14.0-115.el7a
  • kernel-abi-whitelists RHEL 7 4.14.0-115.el7a

red hat advisories RHSA-2018:2948

  • kernel-syms SLES for SAP 12 SP3, SLES 12 SP3, SLED 12 SP3 4.4.178-94.91.1
  • kernel-source SLES for SAP 12 SP3, SLES 12 SP3, SLED 12 SP3 4.4.178-94.91.1
  • kernel-default SLES for SAP 12 SP3, SLES 12 SP3, SLED 12 SP3 +2 more 4.4.178-94.91.2
  • kernel-obs-build SLE Software Development Kit 12 SP3 4.4.178-94.91.1
  • kernel-syms SLES 12 SP2-BCL, OpenStack Cloud 7, Enterprise Storage 4 +2 more 4.4.121-92.85.1
  • kernel-source SLES 12 SP2-BCL, OpenStack Cloud 7, Enterprise Storage 4 +2 more 4.4.121-92.85.1
  • kernel-default SLES 12 SP2-BCL, OpenStack Cloud 7, Enterprise Storage 4 +2 more 4.4.121-92.85.1
  • kgraft-patch-SLE12-SP2_Update_23 SLES 12 SP2-BCL, OpenStack Cloud 7, Enterprise Storage 4 +2 more 1-3.5.1

suse advisories SUSE-SU-2019:1245-1SUSE-SU-2018:1855-2SUSE-SU-2018:2637-1SUSE-SU-2018:2366-1SUSE-SU-2018:2332-1SUSE-SU-2018:2092-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-1000204 updated cvss 4.1

kernel: Infoleak caused by incorrect handling of the SG_IO ioctl

  • Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) perf 4.14.0-115.el7a, kernel 4.14.0-115.el7a, kernel-alt 4.14.0-115.el7a, python-perf 4.14.0-115.el7a, kernel-tools 4.14.0-115.el7a, kernel-tools-libs 4.14.0-115.el7a, +3 more Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) kernel-debuginfo-common-ppc64le 4.14.0-115.el7a
    fixed: vendor fix RHSA-2018:2948
  • Red Hat Enterprise Linux 5 kernel Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-core, kernel-tools, python3-perf, +17 more Red Hat Enterprise MRG 2 kernel-rt, mrg-rt-release, kernel-rt-trace, kernel-rt-vanilla, kernel-rt-firmware
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.91% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.0 5.3 CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD 2.0 6.3 AV:N/AC:M/Au:S/C:C/I:N/A:N

Classification

Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.