Join our Newsletter — 33% off our NHI Course
Home› FAQ› Threats, Abuse & Incident Response› Why does Dirty Pipe create risk even when…
Threats, Abuse & Incident Response

Why does Dirty Pipe create risk even when an account or container has no write permissions?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated September 24, 2026 Domain: Threats, Abuse & Incident Response

Dirty Pipe can redirect a read-only file page into a pipe buffer and later modify that page through a path that bypasses ordinary write checks. That means the attacker only needs read access to the target file and the right conditions in the pipe state. The result is unauthorized file content change without a normal write event.

Why Dirty Pipe is dangerous even without write permissions

dirty pipe is risky because it breaks the normal assumption that “no write permission” means no write impact. The exploit can take a file page that was only read, place it into a pipe buffer, and then alter that cached page through a path that bypasses ordinary write enforcement. The security problem is the control bypass, not the account’s nominal file mode.

That means defenders cannot treat read-only access as harmless when the target can be mapped into kernel-managed page cache and pipe state can be influenced. If an attacker can read a sensitive file and satisfy the exploit conditions, they may still change file content without a standard write operation being recorded.

How the bypass works at a practical level

Dirty Pipe abuses the way Linux handles pipe buffers and page cache references. Instead of writing to the file through the file system’s normal permission path, the attacker gets a reference to the target page through a pipe and then overwrites bytes in that page while it is still associated with the file. The file system never gets a normal “this actor may write here” decision in the way administrators expect.

This is why the risk is broader than a simple file permission issue. Write permissions are only one control layer. When a kernel memory handling bug lets an attacker influence the underlying page, the permission check is sidestepped, so the observable outcome is unauthorized modification even though the account was never granted direct write access.

For practitioners, the important detail is that the prerequisite is often read access plus the vulnerable kernel path, not write access. That shifts the threat model from “protect writable files” to “protect any readable file whose integrity matters if the host kernel is exposed to this bug.”

Why containers and restricted accounts do not eliminate the impact

Containers and low-privilege accounts reduce the blast radius only when the underlying kernel isolation is intact. Dirty Pipe is dangerous in containerized environments because a process inside a container still depends on the shared host kernel, and a compromised workload may be able to corrupt files it can read even if its normal file permissions are read-only.

That makes the practical impact depend on what the process can read, not just what it can write. A read-only secret, a configuration file, or a startup script can become an integrity target if the attacker can alter it through the vulnerable path. In other words, the integrity boundary is weaker than the access control label suggests.

  • Read access can be enough to create impact when the kernel bug gives a write-like effect.
  • Container boundaries do not replace kernel patching or host-level integrity controls.
  • Files that look harmless because they are “read-only” can still be high value integrity targets.

Risk and Threat Considerations

Dirty Pipe turns read access into a file integrity risk, which is especially dangerous for secrets, scripts, and configuration files that are readable but should never be altered. The main exposure is silent tampering: the file changes without the expected write path, so normal permission-based assumptions, audit logic, and operator intuition can all fail at the same time.

Failure mechanism: The exploit reuses pipe and page-cache behavior to modify a file page outside the ordinary file-system write path, so write permission checks are effectively bypassed.

Impact: An attacker may change executable content, configuration, or secret material with no normal write event, enabling persistence, privilege escalation, or follow-on compromise.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5SI-3 — Malicious Code ProtectionSilent file tampering can deliver malicious payloads or persistence.
SI-7 — Software, Firmware, and Information IntegrityDirty Pipe is an information integrity bypass affecting file content.
CM-5 — Access Restrictions for ChangeThe issue bypasses ordinary change controls on writable content.
Recommendation — Monitor and block unauthorized file changes that could stage malicious code. Implement integrity checks and alert on unexpected modifications to protected files. Restrict and verify privileged change paths for sensitive system files.
CIS Controls v8CIS-5 — Account ManagementRead-only accounts still matter if readable files become integrity targets.
CIS-7 — Continuous Vulnerability ManagementThe risk is driven by a kernel vulnerability requiring rapid remediation.
Recommendation — Minimize exposed readable targets and remove unnecessary account access. Patch affected kernels quickly and validate remediation across all hosts.

Practitioner Guidance

What to verify: Treat the question as an integrity exposure problem first. Verify whether any readable files on affected hosts are security-sensitive enough that silent modification would matter, especially startup scripts, authorized_keys, config files, and credential material.

Decision rule: If the kernel version is vulnerable, prioritize patching and host containment before assuming file permissions are protective. If you cannot patch immediately, reduce the number of sensitive readable targets and watch for unexpected changes to files that should be immutable.

What good looks like: A hardened environment does not rely on “no write permission” as the main integrity control. It assumes kernel flaws can bypass normal write paths, so patching, file integrity monitoring, and least-read access are all part of the defense.

Practitioner takeaway: Dirty Pipe is not just a write-permission bypass, it is an integrity-breakout condition, so the real control question is whether a readable file is allowed to become a maliciously writable target through the kernel.

For deeper background on the surrounding Linux/container risk model, see NIST SP 800-190 Container Security and the OWASP Non-Human Identity Top 10 when the affected files include credentials or service access material.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

    NHIMG Editorial Note
    Reviewed and updated by the NHIMG editorial team on September 24, 2026.
    NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org