DEV Community

tktkkame
tktkkame

Posted on Originally published at zenn.dev

When config can't save you: PwnKit, Dirty Pipe and patch-first ops

Explanatory, based on the book; examples are fictional. No exploit code or reproduction steps.

Family A (misconfiguration) is fixed by inventory and least privilege. Family B (software bugs such as PwnKit, CVE-2021-4034 in pkexec, and Dirty Pipe, CVE-2022-0847 in Linux 5.8+) is fixed by patching.

What you'll learn

  • Why asset inventory is the real work
  • How to prioritize
  • Secondary signals and their limits
  • Series recap

Operations

Inventory hosts, OS and kernel versions, then match against vendor advisories. Prioritize by exposure, known exploitation, impact and available mitigations. Don't judge by version number alone: distributions backport fixes, so check the vendor advisory.

Secondary signals (after the fact): SUID program crashes (segfaults), unexpected parents of pkexec, and the uid != euid shell from the earlier article. Detection cannot replace patching.

Series recap

Escalation is the doorway to the next action. Close the door first, then detect.


Adapted from chapters 25 and 38 of my Japanese book on server defense.

Top comments (0)