# CVE-2023-53067: LoongArch: Only call get\_timer\_irq() once in constant\_clockevent\_init()

> 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, NVD) `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.28% (percentile 13, 2026-11-28)
- **Published:** 2025-05-02T15:55:20.477Z
- **Modified:** 2026-06-17T06:44:13.950Z

## Who should check

- Anyone running Linux \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< b9c379e1d7e141b102f41858c9b8f6f36e7c89a4; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< acadbd058fa12b510fbecca11eae22bd6f654250; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< bb7a78e343468873bf00b2b181fcfd3c02d8cb56
- Anyone running Linux 5.19

## Description

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

LoongArch: Only call get\_timer\_irq() once in constant\_clockevent\_init()

Under CONFIG\_DEBUG\_ATOMIC\_SLEEP=y and CONFIG\_DEBUG\_PREEMPT=y, we can see
the following messages on LoongArch, this is because using might\_sleep()
in preemption disable context.

\[    0.001127\] smp: Bringing up secondary CPUs ...
\[    0.001222\] Booting CPU\#1...
\[    0.001244\] 64-bit Loongson Processor probed (LA464 Core)
\[    0.001247\] CPU1 revision is: 0014c012 (Loongson-64bit)
\[    0.001250\] FPU1 revision is: 00000000
\[    0.001252\] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:283
\[    0.001255\] in\_atomic(): 1, irqs\_disabled(): 1, non\_block: 0, pid: 0, name: swapper/1
\[    0.001257\] preempt\_count: 1, expected: 0
\[    0.001258\] RCU nest depth: 0, expected: 0
\[    0.001259\] Preemption disabled at:
\[    0.001261\] \[\<9000000000223800\>\] arch\_dup\_task\_struct+0x20/0x110
\[    0.001272\] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.2.0-rc7+ \#43
\[    0.001275\] Hardware name: Loongson Loongson-3A5000-7A1000-1w-A2101/Loongson-LS3A5000-7A1000-1w-A2101, BIOS vUDK2018-LoongArch-V4.0.05132-beta10 12/13/202
\[    0.001277\] Stack : 0072617764726148 0000000000000000 9000000000222f1c 90000001001e0000
\[    0.001286\]         90000001001e3be0 90000001001e3be8 0000000000000000 0000000000000000
\[    0.001292\]         90000001001e3be8 0000000000000040 90000001001e3cb8 90000001001e3a50
\[    0.001297\]         9000000001642000 90000001001e3be8 be694d10ce4139dd 9000000100174500
\[    0.001303\]         0000000000000001 0000000000000001 00000000ffffe0a2 0000000000000020
\[    0.001309\]         000000000000002f 9000000001354116 00000000056b0000 ffffffffffffffff
\[    0.001314\]         0000000000000000 0000000000000000 90000000014f6e90 9000000001642000
\[    0.001320\]         900000000022b69c 0000000000000001 0000000000000000 9000000001736a90
\[    0.001325\]         9000000100038000 0000000000000000 9000000000222f34 0000000000000000
\[    0.001331\]         00000000000000b0 0000000000000004 0000000000000000 0000000000070000
\[    0.001337\]         ...
\[    0.001339\] Call Trace:
\[    0.001342\] \[\<9000000000222f34\>\] show\_stack+0x5c/0x180
\[    0.001346\] \[\<90000000010bdd80\>\] dump\_stack\_lvl+0x60/0x88
\[    0.001352\] \[\<9000000000266418\>\] \_\_might\_resched+0x180/0x1cc
\[    0.001356\] \[\<90000000010c742c\>\] mutex\_lock+0x20/0x64
\[    0.001359\] \[\<90000000002a8ccc\>\] irq\_find\_matching\_fwspec+0x48/0x124
\[    0.001364\] \[\<90000000002259c4\>\] constant\_clockevent\_init+0x68/0x204
\[    0.001368\] \[\<900000000022acf4\>\] start\_secondary+0x40/0xa8
\[    0.001371\] \[\<90000000010c0124\>\] smpboot\_entry+0x60/0x64

Here are the complete call chains:

smpboot\_entry()
  start\_secondary()
    constant\_clockevent\_init()
      get\_timer\_irq()
        irq\_find\_matching\_fwnode()
          irq\_find\_matching\_fwspec()
            mutex\_lock()
              might\_sleep()
                \_\_might\_sleep()
                  \_\_might\_resched()

In order to avoid the above issue, we should break the call chains,
using timer\_irq\_installed variable as check condition to only call
get\_timer\_irq() once in constant\_clockevent\_init() is a simple and
proper way.

## Affected and fixed versions

- Linux: \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< b9c379e1d7e141b102f41858c9b8f6f36e7c89a4; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< acadbd058fa12b510fbecca11eae22bd6f654250; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< bb7a78e343468873bf00b2b181fcfd3c02d8cb56 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53067.md
Affected: Linux >= fa96b57c149061f71a70bd6582d995f6424fbbf4, < b9c379e1d7e141b102f41858c9b8f6f36e7c89a4; >= fa96b57c149061f71a70bd6582d995f6424fbbf4, < acadbd058fa12b510fbecca11eae22bd6f654250; >= fa96b57c149061f71a70bd6582d995f6424fbbf4, < bb7a78e343468873bf00b2b181fcfd3c02d8cb56; Linux 5.19
Fixed in: no fixed version listed yet

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-2023-53067 being exploited?

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

### How serious is CVE-2023-53067?

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

### Which versions are affected by CVE-2023-53067?

Linux \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< b9c379e1d7e141b102f41858c9b8f6f36e7c89a4; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< acadbd058fa12b510fbecca11eae22bd6f654250; \>= fa96b57c149061f71a70bd6582d995f6424fbbf4, \< bb7a78e343468873bf00b2b181fcfd3c02d8cb56; Linux 5.19.

### Is there a fix for CVE-2023-53067?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-53067?

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/b9c379e1d7e141b102f41858c9b8f6f36e7c89a4>
- patch: <https://git.kernel.org/stable/c/acadbd058fa12b510fbecca11eae22bd6f654250>
- patch: <https://git.kernel.org/stable/c/bb7a78e343468873bf00b2b181fcfd3c02d8cb56>

## 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-2023-53067>

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