{"id":"CVE-2023-52992","state":"PUBLISHED","title":"bpf: Skip task with pid=1 in send_signal_common()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Skip task with pid=1 in send_signal_common()\n\nThe following kernel panic can be triggered when a task with pid=1 attaches\na prog that attempts to send killing signal to itself, also see [1] for more\ndetails:\n\n  Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b\n  CPU: 3 PID: 1 Comm: systemd Not tainted 6.1.0-09652-g59fe41b5255f #148\n  Call Trace:\n  <TASK>\n  __dump_stack lib/dump_stack.c:88 [inline]\n  dump_stack_lvl+0x100/0x178 lib/dump_stack.c:106\n  panic+0x2c4/0x60f kernel/panic.c:275\n  do_exit.cold+0x63/0xe4 kernel/exit.c:789\n  do_group_exit+0xd4/0x2a0 kernel/exit.c:950\n  get_signal+0x2460/0x2600 kernel/signal.c:2858\n  arch_do_signal_or_restart+0x78/0x5d0 arch/x86/kernel/signal.c:306\n  exit_to_user_mode_loop kernel/entry/common.c:168 [inline]\n  exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:203\n  __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]\n  syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296\n  do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86\n  entry_SYSCALL_64_after_hwframe+0x63/0xcd\n\nSo skip task with pid=1 in bpf_send_signal_common() to avoid the panic.\n\n  [1] https://lore.kernel.org/bpf/20221222043507.33037-1-sunhao.th@gmail.com","publishedAt":"2025-03-27T16:43:27.618Z","updatedAt":"2026-05-11T19:36:31.658Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8b401f9ed2441ad9e219953927a842d24ed051fc","status":"affected","lessThan":"4923160393b06a34759a11b17930d71e06f396f2","versionType":"git"},{"version":"8b401f9ed2441ad9e219953927a842d24ed051fc","status":"affected","lessThan":"a1c0263f1eb4deee132e11e52ee6982435460d81","versionType":"git"},{"version":"8b401f9ed2441ad9e219953927a842d24ed051fc","status":"affected","lessThan":"0dfef503133565fa0bcf3268d8eeb5b181191a65","versionType":"git"},{"version":"8b401f9ed2441ad9e219953927a842d24ed051fc","status":"affected","lessThan":"1283a01b6e19d05f7ed49584ea653947245cd41e","versionType":"git"},{"version":"8b401f9ed2441ad9e219953927a842d24ed051fc","status":"affected","lessThan":"a3d81bc1eaef48e34dd0b9b48eefed9e02a06451","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/bpf_trace.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.3","versionType":"semver"},{"version":"5.4.231","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.167","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.92","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.10","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/bpf_trace.c"]}],"references":["https://git.kernel.org/stable/c/4923160393b06a34759a11b17930d71e06f396f2","https://git.kernel.org/stable/c/a1c0263f1eb4deee132e11e52ee6982435460d81","https://git.kernel.org/stable/c/0dfef503133565fa0bcf3268d8eeb5b181191a65","https://git.kernel.org/stable/c/1283a01b6e19d05f7ed49584ea653947245cd41e","https://git.kernel.org/stable/c/a3d81bc1eaef48e34dd0b9b48eefed9e02a06451"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52992.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52992","state":"PUBLISHED","datePublished":"2025-03-27T16:43:27.618Z","dateUpdated":"2026-05-11T19:36:31.658Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-03-27T16:40:15.741Z"},"containers":{"cna":{"title":"bpf: Skip task with pid=1 in send_signal_common()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Skip task with pid=1 in send_signal_common()\n\nThe following kernel panic can be triggered when a task with pid=1 attaches\na prog that attempts to send killing signal to itself, also see [1] for more\ndetails:\n\n  Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b\n  CPU: 3 PID: 1 Comm: systemd Not tainted 6.1.0-09652-g59fe41b5255f #148\n  Call Trace:\n  <TASK>\n  __dump_stack lib/dump_stack.c:88 [inline]\n  dump_stack_lvl+0x100/0x178 lib/dump_stack.c:106\n  panic+0x2c4/0x60f kernel/panic.c:275\n  do_exit.cold+0x63/0xe4 kernel/exit.c:789\n  do_group_exit+0xd4/0x2a0 kernel/exit.c:950\n  get_signal+0x2460/0x2600 kernel/signal.c:2858\n  arch_do_signal_or_restart+0x78/0x5d0 arch/x86/kernel/signal.c:306\n  exit_to_user_mode_loop kernel/entry/common.c:168 [inline]\n  exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:203\n  __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]\n  syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296\n  do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86\n  entry_SYSCALL_64_after_hwframe+0x63/0xcd\n\nSo skip task with pid=1 in bpf_send_signal_common() to avoid the panic.\n\n  [1] https://lore.kernel.org/bpf/20221222043507.33037-1-sunhao.th@gmail.com"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8b401f9ed2441ad9e219953927a842d24ed051fc","status":"affected","lessThan":"4923160393b06a34759a11b17930d71e06f396f2","versionType":"git"},{"version":"8b401f9ed2441ad9e219953927a842d24ed051fc","status":"affected","lessThan":"a1c0263f1eb4deee132e11e52ee6982435460d81","versionType":"git"},{"version":"8b401f9ed2441ad9e219953927a842d24ed051fc","status":"affected","lessThan":"0dfef503133565fa0bcf3268d8eeb5b181191a65","versionType":"git"},{"version":"8b401f9ed2441ad9e219953927a842d24ed051fc","status":"affected","lessThan":"1283a01b6e19d05f7ed49584ea653947245cd41e","versionType":"git"},{"version":"8b401f9ed2441ad9e219953927a842d24ed051fc","status":"affected","lessThan":"a3d81bc1eaef48e34dd0b9b48eefed9e02a06451","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/bpf_trace.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.3","versionType":"semver"},{"version":"5.4.231","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.167","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.92","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.10","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/bpf_trace.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4923160393b06a34759a11b17930d71e06f396f2"},{"url":"https://git.kernel.org/stable/c/a1c0263f1eb4deee132e11e52ee6982435460d81"},{"url":"https://git.kernel.org/stable/c/0dfef503133565fa0bcf3268d8eeb5b181191a65"},{"url":"https://git.kernel.org/stable/c/1283a01b6e19d05f7ed49584ea653947245cd41e"},{"url":"https://git.kernel.org/stable/c/a3d81bc1eaef48e34dd0b9b48eefed9e02a06451"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:36:31.658Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"5.4.231"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"5.10.167"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"5.15.92"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.1.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}