{"api_version":"1","generated_at":"2026-10-23T07:45:43+00:00","cve":"CVE-2026-98800","urls":{"html":"https://cve.report/CVE-2026-98800","api":"https://cve.report/api/cve/CVE-2026-98800.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-98800","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-98800"},"summary":{"title":"bpf: Wait for an RCU tasks grace period before freeing trampoline progs","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Wait for an RCU tasks grace period before freeing trampoline progs\n\nWhen a prog is detached from a trampoline, it is freed after an RCU\ngrace period, or an RCU tasks trace one if it is sleepable. This covers\nthe tasks that are running the prog, since the prog's enter helper takes\nthe matching read lock before the prog is called. On a preemptible\nkernel, it doesn't cover a task that was preempted in the trampoline\njust before the enter helper. That task holds no lock yet, and it calls\nthe prog after it was freed:\n\n  BUG: KASAN: vmalloc-out-of-bounds in __bpf_prog_enter_recur+0x3a5/0x3f0\n  Read of size 8 at addr ffffc90000055040 by task candidate/110\n  CPU: 1 UID: 0 PID: 110 Comm: candidate Not tainted 7.3.0-rc2-00014-g15071f2a1263-dirty #2 PREEMPT(full)\n  Call Trace:\n   <TASK>\n   __bpf_prog_enter_recur+0x3a5/0x3f0\n   bpf_trampoline_6442509193+0x37/0xf1\n   __x64_sys_futex+0x9/0x410\n   do_syscall_64+0xb0/0x530\n   ...\n\nWait for an RCU tasks grace period before the existing one when freeing\na prog that was linked to a trampoline. An RCU tasks grace period only\nends once the tasks that were preempted have run again, and\nbpf_tramp_image_put() already relies on it to free the image. It doesn't\nwait for tasks that sleep in the trampoline, the next commit takes care\nof those.\n\nOnly progs that were linked to a trampoline can be called this way, so\nbpf_trampoline_add_prog() marks them and other progs are still freed as\nbefore.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-10-18 16:17:34","updated_at":"2026-10-19 10:19:44"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/0fb5751a6e411b1b466c06e50021818d9391df98","name":"https://git.kernel.org/stable/c/0fb5751a6e411b1b466c06e50021818d9391df98","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/40955f6512a03f0e046f5256b0706b26ba191018","name":"https://git.kernel.org/stable/c/40955f6512a03f0e046f5256b0706b26ba191018","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-98800","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98800","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e21aa341785c679dd409c8cb71f864c00fe6c463 40955f6512a03f0e046f5256b0706b26ba191018 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e21aa341785c679dd409c8cb71f864c00fe6c463 0fb5751a6e411b1b466c06e50021818d9391df98 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e21d2b92354b3cd25dd774ebb0f0e52ff04a7861 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 85d177f56e5256e14b74a65940f981f6e3e8bb32 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.28 5.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.11.11 5.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.10 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["include/linux/bpf.h","kernel/bpf/syscall.c","kernel/bpf/trampoline.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"40955f6512a03f0e046f5256b0706b26ba191018","status":"affected","version":"e21aa341785c679dd409c8cb71f864c00fe6c463","versionType":"git"},{"lessThan":"0fb5751a6e411b1b466c06e50021818d9391df98","status":"affected","version":"e21aa341785c679dd409c8cb71f864c00fe6c463","versionType":"git"},{"status":"affected","version":"e21d2b92354b3cd25dd774ebb0f0e52ff04a7861","versionType":"git"},{"status":"affected","version":"85d177f56e5256e14b74a65940f981f6e3e8bb32","versionType":"git"},{"lessThan":"5.11","status":"affected","version":"5.10.28","versionType":"semver"},{"lessThan":"5.12","status":"affected","version":"5.11.11","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["include/linux/bpf.h","kernel/bpf/syscall.c","kernel/bpf/trampoline.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.12"},{"lessThan":"5.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.10","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.10","versionStartIncluding":"5.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3","versionStartIncluding":"5.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.28","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11.11","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Wait for an RCU tasks grace period before freeing trampoline progs\n\nWhen a prog is detached from a trampoline, it is freed after an RCU\ngrace period, or an RCU tasks trace one if it is sleepable. This covers\nthe tasks that are running the prog, since the prog's enter helper takes\nthe matching read lock before the prog is called. On a preemptible\nkernel, it doesn't cover a task that was preempted in the trampoline\njust before the enter helper. That task holds no lock yet, and it calls\nthe prog after it was freed:\n\n  BUG: KASAN: vmalloc-out-of-bounds in __bpf_prog_enter_recur+0x3a5/0x3f0\n  Read of size 8 at addr ffffc90000055040 by task candidate/110\n  CPU: 1 UID: 0 PID: 110 Comm: candidate Not tainted 7.3.0-rc2-00014-g15071f2a1263-dirty #2 PREEMPT(full)\n  Call Trace:\n   <TASK>\n   __bpf_prog_enter_recur+0x3a5/0x3f0\n   bpf_trampoline_6442509193+0x37/0xf1\n   __x64_sys_futex+0x9/0x410\n   do_syscall_64+0xb0/0x530\n   ...\n\nWait for an RCU tasks grace period before the existing one when freeing\na prog that was linked to a trampoline. An RCU tasks grace period only\nends once the tasks that were preempted have run again, and\nbpf_tramp_image_put() already relies on it to free the image. It doesn't\nwait for tasks that sleep in the trampoline, the next commit takes care\nof those.\n\nOnly progs that were linked to a trampoline can be called this way, so\nbpf_trampoline_add_prog() marks them and other progs are still freed as\nbefore."}],"providerMetadata":{"dateUpdated":"2026-10-19T09:25:53.724Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/40955f6512a03f0e046f5256b0706b26ba191018"},{"url":"https://git.kernel.org/stable/c/0fb5751a6e411b1b466c06e50021818d9391df98"}],"title":"bpf: Wait for an RCU tasks grace period before freeing trampoline progs","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-98800","datePublished":"2026-10-18T15:48:46.223Z","dateReserved":"2026-09-25T10:25:14.370Z","dateUpdated":"2026-10-19T09:25:53.724Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-10-18 16:17:34","lastModifiedDate":"2026-10-19 10:19:44","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"98800","Ordinal":"1","Title":"bpf: Wait for an RCU tasks grace period before freeing trampolin","CVE":"CVE-2026-98800","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"98800","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Wait for an RCU tasks grace period before freeing trampoline progs\n\nWhen a prog is detached from a trampoline, it is freed after an RCU\ngrace period, or an RCU tasks trace one if it is sleepable. This covers\nthe tasks that are running the prog, since the prog's enter helper takes\nthe matching read lock before the prog is called. On a preemptible\nkernel, it doesn't cover a task that was preempted in the trampoline\njust before the enter helper. That task holds no lock yet, and it calls\nthe prog after it was freed:\n\n  BUG: KASAN: vmalloc-out-of-bounds in __bpf_prog_enter_recur+0x3a5/0x3f0\n  Read of size 8 at addr ffffc90000055040 by task candidate/110\n  CPU: 1 UID: 0 PID: 110 Comm: candidate Not tainted 7.3.0-rc2-00014-g15071f2a1263-dirty #2 PREEMPT(full)\n  Call Trace:\n   <TASK>\n   __bpf_prog_enter_recur+0x3a5/0x3f0\n   bpf_trampoline_6442509193+0x37/0xf1\n   __x64_sys_futex+0x9/0x410\n   do_syscall_64+0xb0/0x530\n   ...\n\nWait for an RCU tasks grace period before the existing one when freeing\na prog that was linked to a trampoline. An RCU tasks grace period only\nends once the tasks that were preempted have run again, and\nbpf_tramp_image_put() already relies on it to free the image. It doesn't\nwait for tasks that sleep in the trampoline, the next commit takes care\nof those.\n\nOnly progs that were linked to a trampoline can be called this way, so\nbpf_trampoline_add_prog() marks them and other progs are still freed as\nbefore.","Type":"Description","Title":"bpf: Wait for an RCU tasks grace period before freeing trampolin"}]}}}