{"id":"CVE-2026-98787","revision":"f9fabbd9f0204430b559fc53bf15aa2c","records":[{"revision":"f9fabbd9f0204430b559fc53bf15aa2c","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-98787","aliases":[],"title":"bpf: Fix missing migration protection in __rhtab_map_lookup_and_delete_batch()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix missing migration protection in __rhtab_map_lookup_and_delete_batch()\n\nbpf_mem_cache_free_rcu() uses this_cpu_ptr() which requires migration\nto be disabled. All callers of rhtab_delete_elem() disable migration\nexcept __rhtab_map_lookup_and_delete_batch(), which calls it under\nrcu_read_lock() only.\n\nOn CONFIG_PREEMPT_RCU, rcu_read_lock() does not disable preemption or\nmigration, so the task can migrate between CPUs during the delete loop,\ncausing this_cpu_ptr() to trigger:\n\n  BUG: using smp_processor_id() in preemptible [00000000] code\n\nFix by wrapping the delete loop in migrate_disable()/migrate_enable()\nin __rhtab_map_lookup_and_delete_batch(), matching the migration\nprotection that the other callers already provide.","state":0,"publishedAt":"2026-10-18T15:48:23.947+00:00","modifiedAt":"2026-10-19T09:25:40.244+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"kernel/bpf/hashtab.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"818e0084822742fc00eacbf5df3476a5e72c7d0e\",\n                            \"lessThan\": \"94f41ec5fa578765b74ad5736c2f029e7aabc46d\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"818e0084822742fc00eacbf5df3476a5e72c7d0e\",\n                            \"lessThan\": \"de020dc8049bfb2b22e3b6d99c031feb2e22d112\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"kernel/bpf/hashtab.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"7.2\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"7.2\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.10\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/94f41ec5fa578765b74ad5736c2f029e7aabc46d","https://git.kernel.org/stable/c/de020dc8049bfb2b22e3b6d99c031feb2e22d112"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98787","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-98787","identifiers":["CVE-2026-98787"]},"retained":false,"historicalAffected":[]}],"coverage":[]}