CVE-2024-50133: LoongArch: Don't crash in stack_top() for tasks without vDSO
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: Don't crash in stacktop() for tasks without vDSO
Not all tasks have a vDSO mapped, for example kthreads never do. If such a task ever ends up calling stacktop(), it will derefence the NULL vdso pointer and crash.
This can for example happen when using kunit:
[<9000000000203874>] stacktop+0x58/0xa8 [<90000000002956cc>] archpickmmaplayout+0x164/0x220 [<90000000003c284c>] kunitvmmmapinit+0x108/0x12c [<90000000003c1fbc>] kunitaddresource+0x38/0x8c [<90000000003c2704>] kunitvmmmap+0x88/0xc8 [<9000000000410b14>] usercopytestinit+0xbc/0x25c [<90000000003c1db4>] kunittryruncase+0x5c/0x184 [<90000000003c3d54>] kunitgenericrunthreadfnadapter+0x24/0x48 [<900000000022e4bc>] kthread+0xc8/0xd4 [<9000000000200ce8>] retfromkernelthread+0xc/0xa4
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50133?
CVE-2024-50133 has a severity rating that classifies it as a moderate risk vulnerability in the Linux kernel.
How do I fix CVE-2024-50133?
To fix CVE-2024-50133, you should update your Linux kernel to the latest patched version that addresses this vulnerability.
Which versions of the Linux kernel are affected by CVE-2024-50133?
CVE-2024-50133 affects multiple versions of the Linux kernel, specifically between versions 5.19 and 6.1.115, 6.2 and 6.6.59, and several release candidates of version 6.12.
What are the potential impacts of CVE-2024-50133?
CVE-2024-50133 could potentially lead to a kernel crash when certain tasks call stack_top() without a mapped vDSO.
Is CVE-2024-50133 specific to any particular architecture?
Yes, CVE-2024-50133 specifically affects the LoongArch architecture within the Linux kernel.