# CVE-2026-89902: LoongArch: Avoid preempt count underflow without probe

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.18% (percentile 4, 2026-11-26)
- **Published:** 2026-09-16T10:32:01.655Z
- **Modified:** 2026-10-19T09:18:35.527Z

## Who should check

- Anyone running Linux \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< ff40e597d5d98c0c45a4d09df8177202fac9520e; \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< a1cb727fa27c2d9c7859729cd90db7bc0f46957f; \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< 76395109a051b53860faaec96522ef08ae9e8e27; \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< c4357ebeee63cb8da1446fc936573a34e68b0f71; \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< 72ce4b24676e8b3b75376c4c559dd81c1ac52d5a
- Anyone running Linux 6.3

## Description

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

LoongArch: Avoid preempt count underflow without probe

LoongArch uses break 11 for the breakpoint placed after an instruction
that Kprobes executes out of line. Since userspace can issue the same
break instruction, do\_bp() can reach kprobe\_singlestep\_handler() when
there is no current probe.

The handler actually returns false in this case, but it first calls
preempt\_enable\_no\_resched(). The corresponding preempt\_disable() is done
by kprobe\_breakpoint\_handler() on a real Kprobe hit, so it has not run
here. As a result, an ordinary userspace breakpoint (code 11) underflows
the current task's preempt count.

This also makes in\_interrupt() return true until the task schedules. One
visible consequence is the socket cgroup attribution: cgroup\_sk\_alloc()
treats the allocation as interrupt context and assigns the socket to the
root cgroup. A socket opened from the SIGTRAP handler can then avoid a
BPF\_CGROUP\_INET\_SOCK\_CREATE policy attached to the task's own cgroup.

Return as soon as kprobe\_running() reports no active probe.

The same check has appeared in \[PATCH v10 2/4\] of the original LoongArch
Kprobes series, but was dropped before the feature reached mainline.

## Affected and fixed versions

- Linux: \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< ff40e597d5d98c0c45a4d09df8177202fac9520e; \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< a1cb727fa27c2d9c7859729cd90db7bc0f46957f; \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< 76395109a051b53860faaec96522ef08ae9e8e27; \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< c4357ebeee63cb8da1446fc936573a34e68b0f71; \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< 72ce4b24676e8b3b75376c4c559dd81c1ac52d5a (cvelist)
- Linux: 6.3 (cvelist)

## Mitigation

- Upgrade Linux to 72ce4b24676e8b3b75376c4c559dd81c1ac52d5a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-89902.md
Affected: Linux >= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, < ff40e597d5d98c0c45a4d09df8177202fac9520e; >= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, < a1cb727fa27c2d9c7859729cd90db7bc0f46957f; >= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, < 76395109a051b53860faaec96522ef08ae9e8e27; >= 6d4cc40fb5f58147defc6c0…
Fixed in: Linux 76395109a051b53860faaec96522ef08ae9e8e27, Linux 72ce4b24676e8b3b75376c4c559dd81c1ac52d5a

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-2026-89902 being exploited?

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

### How serious is CVE-2026-89902?

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

### Which versions are affected by CVE-2026-89902?

Linux \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< ff40e597d5d98c0c45a4d09df8177202fac9520e; \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< a1cb727fa27c2d9c7859729cd90db7bc0f46957f; \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< 76395109a051b53860faaec96522ef08ae9e8e27; \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< c4357ebeee63cb8da1446fc936573a34e68b0f71; \>= 6d4cc40fb5f58147defc6c0e9d86e6232fe31616, \< 72ce4b24676e8b3b75376c4c559dd81c1ac52d5a; Linux 6.3.

### Is there a fix for CVE-2026-89902?

Yes. Fixed in Linux 76395109a051b53860faaec96522ef08ae9e8e27, Linux 72ce4b24676e8b3b75376c4c559dd81c1ac52d5a. Upgrade Linux to 72ce4b24676e8b3b75376c4c559dd81c1ac52d5a or later.

### How do I check if I'm affected by CVE-2026-89902?

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

- other: <https://git.kernel.org/stable/c/ff40e597d5d98c0c45a4d09df8177202fac9520e>
- other: <https://git.kernel.org/stable/c/a1cb727fa27c2d9c7859729cd90db7bc0f46957f>
- other: <https://git.kernel.org/stable/c/76395109a051b53860faaec96522ef08ae9e8e27>
- other: <https://git.kernel.org/stable/c/c4357ebeee63cb8da1446fc936573a34e68b0f71>
- other: <https://git.kernel.org/stable/c/72ce4b24676e8b3b75376c4c559dd81c1ac52d5a>

## 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-2026-89902>

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