{"id":"CVE-2025-21851","aliases":["CVE-2025-21851"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Fix softlockup in arena_map_free on 64k page kernel","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf: Arregla el bloqueo suave en arena_map_free en un kernel de página de 64k En un kernel aarch64 con CONFIG_PAGE_SIZE_64KB=y, las pruebas arena_htab causan un fallo de segmentación y un bloqueo suave. No se observa el mismo fallo con páginas de 4k en aarch64. Resulta que arena_map_free() está llamando a apply_to_existing_page_range() con la dirección devuelta por bpf_arena_get_kern_vm_start(). Si esta dirección no está alineada con la página, el código termina llamando a apply_to_pte_range() con esa dirección no alineada, lo que causa un bloqueo suave. Arréglelo redondeando GUARD_SZ a PAGE_SIZE &lt;&lt; 1 para que la división por 2 en bpf_arena_get_kern_vm_start() devuelva un valor alineado con la página.","source":"nvd"}],"published":"2025-03-12T09:42:06.480Z","modified":"2026-08-05T11:54:55.041Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":3.3,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":3.3,"rating":"LOW"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"317460317a02a1af512697e6e964298dedd8a163","fixed":"c1f3f3892d4526f18aaeffdb6068ce861e793ee3","status":"affected"},{"type":"git","introduced":"317460317a02a1af512697e6e964298dedd8a163","fixed":"787d556a3de447e70964a4bdeba9196f62a62b1e","status":"affected"},{"type":"git","introduced":"317460317a02a1af512697e6e964298dedd8a163","fixed":"517e8a7835e8cfb398a0aeb0133de50e31cae32b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.12.17","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.5","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.9","fixed":"6.12.17"},{"status":"affected","introduced":"6.13","fixed":"6.13.5"},{"status":"affected","version":"6.9"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c1f3f3892d4526f18aaeffdb6068ce861e793ee3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/787d556a3de447e70964a4bdeba9196f62a62b1e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/517e8a7835e8cfb398a0aeb0133de50e31cae32b","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:26:12.815Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21851","url":"https://www.cve.org/CVERecord?id=CVE-2025-21851","licence":"CVE Terms of Use","modified":"2026-08-05T11:54:55.041Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21851","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21851","licence":"Public domain","modified":"2026-07-30T06:21:41.180Z"}],"updatedAt":"2026-11-25T22:58:55.199Z","epss":{"score":0.00177,"percentile":0.07582,"date":"2026-12-01T12:00:22.000Z"}}