{"id":"CVE-2022-50095","published":"2025-06-18T11:02:33Z","modified":"2026-08-05T08:57:22Z","title":"posix-cpu-timers: Cleanup CPU timers before freeing them during exec","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nposix-cpu-timers: Cleanup CPU timers before freeing them during exec\n\nCommit 55e8c8eb2c7b (\"posix-cpu-timers: Store a reference to a pid not a\ntask\") started looking up tasks by PID when deleting a CPU timer.\n\nWhen a non-leader thread calls execve, it will switch PIDs with the leader\nprocess. Then, as it calls exit_itimers, posix_cpu_timer_del cannot find\nthe task because the timer still points out to the old PID.\n\nThat means that armed timers won't be disarmed, that is, they won't be\nremoved from the timerqueue_list. exit_itimers will still release their\nmemory, and when that list is later processed, it leads to a\nuse-after-free.\n\nClean up the timers from the de-threaded task before freeing them. This\nprevents a reported use-after-free.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0027,"percentile":0.1937,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/541840859ace9c2ccebc32fa9e376c7bd3def490","tags":[]},{"url":"https://git.kernel.org/stable/c/9e255ed238fc67058df87b0388ad6d4b2ef3a2bd","tags":[]},{"url":"https://git.kernel.org/stable/c/e8cb6e8fd9890780f1bfcf5592889e1b879e779c","tags":[]},{"url":"https://git.kernel.org/stable/c/b2fc1723eb65abb83e00d5f011de670296af0b28","tags":[]},{"url":"https://git.kernel.org/stable/c/e362359ace6f87c201531872486ff295df306d13","tags":[]}],"priority":{"score":9.3,"factors":[{"name":"EPSS percentile","points":3.87},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, < 541840859ace9c2ccebc32fa9e376c7bd3def490",">= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, < 9e255ed238fc67058df87b0388ad6d4b2ef3a2bd",">= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, < e8cb6e8fd9890780f1bfcf5592889e1b879e779c",">= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, < b2fc1723eb65abb83e00d5f011de670296af0b28",">= 55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59, < e362359ace6f87c201531872486ff295df306d13"]},{"vendor":"Linux","product":"Linux","versions":["5.7"]}],"euvd":{"id":"EUVD-2022-55361","exploited":false,"provenance":"source"}}