PortGate

Advisories · Linux & SSH

CVE-2022-0847 High CVSS 7.8 Actively exploited

Linux kernel Dirty Pipe privilege escalation

Disclosed 2022 · Last reviewed 2 Dec 2026

A local user could write into a read-only file through a pipe splice and replace contents such as a SUID binary. This is a local privilege escalation, not a remote login bug.

What happened

A missing flag initialization in the pipe buffer splice path let new pipe data overwrite a page cache that was mapped read-only.

Affected and patched versions

Affected
Linux kernels 5.8 and later, before 5.16.11, 5.15.25, and 5.10.102.
Patched
5.16.11, 5.15.25, 5.10.102, and later distribution kernels.

How to check your server

Check

uname -r

How to fix and harden

  1. Compare uname -r with the distribution advisory. 5.8 through the listed patch levels are affected.
  2. Install the distribution kernel update. Do not build a one-off kernel to clear the banner.
  3. Reboot into the new kernel during a maintenance window.
  4. Run uname -r again and match it to the booted package.

Fix

uname -r
sudo apt-get update && sudo apt-get install --only-upgrade linux-image-generic

Sources

Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON