{"id":"CVE-2022-50095","summary":"posix-cpu-timers: Cleanup CPU timers before freeing them during exec","details":"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.","modified":"2026-04-03T13:14:35.703859Z","published":"2025-06-18T11:02:33.221Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50095.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/541840859ace9c2ccebc32fa9e376c7bd3def490"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9e255ed238fc67058df87b0388ad6d4b2ef3a2bd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b2fc1723eb65abb83e00d5f011de670296af0b28"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e362359ace6f87c201531872486ff295df306d13"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e8cb6e8fd9890780f1bfcf5592889e1b879e779c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50095.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50095"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"55e8c8eb2c7b6bf30e99423ccfe7ca032f498f59"},{"fixed":"541840859ace9c2ccebc32fa9e376c7bd3def490"},{"fixed":"9e255ed238fc67058df87b0388ad6d4b2ef3a2bd"},{"fixed":"e8cb6e8fd9890780f1bfcf5592889e1b879e779c"},{"fixed":"b2fc1723eb65abb83e00d5f011de670296af0b28"},{"fixed":"e362359ace6f87c201531872486ff295df306d13"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50095.json"}}],"schema_version":"1.7.5"}