Time-of-check Time-of-use (TOCTOU) Race Condition in networkd-dispatcher - CVE-2022-29800
Published: April 28, 2022
Vulnerability details
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a race condition between the scripts being discovered and them being run. An local user can abuse this vulnerability to replace scripts that networkd-dispatcher believes to be owned by root to ones that are not. Along with vulnerability #VU62689 (CVE-2022-29799) this allows privilege escalation by overwriting arbitrary files on the system.
Affected software
Ubuntu
networkd-dispatcher (Ubuntu package)
How to mitigate CVE-2022-29800
networkd-dispatcher (Ubuntu package) - addressed in versions 1.7-0ubuntu3.4, 1.7-0ubuntu3.5, 2.1-2ubuntu0.21.10.1, 2.1-2ubuntu0.21.10.2, 2.1-2ubuntu0.22.04.1, 2.1-2ubuntu0.22.04.2, 2.1-2~ubuntu20.04.2, 2.1-2~ubuntu20.04.3