{"id":"CVE-2025-21851","published":"2025-03-12T09:42:06Z","modified":"2026-08-05T11:54:55Z","title":"bpf: Fix softlockup in arena_map_free on 64k page kernel","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix softlockup in arena_map_free on 64k page kernel\n\nOn an aarch64 kernel with CONFIG_PAGE_SIZE_64KB=y,\narena_htab tests cause a segmentation fault and soft lockup.\nThe same failure is not observed with 4k pages on aarch64.\n\nIt turns out arena_map_free() is calling\napply_to_existing_page_range() with the address returned by\nbpf_arena_get_kern_vm_start().  If this address is not page-aligned\nthe code ends up calling apply_to_pte_range() with that unaligned\naddress causing soft lockup.\n\nFix it by round up GUARD_SZ to PAGE_SIZE << 1 so that the\ndivision by 2 in bpf_arena_get_kern_vm_start() returns\na page-aligned value.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0024,"percentile":0.09125,"provenance":"source"},"cwes":[{"id":"CWE-667","name":"Improper Locking"}],"references":[{"url":"https://git.kernel.org/stable/c/c1f3f3892d4526f18aaeffdb6068ce861e793ee3","tags":[]},{"url":"https://git.kernel.org/stable/c/787d556a3de447e70964a4bdeba9196f62a62b1e","tags":[]},{"url":"https://git.kernel.org/stable/c/517e8a7835e8cfb398a0aeb0133de50e31cae32b","tags":[]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":1.82},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 317460317a02a1af512697e6e964298dedd8a163, < c1f3f3892d4526f18aaeffdb6068ce861e793ee3",">= 317460317a02a1af512697e6e964298dedd8a163, < 787d556a3de447e70964a4bdeba9196f62a62b1e",">= 317460317a02a1af512697e6e964298dedd8a163, < 517e8a7835e8cfb398a0aeb0133de50e31cae32b"]},{"vendor":"Linux","product":"Linux","versions":["6.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:26:12.815420Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-6394","exploited":false,"provenance":"source"}}