CVE-2026-99878

Source
https://cve.org/CVERecord?id=CVE-2026-99878
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99878.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99878
Downstream
Published
2026-11-30T13:17:54Z
Modified
2026-11-30T15:02:31Z
Summary
LoongArch: Remove arch-specific __smp_mb__{before,after}_atomic()
Details

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

LoongArch: Remove arch-specific smp_mb{before,after}_atomic()

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

The root cause is that the bpf_timer_cancel() implementation relies on smp_mb__after_atomic() to provide a full data barrier after a relaxed atomic_inc() 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 smp_mb__after_atomic() 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 hrtimer_cancel(), and then trigger a severe ABBA deadlock in the hrtimer core.

Moreover, there are hundreds of smp_mb__after_atomic() 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 __smp_mb__after_atomic(), so that this macro can automatically fall back to the generic definition in asm-generic that maps to __smp_mb() and emits the required hardware DBAR instruction.

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

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

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99878.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
affef66b65889a0ea0060e13e5f7fe569897d787
Fixed
7a83149ed9c25fe4f2f0f59de61ea11ea24f542b
Fixed
a307ab34e323be8e18cfca948d6fee6a00457ca4
Fixed
0b131557b0e31706bc6e43cf0c986cf0a35a5871
Fixed
85cebdfee765e92e748e71b9b91889eef5988282

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99878.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99878.json"