Securitylab•August 25, 2026•🇷🇺Translated from Russian

Dirty COW CVE-2016-5195: How a 2016 Linux Kernel Race Condition Still Enables Privilege Escalation in Embedded Systems

The 2016 discovery of CVE-2016-5195, widely known as Dirty COW, revealed a race condition in the Linux kernel’s copy-on-write mechanism. The flaw enabled a local attacker to modify memory pages that should have remained read-only, providing a primitive for writing to protected files or memory regions.

Although the vulnerability was fixed in October 2016 for mainstream distributions, many embedded devices continue to run unpatched kernels for years. Routers, IP cameras, industrial controllers, and similar hardware often ship with vendor firmware that is rarely updated, leaving the original bug intact.

What Dirty COW Actually Allows

Dirty COW does not grant root privileges directly. It supplies a write primitive that can alter files such as /etc/passwd or overwrite code in memory-mapped regions. Attackers must then chain this primitive with additional steps, such as adding a root user entry or modifying a SUID binary, to achieve privilege escalation.

Public proof-of-concept code repeatedly triggers the race by writing through /proc/self/mem while calling madvise(..., MADV_DONTNEED). Correct timing causes the kernel to drop the original copy-on-write page, allowing the attacker’s data to persist in the shared mapping.

Why Ready-Made Exploits Often Fail

Many public Dirty COW exploits assume a full GNU userland with /bin/sh and conventional login utilities. On embedded systems that use BusyBox, these assumptions break. The single BusyBox binary may lack the expected applet, the required symbolic link may be absent, or the arguments passed to execve may not match the applet’s expectations.

Another common target is vDSO, a small kernel-provided library mapped into every process address space. Because vDSO exists only in memory and not as a file on disk, overwriting its functions requires precise knowledge of the architecture, the exported symbols, and the exact function chosen by the exploit. Payloads must also be written in the correct instruction set and respect the target ABI.

Practical Checks Before Exploitation

  • Kernel version, build date, and presence of the Dirty COW patch
  • Processor architecture, endianness, and enabled mitigations
  • Available BusyBox applets and presence of login or su mechanisms
  • Existence and contents of SUID binaries
  • Presence and exported symbols of vDSO in process memory maps
  • Compatibility of the chosen payload with the system’s libraries and shell environment

Exploitation attempts should be performed only on isolated test systems with rollback capability, as race-condition bugs can corrupt data or crash the target.

The article concludes by pointing readers to the free “White Hacker” course on the CyberED platform, where the practical lab “Strange And Dirty” requires participants to adapt a Dirty COW exploit to a minimal BusyBox environment and complete the privilege-escalation chain.

Related articles

AntiMalware•Vulnerabilities & Exploits

Binance Warns Android Users of Chrome Vulnerability Allowing Theft of Saved Passwords

Binance has issued a security advisory alerting Android users to a vulnerability in older versions of Google Chrome that enables attackers to steal saved logins and passwords. The attack requires only that the victim visits a specially crafted webpage and does not involve installing malicious apps or downloading files. The flaw affects devices running Chrome versions below 146 or Android security updates released before August 5, 2025. Binance recommends updating both Chrome and the Android System WebView component through official channels, as well as applying the latest Android patches and changing saved credentials for financial and email accounts. No CVE identifier has been disclosed, and there is currently no public information on active exploitation or the number of affected users. The advisory follows a similar November warning from Binance regarding an iOS vulnerability that could expose cryptocurrency wallet data.

BoletimSec•Vulnerabilities & Exploits

Critical JetBrains TeamCity Flaw Enables Unauthorized Build Agent Hijacking

JetBrains has released patches for a critical vulnerability in TeamCity On-Premises that allows an unauthenticated attacker to impersonate an authorized build agent. The flaw, tracked as CVE-2026-136858 with a CVSS score of 9.1, affects the authentication mechanism on the communication channel between the server and build agents. An attacker reaching the server over HTTP or HTTPS can displace a legitimate agent and receive assigned builds, thereby gaining access to credentials and secrets delivered during compilation. The issue also enables attackers to falsify build results and publish tampered packages that can compromise downstream consumers in the software supply chain. JetBrains credited researcher Jiawei Guo for the discovery reported on November 24 and stated no evidence of in-the-wild exploitation has been found. The company previously faced real-world exploitation of another critical TeamCity vulnerability, CVE-2026-63077, just four months earlier. Updates are available in versions 2026.1.7, 2026.2.3, and 2026.3, while a security patch plugin is offered for environments that cannot restart immediately.

Security NEXT•Vulnerabilities & Exploits

Acronis Backup Products Vulnerable to Exploitation in Targeted Attacks

Acronis has disclosed a high-severity vulnerability in its backup products designed for web hosting environments. The flaw, tracked as CVE-2026-87887, affects the Linux versions of Acronis Backup plugin for cPanel & WHM and Acronis Backup extension for Plesk. It stems from improper authorization handling that could allow attackers to obtain sensitive information. The issue carries a CVSS v3.0 base score of 7.5 and has already been exploited in targeted attacks. Acronis released security advisory SEC-12645 on December 3, 2026, and urged immediate updates. Patched versions include Acronis Backup plugin for cPanel & WHM 1.9.3.1031 and Acronis Backup extension for Plesk 1.8.12-659. Users of version 1.9.4 are advised to downgrade to the fixed 1.9.3 branch until a permanent fix is available.

AntiMalware•Vulnerabilities & Exploits

Critical Linux Kernel Vulnerability CVE-2026-139281 Enables Stateful Firewall Bypass for Nearly 21 Years

A critical flaw tracked as CVE-2026-139281 has been discovered in the Linux kernel, allowing remote attackers to bypass stateful firewall rules implemented via iptables and nftables. The vulnerability resides in the conntrack subsystem of Netfilter and stems from an integer overflow when processing fragmented IPv6 packets. It received a CVSS 3.1 score of 9.1 from Red Hat and requires no authentication or user interaction for exploitation. The bug was introduced in January 2006 with Linux 2.6.15 and remained present for almost 21 years until patches were released. Researcher Jérémie Jean disclosed technical details on 22 August 2026 after using OpenAI Codex based on GPT-5 during patch development. Fixes are available in multiple kernel versions including 5.10.275 through 7.4-rc1, with Red Hat Enterprise Linux 8 and AlmaLinux already updated. Debian 12 and 13 remain vulnerable as of 3 December, while Ubuntu continues assessment; disabling IPv6 is recommended as a workaround where patches cannot be applied.