{
  "id": "CVE-2026-45837",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-45837",
  "published_at": "2026-05-27T09:24:32.833Z",
  "title": "bpf: Fix use-after-free in arena_vm_close on fork",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "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 use-after-free in arena_vm_close on fork\n\narena_vm_open() only bumps vml-\u003emmap_count but never registers the\nchild VMA in arena-\u003evma_list. The vml-\u003evma always points at the\nparent VMA, so after parent munmap the pointer dangles. If the child\nthen calls bpf_arena_free_pages(), zap_pages() reads the stale\nvml-\u003evma triggering use-after-free.\n\nFix this by preventing the arena VMA from being inherited across\nfork with VM_DONTCOPY, and preventing VMA splits via the may_split\ncallback.\n\nAlso reject mremap with a .mremap callback returning -EINVAL. A\nsame-size mremap(MREMAP_FIXED) on the full arena VMA reaches\ncopy_vma() through the following path:\n\n  check_prep_vma()       - returns 0 early: new_len == old_len\n                           skips VM_DONTEXPAND check\n  prep_move_vma()        - vm_start == old_addr and\n                           vm_end == old_addr + old_len\n                           so may_split is never called\n  move_vma()\n    copy_vma_and_data()\n      copy_vma()\n        vm_area_dup()    - copies vm_private_data (vml pointer)\n        vm_ops-\u003eopen()   - bumps vml-\u003emmap_count\n      vm_ops-\u003emremap()   - returns -EINVAL, rollback unmaps new VMA\n\nThe refcount ensures the rollback's arena_vm_close does not free\nthe vml shared with the original VMA.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 317460317a02a1af512697e6e964298dedd8a163, \u003c 723b9fa930cc277c15ce6b9ec9feec828cfac9d7",
          "\u003e= 317460317a02a1af512697e6e964298dedd8a163, \u003c d18099f19e53250f8ad2801498b88cec29d9107a",
          "\u003e= 317460317a02a1af512697e6e964298dedd8a163, \u003c 201128fcc7b213d27ab77bc4e89488b41796480f",
          "\u003e= 317460317a02a1af512697e6e964298dedd8a163, \u003c 4fddde2a732de60bb97e3307d4eb69ac5f1d2b74"
        ],
        "fixed_in": [
          "723b9fa930cc277c15ce6b9ec9feec828cfac9d7",
          "d18099f19e53250f8ad2801498b88cec29d9107a",
          "201128fcc7b213d27ab77bc4e89488b41796480f",
          "4fddde2a732de60bb97e3307d4eb69ac5f1d2b74"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.9"
        ],
        "fixed_in": [
          "0",
          "6.12.88",
          "6.18.30",
          "7.0.7",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 723b9fa930cc277c15ce6b9ec9feec828cfac9d7 or d18099f19e53250f8ad2801498b88cec29d9107a or 201128fcc7b213d27ab77bc4e89488b41796480f or 4fddde2a732de60bb97e3307d4eb69ac5f1d2b74 or later.",
      "Upgrade Linux to 0 or 6.12.88 or 6.18.30 or 7.0.7 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
