Security News

DirtyCred – A Critical Linux Kernel Security Vulnerability

DirtyCred is a Linux kernel technique that swaps low-privileged credentials for privileged ones. It has no CVE of its own and is not CVE-2022-0847.

Brandefense logo Updated 2 Min Read
dirtycred- linux kernel vulnerability

DirtyCred is a Linux kernel privilege escalation technique presented at Black Hat USA in 2022 by researcher Zhenpeng Lin and his team. It swaps a low-privileged kernel credential for a privileged one, so a local attacker gains higher rights. It has no CVE of its own. CVE-2022-0847 belongs to the related DirtyPipe flaw, not to DirtyCred.

What is DirtyCred?

A new Linux Kernel vulnerability called “DirtyCred” was disclosed at the Black Hat USA security conference in August 2022. The vulnerability, which is similar to the notorious DirtyPipe vulnerability (tracked as CVE-2022-0847; DirtyCred itself has no CVE of its own), was discovered by Ph.D. detected by student Zhenpeng Lin and his team.

How does the DirtyCred exploit work?

DirtyCred is a kernel exploit that replaces non-privileged kernel credentials with privileged ones to escalate privileges on vulnerable systems. Instead of overwriting any critical data area in the kernel stack, the vulnerability abuses the heap memory reuse mechanism to gain privileges. It can overwrite all files with reading permission. The vulnerability allows a local threat actor to crash the system or execute arbitrary code on the vulnerable system.

Github Link is here.

Is there a demo of DirtyCred?

Security researchers have posted a demo on their social media accounts showing how the DirtyCred vulnerability can be used to elevate the privileges of a low-privileged user on two different systems, such as Centos 8 and Ubuntu, using the same Exploit code with the DirtyPipe vulnerability.

Is there a fix for DirtyCred?

At the time of writing, no updates to the DirtyCred exploit were available. The researchers’ repository also includes a defense folder. Security researchers recommend separating privileged credentials from non-privileged ones using virtual memory to prevent potential Cross-Cache attacks using the vulnerability.

Frequently Asked Questions.

What is DirtyCred?

DirtyCred is a Linux kernel exploitation technique that swaps an unprivileged kernel credential for a privileged one by reusing heap memory, so a local attacker can escalate privileges.

Is DirtyCred the same as CVE-2022-0847?

No. CVE-2022-0847 is the DirtyPipe flaw, rated 7.8 (High) in NVD. DirtyCred is a separate technique with no CVE of its own; the researchers' exploits use other CVEs.

Who found DirtyCred?

The research page lists Zhenpeng Lin, Yuhang Wu and Xinyu Xing as authors, and it was presented at Black Hat USA 2022.

Which CVEs does DirtyCred use?

The researchers' repository lists CVE-2021-4154, CVE-2022-2588 and CVE-2022-20409 as the flaws its demonstration exploits use.

Sources

  1. 1 NVD: CVE-2022-0847 (Dirty Pipe)
  2. 2 DirtyCred research repository (Zhenpeng Lin, Yuhang Wu, Xinyu Xing)
Share