---
title: "CVE-2018-1000204"
canonical_url: "https://pkgseek.com/security/CVE-2018-1000204"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# 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…

CVE-2018-1000204 严重级别为 MEDIUM (5.3)，共索引 3 条受影响软件包构建记录，涉及 2 个发行版。

- **级别 / 评分**: MEDIUM (5.3)
- **受影响构建数**: 3
- **涉及发行版**: 2
- **已标明修复版本发行版**: Debian

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | usbip | 2.0+6.12.117-1 | 4.16.12-1 |
| Ubuntu | focal | linux-riscv-headers-5.4.0-24 | 5.4.0-24.28 | — |
| Ubuntu | jammy | linux-riscv-headers-5.15.0-1007 | 5.15.0-1007.7 | — |
