# CVE-2024-50111: LoongArch: Enable IRQ if do\_ale() triggered in irq-enabled context

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **Published:** 2024-11-05T17:10:43.981Z
- **Modified:** 2026-06-17T08:03:36.970Z

## Who should check

- Anyone running Linux \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 8915ed160dbd32b5ef5864df9a9fc11db83a77bb; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< afbfb3568d78082078acc8bb2b29bb47af87253c; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 69cc6fad5df4ce652d969be69acc60e269e5eea1
- Anyone running Linux 5.19

## Description

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

LoongArch: Enable IRQ if do\_ale() triggered in irq-enabled context

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

 BUG: sleeping function called from invalid context at arch/loongarch/kernel/access-helper.h:7
 in\_atomic(): 0, irqs\_disabled(): 1, non\_block: 0, pid: 129, name: modprobe
 preempt\_count: 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\>\] show\_stack+0x64/0x1a0
 \[\<9000000004c57464\>\] dump\_stack\_lvl+0x74/0xb0
 \[\<9000000003861ab4\>\] \_\_might\_resched+0x154/0x1a0
 \[\<900000000380c96c\>\] emulate\_load\_store\_insn+0x6c/0xf60
 \[\<9000000004c58118\>\] do\_ale+0x78/0x180
 \[\<9000000003801bc8\>\] handle\_ale+0x128/0x1e0

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

## Affected and fixed versions

- Linux: \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 8915ed160dbd32b5ef5864df9a9fc11db83a77bb; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< afbfb3568d78082078acc8bb2b29bb47af87253c; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 69cc6fad5df4ce652d969be69acc60e269e5eea1 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 69cc6fad5df4ce652d969be69acc60e269e5eea1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-50111. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50111.md
Affected: Linux >= fa96b57c149061f71a70bd6582d995f6424fbbf4, < 8915ed160dbd32b5ef5864df9a9fc11db83a77bb; >= fa96b57c149061f71a70bd6582d995f6424fbbf4, < afbfb3568d78082078acc8bb2b29bb47af87253c; >= fa96b57c149061f71a70bd6582d995f6424fbbf4, < 69cc6fad5df4ce652d969be69acc60e269e5eea1; Linux 5.19
Fixed in: Linux 8915ed160dbd32b5ef5864df9a9fc11db83a77bb, Linux 69cc6fad5df4ce652d969be69acc60e269e5eea1

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-50111 being exploited?

There is no confirmed exploitation: CVE-2024-50111 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-50111?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-50111?

Linux \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 8915ed160dbd32b5ef5864df9a9fc11db83a77bb; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< afbfb3568d78082078acc8bb2b29bb47af87253c; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< 69cc6fad5df4ce652d969be69acc60e269e5eea1; Linux 5.19.

### Is there a fix for CVE-2024-50111?

Yes. Fixed in Linux 8915ed160dbd32b5ef5864df9a9fc11db83a77bb, Linux 69cc6fad5df4ce652d969be69acc60e269e5eea1. Upgrade Linux to 69cc6fad5df4ce652d969be69acc60e269e5eea1 or later.

### How do I check if I'm affected by CVE-2024-50111?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8915ed160dbd32b5ef5864df9a9fc11db83a77bb>
- patch: <https://git.kernel.org/stable/c/afbfb3568d78082078acc8bb2b29bb47af87253c>
- patch: <https://git.kernel.org/stable/c/69cc6fad5df4ce652d969be69acc60e269e5eea1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50111>

HTML: <https://flawdb.com/CVE-2024-50111> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50111>
