{
  "id": "CVE-2025-21851",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21851",
  "published_at": "2025-03-12T09:42:06.48Z",
  "title": "bpf: Fix softlockup in arena_map_free on 64k page kernel",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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 \u003c\u003c 1 so that the\ndivision by 2 in bpf_arena_get_kern_vm_start() returns\na page-aligned value.",
  "cwe": "CWE-667",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.9:-:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 3.3,
    "cna": 7.8,
    "nvd": 3.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 317460317a02a1af512697e6e964298dedd8a163, \u003c c1f3f3892d4526f18aaeffdb6068ce861e793ee3",
          "\u003e= 317460317a02a1af512697e6e964298dedd8a163, \u003c 787d556a3de447e70964a4bdeba9196f62a62b1e",
          "\u003e= 317460317a02a1af512697e6e964298dedd8a163, \u003c 517e8a7835e8cfb398a0aeb0133de50e31cae32b"
        ],
        "fixed_in": [
          "c1f3f3892d4526f18aaeffdb6068ce861e793ee3",
          "787d556a3de447e70964a4bdeba9196f62a62b1e",
          "517e8a7835e8cfb398a0aeb0133de50e31cae32b"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.9"
        ],
        "fixed_in": [
          "0",
          "6.12.17",
          "6.13.5",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to c1f3f3892d4526f18aaeffdb6068ce861e793ee3 or 787d556a3de447e70964a4bdeba9196f62a62b1e or 517e8a7835e8cfb398a0aeb0133de50e31cae32b or later.",
      "Upgrade Linux to 0 or 6.12.17 or 6.13.5 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
