CVE-2024-56550: s390/stacktrace: Use break instead of return statement
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
s390/stacktrace: Use break instead of return statement
arch_stack_walk_user_common() contains a return statement instead of a break statement in case store_ip() fails while trying to store a callchain entry of a user space process.
This may lead to a missing pagefault_enable() call.
If this happens any subsequent page fault of the process won't be resolved by the page fault handler and this in turn will lead to the process being killed.
Use a break instead of a return statement to fix this.
The Linux kernel CVE team has assigned CVE-2024-56550 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit ebd912ff9919a10609511383d94942362234c077 and fixed in 6.12.4 with commit 20c26357826457dc7c8145297e60ddc012e18914 Issue introduced in 6.10 with commit ebd912ff9919a10609511383d94942362234c077 and fixed in 6.13-rc1 with commit 588a9836a4ef7ec3bfcffda526dfa399637e6cfc Issue introduced in 6.9.4 with commit dd69165ac3dc12d8550aeec3fc4439c084ded3d8
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-56550
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:
arch/s390/kernel/stacktrace.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/20c26357826457dc7c8145297e60ddc012e18914 https://git.kernel.org/stable/c/588a9836a4ef7ec3bfcffda526dfa399637e6cfc