CVE-2022-0847
Linux Kernel Privilege Escalation Vulnerability
Known exploited
CISA added this CVE to its list of known exploited vulnerabilities on 25 Apr 2022. US federal agencies had to act by 16 May 2022.
- Name
- Linux Kernel Privilege Escalation Vulnerability
- Required action
- Apply updates per vendor instructions.
- Ransomware
- Use in ransomware campaigns is not known
- Notes
- https://nvd.nist.gov/vuln/detail/CVE-2022-0847
Description
A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe and push_pipe functions in the Linux kernel and could thus contain stale values. An unprivileged local user could use this flaw to write to pages in the page cache backed by read only files and as such escalate their privileges on the system.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 23.8%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 98.3% of all scored CVEs. Scores of 26 Nov 2026.
The assessment of CISA (SSVC, 4 Feb 2025):
- Exploitation
- active: CISA has reliable evidence of exploitation in the wild
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-665 Improper Initialization
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
kernel
n/a
|
affected Linux Kernel 5.17 rc6
|
Is my server affected?
Find the installed version of kernel and compare it with the fixed version of your distribution. Distributions often fix a CVE in their own package version, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i kernel
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2022-0847 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2022-0847RHEL, Rocky, Alma, Fedora
rpm -q kernel
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2022-0847Alpine
apk list --installed | grep -i kernelWith Trivy, on the host and for a container image; it prints the installed and the fixed version when a package is affected:
trivy rootfs --scanners vuln / | grep CVE-2022-0847
trivy image --scanners vuln IMAGE | grep CVE-2022-0847
Patchbrief matches the package lists of your Linux servers and containers every day against the Trivy vulnerability database, which covers the packages of Linux distributions and language packages (npm, PyPI, Go, Maven and others), and sends one digest with the command that fixes each problem. Install the agent.
References
Advisories
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-0847 cisa.gov · government resource
Other references
- https://bugzilla.redhat.com/show_bug.cgi?id=2060795 bugzilla.redhat.com
- https://dirtypipe.cm4all.com/ dirtypipe.cm4all.com
- http://packetstormsecurity.com/files/166230/Dirty-Pipe-SUID-Binary-Hijack-Privilege-Escalation.html packetstormsecurity.com
- http://packetstormsecurity.com/files/166229/Dirty-Pipe-Linux-Privilege-Escalation.html packetstormsecurity.com
- http://packetstormsecurity.com/files/166258/Dirty-Pipe-Local-Privilege-Escalation.html packetstormsecurity.com
- https://www.suse.com/support/kb/doc/?id=000020603 suse.com
- https://security.netapp.com/advisory/ntap-20220325-0005/ security.netapp.com
- https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf cert-portal.siemens.com
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0015 psirt.global.sonicwall.com
- http://packetstormsecurity.com/files/176534/Linux-4.20-KTLS-Read-Only-Write.html packetstormsecurity.com
Guides
- CVSS scores explained: v3.1, v4.0 and why 9.8 is not your risk How to read a CVSS vector, what changed in CVSS v4.0, and why the base score alone is a poor way to decide what to patch first.
- What is EPSS? The exploit probability score in practice EPSS estimates the chance that a CVE is exploited in the next 30 days. How to read score and percentile, get the data, and use it next to KEV.
- CISA KEV explained: the list of known exploited vulnerabilities What the CISA Known Exploited Vulnerabilities catalog is, how a CVE gets on it, what the fields mean and how to check your servers against it.
- Security updates without downtime: restarts, reboots and live patches An installed update only protects processes started after it. How to find what still runs old code, restart services gracefully, and plan reboots.
- Dirty Pipe (CVE-2022-0847): overwriting read-only files on Linux 5.8+ An uninitialised flag in the kernel pipe code let any user overwrite read-only files in the page cache. Affected kernels, how to check, why reboots matter.
Source: the record CVE-2022-0847 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.