Time-of-check Time-of-use (TOCTOU) Race Condition in networkd-dispatcher - CVE-2022-29800

 

Time-of-check Time-of-use (TOCTOU) Race Condition in networkd-dispatcher - CVE-2022-29800

Published: April 28, 2022


Vulnerability identifier: #VU62690
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-29800
CWE-ID: CWE-367
Exploitation vector: Local access
Exploit availability: No public exploit available

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

networkd-dispatcher
Ubuntu
networkd-dispatcher (Ubuntu package)

How to mitigate CVE-2022-29800

Install updates from vendor's website.

networkd-dispatcher - update to 2.2
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

External References

Related Security Bulletins