CVE-2018-1000204

EUVD-2018-1877
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
5.3 MEDIUM
NETWORK
HIGH
LOW
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 47%
Affected Products (NVD)
VendorProductVersion
linuxlinux_kernel
3.18 ≤
𝑥
≤ 4.16
canonicalubuntu_linux
14.04
canonicalubuntu_linux
16.04
canonicalubuntu_linux
18.04
debiandebian_linux
8.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
linux
bookworm
6.1.106-3
fixed
bookworm (security)
6.1.112-1
fixed
bullseye
5.10.223-1
fixed
bullseye (security)
5.10.226-1
fixed
sid
6.11.6-1
fixed
trixie
6.11.5-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
linux
artful
ignored
bionic
Fixed 4.15.0-33.36
released
cosmic
not-affected
trusty
Fixed 3.13.0-157.207
released
xenial
Fixed 4.4.0-130.156
released
linux-aws
artful
dne
bionic
Fixed 4.15.0-1020.20
released
cosmic
not-affected
trusty
Fixed 4.4.0-1024.25
released
xenial
Fixed 4.4.0-1062.71
released
linux-azure
artful
dne
bionic
Fixed 4.15.0-1022.23
released
cosmic
not-affected
trusty
not-affected
xenial
Fixed 4.15.0-1022.22~16.04.1
released
linux-azure-edge
artful
dne
bionic
not-affected
cosmic
dne
trusty
dne
xenial
Fixed 4.15.0-1022.23
released
linux-euclid
artful
dne
bionic
dne
cosmic
dne
trusty
dne
xenial
ignored
linux-flo
artful
dne
bionic
dne
cosmic
dne
trusty
dne
xenial
ignored
linux-gcp
artful
dne
bionic
Fixed 4.15.0-1018.19
released
cosmic
not-affected
trusty
dne
xenial
Fixed 4.15.0-1018.19~16.04.2
released
linux-gke
artful
dne
bionic
dne
cosmic
dne
trusty
dne
xenial
ignored
linux-goldfish
artful
dne
bionic
dne
cosmic
dne
trusty
dne
xenial
ignored
linux-grouper
artful
dne
bionic
dne
cosmic
dne
trusty
dne
xenial
dne
linux-hwe
artful
dne
bionic
not-affected
cosmic
dne
trusty
dne
xenial
Fixed 4.15.0-33.36~16.04.1
released
linux-hwe-edge
artful
dne
bionic
not-affected
cosmic
dne
trusty
dne
xenial
Fixed 4.15.0-33.36~16.04.1
released
linux-kvm
artful
dne
bionic
Fixed 4.15.0-1020.20
released
cosmic
not-affected
trusty
dne
xenial
Fixed 4.4.0-1029.34
released
linux-lts-trusty
artful
dne
bionic
dne
cosmic
dne
trusty
dne
xenial
dne
linux-lts-utopic
artful
dne
bionic
dne
cosmic
dne
trusty
dne
xenial
dne
linux-lts-vivid
artful
dne
bionic
dne
cosmic
dne
trusty
dne
xenial
dne
linux-lts-wily
artful
dne
bionic
dne
cosmic
dne
trusty
dne
xenial
dne
linux-lts-xenial
artful
dne
bionic
dne
cosmic
dne
trusty
Fixed 4.4.0-130.156~14.04.1
released
xenial
dne
linux-maguro
artful
dne
bionic
dne
cosmic
dne
trusty
dne
xenial
dne
linux-mako
artful
dne
bionic
dne
cosmic
dne
trusty
dne
xenial
ignored
linux-manta
artful
dne
bionic
dne
cosmic
dne
trusty
dne
xenial
dne
linux-oem
artful
dne
bionic
Fixed 4.15.0-1017.20
released
cosmic
not-affected
trusty
dne
xenial
ignored
linux-raspi2
artful
ignored
bionic
Fixed 4.15.0-1021.23
released
cosmic
not-affected
trusty
dne
xenial
Fixed 4.4.0-1092.100
released
linux-snapdragon
artful
Fixed 4.4.0-1095.100
released
bionic
not-affected
cosmic
dne
trusty
dne
xenial
Fixed 4.4.0-1095.100
released