{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99877","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.441Z","datePublished":"2026-11-30T13:17:53.580Z","dateUpdated":"2026-11-30T13:17:53.580Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:17:53.580Z"},"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":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/include/asm/hw_breakpoint.h","arch/loongarch/kernel/hw_breakpoint.c","arch/loongarch/kernel/traps.c"],"versions":[{"version":"424421a7f34c1222d20a6c279f13b9caa71ecc83","lessThan":"44346dd182cfac7e32575295ba0c2aa01d27566e","status":"affected","versionType":"git"},{"version":"424421a7f34c1222d20a6c279f13b9caa71ecc83","lessThan":"7e56651033584f16c019ff2a223c0f9417230f39","status":"affected","versionType":"git"},{"version":"424421a7f34c1222d20a6c279f13b9caa71ecc83","lessThan":"815c31e67f3feb82926b823469c953af8d3b84f7","status":"affected","versionType":"git"},{"version":"424421a7f34c1222d20a6c279f13b9caa71ecc83","lessThan":"ab0fb9ea282f5e2a8a15cefd6ad7b6652da7e95a","status":"affected","versionType":"git"},{"version":"424421a7f34c1222d20a6c279f13b9caa71ecc83","lessThan":"f087903018e35d38b8932e18b010ee2e8699d1a1","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/include/asm/hw_breakpoint.h","arch/loongarch/kernel/hw_breakpoint.c","arch/loongarch/kernel/traps.c"],"versions":[{"version":"6.3","status":"affected"},{"version":"0","lessThan":"6.3","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/44346dd182cfac7e32575295ba0c2aa01d27566e"},{"url":"https://git.kernel.org/stable/c/7e56651033584f16c019ff2a223c0f9417230f39"},{"url":"https://git.kernel.org/stable/c/815c31e67f3feb82926b823469c953af8d3b84f7"},{"url":"https://git.kernel.org/stable/c/ab0fb9ea282f5e2a8a15cefd6ad7b6652da7e95a"},{"url":"https://git.kernel.org/stable/c/f087903018e35d38b8932e18b010ee2e8699d1a1"}],"title":"LoongArch: Only send SIGTRAP signal if necessary in do_watch()","x_generator":{"engine":"bippy-1.2.0"}}}}