CVE-2024-50178 cpufreq: loongson3: Use raw_smp_processor_id() in do_service_request()
A bug in the Loongson3 cpufreq driver causes kernel errors when using smp_processor_id in preemptible code, potentially leading to system instability or crashes.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-50178?
CVE-2024-50178 is a medium-severity denial of service vulnerability in Linux kernel, published on 8 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: loongson3: Use raw_smp_processor_id() in do_service_request()
Use raw_smp_processor_id() instead of plain smp_processor_id() in do_service_request(), otherwise we may get some errors with the driver enabled:
BUG: using smp_processor_id() in preemptible [00000000] code: (udev-worker)/208 caller is loongson3_cpufreq_probe+0x5c/0x250 [loongson3_cpufreq]
Which versions are affected by CVE-2024-50178?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50178?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-50178 being exploited?
There is no known exploitation of CVE-2024-50178 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-53549, AZL-53796, BELL-CVE-2024-50178, DEBIAN-CVE-2024-50178, GHSA-jggr-hhvm-4c9f, ROOT-OS-UBUNTU-2204-CVE-2024-50178 and 1 more.