CVE-2018-1000204 PUBLISHED

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.

EPSS 0.12% · 31.3th percentile

Risk Scores

EPSS Score
0.12%
31.3th percentile

Affected Products

VendorProductVersions
Ubuntu:16.04:LTSlinux-aws4.4.0-1049.58, 4.4.0-1050.59, 4.4.0-1052.61
Ubuntu:24.04:LTSlinux-azure-6.116.11.0-1013.13~24.04.1, 6.11.0-1018.18~24.04.1, 6.11.0-1017.17~24.04.1
Ubuntu:18.04:LTSlinux-oem4.15.0-1004.5, 0, 4.15.0-1006.9
Ubuntu:24.04:LTSlinux-raspi-realtime0, 6.8.0-2019.20
Ubuntu:24.04:LTSlinux-gcp-6.116.11.0-1011.11~24.04.1, 0, 6.11.0-1013.13~24.04.1
Ubuntu:22.04:LTSlinux-realtime0, 5.15.0-1032.35
Ubuntu:20.04:LTSlinux-azure-fde5.4.0-1064.67+cvm1.1, 5.4.0-1063.66+cvm3.2, 5.4.0-1063.66+cvm2.2
Ubuntu:18.04:LTSlinux4.15.0-10.11, 4.13.0-32.35, 4.13.0-25.29
Ubuntu:18.04:LTSlinux-aws4.15.0-1009.9, 4.15.0-1011.11, 4.15.0-1016.16
Ubuntu:Pro:FIPS:16.04:LTSlinux-fips0, 4.4.0-1003.3, 4.4.0-1005.5
Ubuntu:Pro:20.04:LTSlinux-azure-fde-5.155.15.0-1046.53~20.04.1.1, 5.15.0-1047.54~20.04.1.1, 5.15.0-1049.56~20.04.1.1
Ubuntu:20.04:LTSlinux-riscv5.4.0-24.28, 5.4.0-33.37, 5.4.0-31.35
Ubuntu:16.04:LTSlinux-hwe4.8.0-44.47~16.04.1, 4.8.0-45.48~16.04.1, 4.8.0-46.49~16.04.1
Ubuntu:16.04:LTSlinux-raspi24.4.0-1021.27, 4.4.0-1086.94, 4.4.0-1087.95
Ubuntu:24.04:LTSlinux-hwe-6.110, 6.11.0-17.17~24.04.2, 6.11.0-19.19~24.04.1
Ubuntu:16.04:LTSlinux-snapdragon4.4.0-1077.82, 0, 4.4.0-1012.12
Ubuntu:24.04:LTSlinux-lowlatency-hwe-6.116.11.0-1013.14~24.04.1, 6.11.0-1014.15~24.04.1, 6.11.0-1012.13~24.04.1
Ubuntu:20.04:LTSlinux-raspi25.3.0-1014.16, 5.3.0-1007.8, 0
Ubuntu:16.04:LTSlinux4.3.0-6.17, 4.4.0-24.43, 4.4.0-22.40
Ubuntu:18.04:LTSlinux-azure4.15.0-1019.19, 0, 4.15.0-1002.2

…and 12 more

Timeline

References

Open in Interactive Console →