2084AI Security Observatory

CVE

CVE-2022-50095

CVE-2022-50095HIGH 7.8EPSS 19%

CNA description

In the Linux kernel, the following vulnerability has been resolved: posix-cpu-timers: Cleanup CPU timers before freeing them during exec Commit 55e8c8eb2c7b ("posix-cpu-timers: Store a reference to a pid not a task") started looking up tasks by PID when deleting a CPU timer. When a non-leader thread calls execve, it will switch PIDs with the leader process. Then, as it calls exit_itimers, posix_cpu_timer_del cannot find the task because the timer still points out to the old PID. That means that armed timers won't be disarmed, that is, they won't be removed from the timerqueue_list. exit_itimers will still release their memory, and when that list is later processed, it leads to a use-after-free. Clean up the timers from the de-threaded task before freeing them. This prevents a reported use-after-free.

Affected versions

All Linux kernel vulnerabilities →

  • ≥ 5.19, < 5.19.2Fixed in 5.19.2
  • ≥ 5.16, < 5.18.18Fixed in 5.18.18
  • ≥ 5.11, < 5.15.61Fixed in 5.15.61
  • ≥ 5.7, < 5.10.137Fixed in 5.10.137

Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.

Advisories and patches

Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.