CVE-2026-99877: LoongArch: Only send SIGTRAP signal if necessary in do_watch()

Published Nov 30, 2026
·
Updated

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

LoongArch: Only send SIGTRAP signal if necessary in dowatch()

In dowatch(), the kernel unconditionally forces a SIGTRAP signal at the end of the handler via forcesig(SIGTRAP). This is essential for ptrace operations, but it severely disrupts standard perfevent usage.

Under normal perf usage, it is not necessary to force a SIGTRAP signal on every hit. Forcing it unnecessarily aborts the target process if no user-space signal handler is registered, which violates performance monitoring behaviors and injects context switch overheads.

However, a conditional check using only 'current->ptrace' would block legitimate user-requested signals when a perfevent is configured with 'attr.sigtrap = 1' for asynchronous user-space tracking.

Fix this by refactoring breakpointhandler() and watchpointhandler() to return a boolean status indicating whether any triggered breakpoint explicitly requires a signal notification. Update dowatch() to enforce the SIGTRAP signal only when the process is actively being debugged via ptrace, or when the underlying perfevent infrastructure specifically demands it via 'attr.sigtrap'.

Affected Software

8 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.3.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux<6.12.117-1
6.12.117-1
debian/linux<7.3.4-1
7.3.4-1
debian/linux
6.12.117-17.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  5. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1
  6. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1
  7. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1Fixed in 7.3.4-1
  8. Compensating control

    Update do_watch() to send SIGTRAP only when the process is actively being debugged via ptrace or the perf_event explicitly requests signal notification via attr.sigtrap.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:17 PM
Data Sourced
via MITRE·01:17 PM
Description
Data Sourced
via OSV·01:17 PM
DescriptionAffected Software
Data Sourced
via NVD·02:20 PM
Description

Frequently Asked Questions

1

Who is most likely to be affected by this issue?

LoongArch systems using Linux kernel watchpoints or hardware breakpoints through standard perf_event monitoring are affected by the erroneous behavior. Processes can be aborted when a watchpoint or breakpoint is hit and no user-space SIGTRAP handler is registered.

2

What conditions caused the unwanted SIGTRAP delivery?

Before the fix, do_watch() forced SIGTRAP after handling every watchpoint event, including ordinary perf_event hits. The signal is only needed for ptrace debugging or when the perf event explicitly requests it with attr.sigtrap set to 1.

3

How can an administrator recognize the issue in practice?

A monitored process may terminate or be interrupted when a perf_event watchpoint or breakpoint triggers, despite not being under ptrace debugging and not having a SIGTRAP handler. The behavior can also add avoidable context-switch overhead during performance monitoring.

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