CVE-2018-1000204
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.13% · 32.4th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ubuntu:16.04:LTS | linux-aws | 4.4.0-1009.18, 4.4.0-1007.16, 4.4.0-1026.35 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | *, *, 0 |
| Ubuntu:18.04:LTS | linux-oem | 4.15.0-1002.3, 4.15.0-1013.16, 4.15.0-1015.18 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | 0, 6.8.0-2019.20 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | 6.11.0-1015.15~24.04.1, 6.11.0-1016.16~24.04.1, 6.11.0-1017.17~24.04.1 |
| Ubuntu:22.04:LTS | linux-realtime | 5.15.0-1032.35, 0 |
| Ubuntu:20.04:LTS | linux-azure-fde | 5.4.0-1098.104+cvm1.1, 5.4.0-1083.87+cvm1.1, 5.4.0-1085.90+cvm1.1 |
| Ubuntu:18.04:LTS | linux | 4.13.0-25.29, 4.15.0-12.13, 4.15.0-13.14 |
| Ubuntu:18.04:LTS | linux-aws | 4.15.0-1006.6, 0, 4.15.0-1001.1 |
| Ubuntu:Pro:FIPS:16.04:LTS | linux-fips | 4.4.0-1005.5, 4.4.0-1006.6, 0 |
| Ubuntu:Pro:20.04:LTS | linux-azure-fde-5.15 | 5.15.0-1029.36~20.04.1.1, 5.15.0-1021.26~20.04.1.1, 0 |
| Ubuntu:20.04:LTS | linux-riscv | 5.4.0-33.37, 5.4.0-31.35, 5.4.0-30.34 |
| Ubuntu:16.04:LTS | linux-hwe | 4.15.0-29.31~16.04.1, 4.15.0-24.26~16.04.1, 4.13.0-45.50~16.04.1 |
| Ubuntu:16.04:LTS | linux-raspi2 | 4.4.0-1051.58, 4.2.0-1013.19, 4.2.0-1014.21 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | 0, 6.11.0-17.17~24.04.2, 6.11.0-19.19~24.04.1 |
| Ubuntu:16.04:LTS | linux-snapdragon | 4.4.0-1013.14, 0, 4.4.0-1039.43 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | *, 6.11.0-1015.16~24.04.2, * |
| Ubuntu:20.04:LTS | linux-raspi2 | 5.4.0-1006.6, 5.4.0-1004.4, 5.3.0-1017.19 |
| Ubuntu:16.04:LTS | linux | 4.4.0-116.140, 4.4.0-34.53, 4.4.0-36.55 |
| Ubuntu:18.04:LTS | linux-azure | 4.15.0-1004.4, 4.15.0-1008.8, 4.15.0-1013.13 |
…and 12 more
Timeline
- Jun 26, 2018 CVE Published
- Apr 14, 2021 EPSS Score
- Jun 23, 2021 EPSS Score
- Aug 24, 2021 EPSS Score
- Oct 26, 2021 EPSS Score
- Dec 27, 2021 EPSS Score
- Feb 4, 2022 EPSS Score
- Feb 28, 2022 EPSS Score
- May 2, 2022 EPSS Score
- Sep 5, 2022 EPSS Score
- Nov 6, 2022 EPSS Score
- Jan 8, 2023 EPSS Score
References
- https://ubuntu.com/security/CVE-2018-1000204 third-party-advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a45b599ad808c3c982fdcdc12b0b8611c2f92824 third-party-advisory
- https://ubuntu.com/security/notices/USN-3696-1 vendor-advisory
- https://ubuntu.com/security/notices/USN-3696-2 vendor-advisory
- https://ubuntu.com/security/notices/USN-3752-1 vendor-advisory
- https://ubuntu.com/security/notices/USN-3752-2 vendor-advisory
- https://ubuntu.com/security/notices/USN-3754-1 vendor-advisory
- https://ubuntu.com/security/notices/USN-3752-3 vendor-advisory
- https://www.cve.org/CVERecord?id=CVE-2018-1000204 third-party-advisory