| From bippy-1.1.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-26686: fs/proc: do_task_stat: use sig->stats_lock to gather the threads/children stats |
| |
| Description |
| =========== |
| |
| 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. |
| |
| The Linux kernel CVE team has assigned CVE-2024-26686 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Fixed in 5.10.237 with commit 4fe85bdaabd63f8f8579b24a10ed597c9c482164 |
| Fixed in 5.15.181 with commit 0c35d1914353799c54fa1843fe7dea6fcbcdbac5 |
| Fixed in 6.1.82 with commit cf4b8c39b9a0bd81c47afc7ef62914a62dd5ec4d |
| Fixed in 6.6.64 with commit 3820b0fac7732a653bcc6f6ac20c1d72e697f8f6 |
| Fixed in 6.7.6 with commit 27978243f165b44e342f28f449b91327944ea071 |
| Fixed in 6.8 with commit 7601df8031fd67310af891897ef6cc0df4209305 |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2024-26686 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| fs/proc/array.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/4fe85bdaabd63f8f8579b24a10ed597c9c482164 |
| https://git.kernel.org/stable/c/0c35d1914353799c54fa1843fe7dea6fcbcdbac5 |
| https://git.kernel.org/stable/c/cf4b8c39b9a0bd81c47afc7ef62914a62dd5ec4d |
| https://git.kernel.org/stable/c/3820b0fac7732a653bcc6f6ac20c1d72e697f8f6 |
| https://git.kernel.org/stable/c/27978243f165b44e342f28f449b91327944ea071 |
| https://git.kernel.org/stable/c/7601df8031fd67310af891897ef6cc0df4209305 |