CVE-2026-99878: LoongArch: Remove arch-specific __smp_mb__{before,after}_atomic()

Published Nov 30, 2026
·
Updated

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

LoongArch: Remove arch-specific smpmb{before,after}atomic()

When running BPF selftest "testprogs -t timerlockup" on a LoongArch machine, the kernel intermittently experiences soft lockups and panics in hrtimercancel().

The root cause is that the bpftimercancel() implementation relies on smpmbafteratomic() to provide a full data barrier after a relaxed atomicinc() to ensure the proper store-load ordering before performing lockless dependency checks on weakly-ordered architectures, such as on LoongArch, but the current definition of smpmbafteratomic() is just a plain compiler barrier.

This allows a subsequent read to bypass the prior write due to store- load reordering, enabling concurrent CPUs to simultaneously bypass the software deadlock detection, enter hrtimercancel(), and then trigger a severe ABBA deadlock in the hrtimer core.

Moreover, there are hundreds of smpmbafteratomic() call sites across the core kernel (kernel/, drivers/, mm/, net/, fs/) that currently lack necessary full data barriers on LoongArch, which have potential risks.

To comply with the LKMM specification, fix this by removing the arch- specific definition of smpmbafteratomic(), so that this macro can automatically fall back to the generic definition in asm-generic that maps to smpmb() and emits the required hardware DBAR instruction.

While at it, do the same thing for smpmbbeforeatomic().

With this patch the BPF timerlockup selftest was stressed for millions consecutive loops on a physical LoongArch machine, without encountering any further lockups.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Remove LoongArch’s arch-specific definitions of __smp_mb__before_atomic() and __smp_mb__after_atomic() so they fall back to the generic asm-generic definitions.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:17 PM
Data Sourced
via MITRE·01:17 PM
Description

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