fs/proc: do_task_stat: use sig->stats_lock to gather the threads/children stats
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 7601df8031fd67310af891897ef6cc0df4209305| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fs/proc: do_task_stat: use sig->stats_lock to gather the threads/children stats
lock_task_sighand() can trigger a hard lockup. If NR_CPUS threads call do_task_stat() at the same time and the process has NR_THREADS, it will spin with irqs disabled O(NR_CPUS * NR_THREADS) time.
Change do_task_stat() to use sig->stats_lock to gather the statistics outside of ->siglock protected section, in the likely case this code will run lockless.
From the CVE record · Linux
The Linux kernel's do_task_stat() can trigger a hard lockup when many threads call it concurrently for a process with many threads. The described condition involves concurrent local calls; the input does not specify authentication requirements or user interaction.
Engineers running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified.