CVE-2024-50111: LoongArch: Enable IRQ if do_ale() triggered in irq-enabled context

Published Nov 5, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

LoongArch: Enable IRQ if doale() triggered in irq-enabled context

Unaligned access exception can be triggered in irq-enabled context such as user mode, in this case doale() may call getuser() which may cause sleep. Then we will get:

BUG: sleeping function called from invalid context at arch/loongarch/kernel/access-helper.h:7 inatomic(): 0, irqsdisabled(): 1, nonblock: 0, pid: 129, name: modprobe preemptcount: 0, expected: 0 RCU nest depth: 0, expected: 0 CPU: 0 UID: 0 PID: 129 Comm: modprobe Tainted: G W 6.12.0-rc1+ #1723 Tainted: [W]=WARN Stack : 9000000105e0bd48 0000000000000000 9000000003803944 9000000105e08000 9000000105e0bc70 9000000105e0bc78 0000000000000000 0000000000000000 9000000105e0bc78 0000000000000001 9000000185e0ba07 9000000105e0b890 ffffffffffffffff 9000000105e0bc78 73924b81763be05b 9000000100194500 000000000000020c 000000000000000a 0000000000000000 0000000000000003 00000000000023f0 00000000000e1401 00000000072f8000 0000007ffbb0e260 0000000000000000 0000000000000000 9000000005437650 90000000055d5000 0000000000000000 0000000000000003 0000007ffbb0e1f0 0000000000000000 0000005567b00490 0000000000000000 9000000003803964 0000007ffbb0dfec 00000000000000b0 0000000000000007 0000000000000003 0000000000071c1d ... Call Trace: [<9000000003803964>] showstack+0x64/0x1a0 [<9000000004c57464>] dumpstacklvl+0x74/0xb0 [<9000000003861ab4>] mightresched+0x154/0x1a0 [<900000000380c96c>] emulateloadstoreinsn+0x6c/0xf60 [<9000000004c58118>] doale+0x78/0x180 [<9000000003801bc8>] handleale+0x128/0x1e0

So enable IRQ if unaligned access exception is triggered in irq-enabled context to fix it.

Affected Software

9 affected componentsFixes available
Linux Linux kernel<6.6.59
Linux Linux kernel>=6.7<6.11.6
Linux Linux kernel=6.12-rc1
Linux Linux kernel=6.12-rc2
Linux Linux kernel=6.12-rc3
Linux Linux kernel=6.12-rc4
debian/linux<=6.1.129-1, <=6.1.135-1
5.10.223-15.10.234-16.12.25-1
Microsoft azl3 kernel 6.6.64.2-1
Microsoft azl3 kernel 6.6.57.1-7

Event History

Nov 5, 2024
CVE Published
via MITRE·05:10 PM
Data Sourced
via MITRE·05:10 PM
Description
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityAffected Software
Jan 29, 2025
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:00 AM
SeverityAffected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity
Apr 29, 2025
Data Sourced
via Ubuntu·01:06 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-50111?

The severity of CVE-2024-50111 has been classified as moderate.

2

Which versions of the Linux Kernel are affected by CVE-2024-50111?

CVE-2024-50111 affects Linux Kernel versions between 6.7 and 6.11.6, as well as specific release candidates.

3

How do I fix CVE-2024-50111?

To address CVE-2024-50111, update to the latest version of the Linux Kernel containing the fix, such as 5.10.223-1, 6.12.12-1, or newer.

4

What type of vulnerability is CVE-2024-50111?

CVE-2024-50111 is an unaligned access exception that can occur in an IRQ-enabled context.

5

Is user mode execution affected by CVE-2024-50111?

Yes, CVE-2024-50111 can impact user mode execution, potentially leading to security vulnerabilities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203