Use-after-free in Linux kernel - CVE-2022-24122
Published: January 31, 2022 / Updated: March 15, 2022
Vulnerability details
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a use-after-free error with in the kernel/ucount.c in Linux kernel, when unprivileged user namespaces are enabled. A local user can trigger a use-after-free error, because a ucounts object can outlive its namespace, and execute arbitrary ode with elevated privileges.
Affected software
Ubuntu
Fedora
linux-image-oem-20.04d (Ubuntu package)
linux-image-5.14.0-1022-oem (Ubuntu package)
kernel
kernel-headers
kernel-tools
How to mitigate CVE-2022-24122
linux-image-5.14.0-1022-oem (Ubuntu package) - update to 5.14.0-1022.24
kernel - addressed in versions 5.16.5-100.fc34, 5.16.5-200.fc35
kernel-headers - addressed in versions 5.16.5-100.fc34, 5.16.5-200.fc35
kernel-tools - addressed in versions 5.16.5-100.fc34, 5.16.5-200.fc35