{
  "id": "CVE-2025-38586",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38586",
  "published_at": "2025-08-19T17:03:08.012Z",
  "title": "bpf, arm64: Fix fp initialization for exception boundary",
  "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, arm64: Fix fp initialization for exception boundary\n\nIn the ARM64 BPF JIT when prog-\u003eaux-\u003eexception_boundary is set for a BPF\nprogram, find_used_callee_regs() is not called because for a program\nacting as exception boundary, all callee saved registers are saved.\nfind_used_callee_regs() sets `ctx-\u003efp_used = true;` when it sees FP\nbeing used in any of the instructions.\n\nFor programs acting as exception boundary, ctx-\u003efp_used remains false\neven if frame pointer is used by the program and therefore, FP is not\nset-up for such programs in the prologue. This can cause the kernel to\ncrash due to a pagefault.\n\nFix it by setting ctx-\u003efp_used = true for exception boundary programs as\nfp is always saved in such programs.",
  "cwe": "CWE-476",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \u003c 0dbef493cae7d451f740558665893c000adb2321",
          "\u003e= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \u003c e23184725dbb72d5d02940222eee36dbba2aa422",
          "\u003e= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \u003c 1ce30231e0a2c8c361ee5f8f7f265fc17130adce",
          "\u003e= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \u003c b114fcee766d5101eada1aca7bb5fd0a86c89b35"
        ],
        "fixed_in": [
          "0dbef493cae7d451f740558665893c000adb2321",
          "e23184725dbb72d5d02940222eee36dbba2aa422",
          "1ce30231e0a2c8c361ee5f8f7f265fc17130adce",
          "b114fcee766d5101eada1aca7bb5fd0a86c89b35"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.12"
        ],
        "fixed_in": [
          "0",
          "6.12.42",
          "6.15.10",
          "6.16.1",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 0dbef493cae7d451f740558665893c000adb2321 or e23184725dbb72d5d02940222eee36dbba2aa422 or 1ce30231e0a2c8c361ee5f8f7f265fc17130adce or b114fcee766d5101eada1aca7bb5fd0a86c89b35 or later.",
      "Upgrade Linux to 0 or 6.12.42 or 6.15.10 or 6.16.1 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
