PT-2018-9372 · Linux+3 · Linux Kernel+3

Syzbot

·

Publicado

2018-04-06

·

Atualizado

2025-12-21

·

CVE-2018-1000204

CVSS v2.0

6.3

Média

VetorAV:N/AC:M/Au:S/C:C/I:N/A:N
Name of the Vulnerable Software and Affected Versions Linux Kernel versions 3.18 through 4.16
Description The Linux Kernel 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. The problem has limited scope, as users don't usually have permissions to access SCSI devices. However, some user manuals, like the Nero user manual, suggest making the devices accessible by doing chmod o+r+w /dev/sg*. 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."
Recommendations For Linux Kernel versions 3.18 through 4.16, consider updating to a version where this issue has been fixed upstream, as mentioned in the commit https://github.com/torvalds/linux/commit/a45b599ad808c3c982fdcdc12b0b8611c2f92824. As a temporary workaround, consider restricting access to the /dev/sg0 device to minimize the risk of exploitation. Avoid using the dxfer direction=SG DXFER FROM DEV with an empty 6-byte cmdp in the SG IO ioctl on /dev/sg0 until the issue is resolved.

Correção

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Identificadores relacionados

ALT-PU-2018-1557
ALT-PU-2019-1433
CVE-2018-1000204
DLA-1422-1
DLA-1422-2
DLA-1423-1
OPENSUSE-SU-2018_2119-1
OPENSUSE-SU-2019_1407-1
RHSA-2018:2948
SUSE-SU-2018:1761-1
SUSE-SU-2018:1762-1
SUSE-SU-2018:1855-1
SUSE-SU-2018:1855-2
SUSE-SU-2018:2092-1
SUSE-SU-2018:2332-1
SUSE-SU-2018:2366-1
SUSE-SU-2018:2637-1
SUSE-SU-2019:1245-1
SUSE-SU-2019_1245-1
USN-3696-1
USN-3696-2
USN-3752-1
USN-3752-2
USN-3752-3
USN-3754-1

Produtos afetados

Alt Linux
Linux Kernel
Suse
Ubuntu