{"id":"CVE-2026-99877","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:20:22.100","lastModified":"2026-11-30T14:20:22.100","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: Only send SIGTRAP signal if necessary in do_watch()\n\nIn do_watch(), the kernel unconditionally forces a SIGTRAP signal at the\nend of the handler via force_sig(SIGTRAP). This is essential for ptrace\noperations, but it severely disrupts standard perf_event usage.\n\nUnder normal perf usage, it is not necessary to force a SIGTRAP signal\non every hit. Forcing it unnecessarily aborts the target process if no\nuser-space signal handler is registered, which violates performance\nmonitoring behaviors and injects context switch overheads.\n\nHowever, a conditional check using only 'current->ptrace' would block\nlegitimate user-requested signals when a perf_event is configured with\n'attr.sigtrap = 1' for asynchronous user-space tracking.\n\nFix this by refactoring breakpoint_handler() and watchpoint_handler()\nto return a boolean status indicating whether any triggered breakpoint\nexplicitly requires a signal notification. Update do_watch() to enforce\nthe SIGTRAP signal only when the process is actively being debugged via\nptrace, or when the underlying perf_event infrastructure specifically\ndemands it via 'attr.sigtrap'."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["arch/loongarch/include/asm/hw_breakpoint.h","arch/loongarch/kernel/hw_breakpoint.c","arch/loongarch/kernel/traps.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"424421a7f34c1222d20a6c279f13b9caa71ecc83","lessThan":"44346dd182cfac7e32575295ba0c2aa01d27566e","versionType":"git","status":"affected"},{"version":"424421a7f34c1222d20a6c279f13b9caa71ecc83","lessThan":"7e56651033584f16c019ff2a223c0f9417230f39","versionType":"git","status":"affected"},{"version":"424421a7f34c1222d20a6c279f13b9caa71ecc83","lessThan":"815c31e67f3feb82926b823469c953af8d3b84f7","versionType":"git","status":"affected"},{"version":"424421a7f34c1222d20a6c279f13b9caa71ecc83","lessThan":"ab0fb9ea282f5e2a8a15cefd6ad7b6652da7e95a","versionType":"git","status":"affected"},{"version":"424421a7f34c1222d20a6c279f13b9caa71ecc83","lessThan":"f087903018e35d38b8932e18b010ee2e8699d1a1","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["arch/loongarch/include/asm/hw_breakpoint.h","arch/loongarch/kernel/hw_breakpoint.c","arch/loongarch/kernel/traps.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.3","status":"affected"},{"version":"0","lessThan":"6.3","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/44346dd182cfac7e32575295ba0c2aa01d27566e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7e56651033584f16c019ff2a223c0f9417230f39","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/815c31e67f3feb82926b823469c953af8d3b84f7","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/ab0fb9ea282f5e2a8a15cefd6ad7b6652da7e95a","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/f087903018e35d38b8932e18b010ee2e8699d1a1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}