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.
Published: 2026-09-16
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Preempt count underflow causing incorrect kernel context and potential cgroup policy bypass
Action: Apply Kernel Patch
AI Analysis

Impact

The flaw exists in the LoongArch implementation of kprobes. When a user‑level process issues a breakpoint instruction with code 11, the handler pretends a probe is running and calls preempt_enable_no_resched() without a matching preempt_disable(). This underflows the current task’s preempt count and temporarily reports the task as running in interrupt context. The side effect is that sockets allocated during a SIGTRAP handler are assigned to the root control group instead of the calling process’s group, allowing them to bypass BPF_CGROUP_INET_SOCK_CREATE policy checks. The vulnerability is a local logic fault that could be exploited to gain elevated privileges or bypass network policies when a user can trigger a breakpoint.

Affected Systems

All Linux kernel builds running on LoongArch CPUs are affected, including all mainstream distributions that ship the default kernel for that architecture. Version information is not explicitly listed, but the issue was present in mainline kernels before the recent commit that restores the proper probing check.

Risk and Exploitability

The CVSS score of 7.8 categorises the vulnerability as high severity, while the EPSS score of < 1% indicates a very low current exploitation probability. The issue is not listed in the CISA KEV catalog. Exploitation requires a local user that can execute arbitrary instructions, mainly by setting up a breakpoint 11. An attacker could trigger the underflow to seduce the kernel into treating the task as an interrupt, thereby creating sockets in the root cgroup and evading BPF cgroup policies. This provides a privilege escalation path from a regular user to kernel‑level effect in the context of the affected architecture.

Generated by OpenCVE AI on September 18, 2026 at 03:47 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a release that includes the LoongArch kprobe fix (the commit referenced in the advisory links).
  • If an upgrade is delayed, consider disabling the use of the breakpoint instruction 11 in critical userland processes or restricting ptrace and probe interfaces to trusted users.
  • Monitor kernel logs for unusual in_interrupt() flags or socket allocations during SIGTRAP handlers, and block or audit any socket creations that appear to arrive outside normal process context.

Generated by OpenCVE AI on September 18, 2026 at 03:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6528-1 linux security update
History

Fri, 18 Sep 2026 04:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-269

Wed, 16 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Wed, 16 Sep 2026 10:45:00 +0000

Type Values Removed Values Added
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.
Title LoongArch: Avoid preempt count underflow without probe
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-16T14:39:50.410Z

Reserved: 2026-09-11T19:38:34.774Z

Link: CVE-2026-89902

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-16T11:16:59.143

Modified: 2026-09-16T15:18:16.307

Link: CVE-2026-89902

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-18T04:00:03Z

Weaknesses
  • CWE-269

    Improper Privilege Management