Tecnología

Dirty COW

Computer security vulnerability

Lanzamiento
10 de noviembre de 2016
Plataforma
núcleo Linux
Imagen: dirtycow on Github, CC0, Wikimedia Commons

Este artículo está en inglés.

Dirty COW (CVE-2016-5195) is a critical security vulnerability in the Linux kernel that allows an unprivileged local user to gain root access by exploiting a race condition in the kernel's memory subsystem.

History

The Dirty COW vulnerability, officially designated CVE-2016-5195, was discovered and publicly disclosed in October 2016. The name "Dirty COW" is an acronym derived from the "Copy-On-Write" (COW) mechanism, which is the specific part of the Linux kernel's memory management system that the vulnerability exploits. Because the flaw existed in the core memory management code, it affected nearly all Linux-based operating systems, including Android, for several years prior to its discovery.

Operations

The vulnerability functions as a local privilege escalation (LPE) attack. It exploits a race condition within the kernel's copy-on-write implementation. Under normal circumstances, the copy-on-write mechanism ensures that when a process attempts to write to a read-only memory mapping, the kernel creates a private copy of the data. However, due to the race condition, an attacker can manipulate the system to write directly to the underlying read-only memory, effectively bypassing standard file permissions. This allows an unprivileged user to modify files they should not have access to, including critical system binaries or configuration files, thereby gaining root-level control over the affected machine.

Impact

The discovery of Dirty COW was considered highly significant due to its widespread impact and the ease with which it could be exploited. Because the flaw was present in the kernel code itself, it affected a vast array of devices, from personal computers and servers to mobile devices running the Android operating system. Following the disclosure, major Linux distributions and the Android Open Source Project released security patches to resolve the race condition, effectively neutralizing the vulnerability for updated systems.

Fuentes: Texto: redacción de Kodvi Wiki. Datos: Wikidata (CC0). · Wikipedia · Wikidata Q27502700