{
  "id": "CVE-2025-37822",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-37822",
  "published_at": "2025-05-08T06:26:16.209Z",
  "title": "riscv: uprobes: Add missing fence.i after building the XOL buffer",
  "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\nriscv: uprobes: Add missing fence.i after building the XOL buffer\n\nThe XOL (execute out-of-line) buffer is used to single-step the\nreplaced instruction(s) for uprobes. The RISC-V port was missing a\nproper fence.i (i$ flushing) after constructing the XOL buffer, which\ncan result in incorrect execution of stale/broken instructions.\n\nThis was found running the BPF selftests \"test_progs:\nuprobe_autoattach, attach_probe\" on the Spacemit K1/X60, where the\nuprobes tests randomly blew up.",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 74784081aac8a0f3636965fc230e2d3b7cc123c6, \u003c be6d98766ac952d38241d5a5b213f363afa421c3",
          "\u003e= 74784081aac8a0f3636965fc230e2d3b7cc123c6, \u003c b6d8d4d01ca8514fa89b05355f296758a91e2297",
          "\u003e= 74784081aac8a0f3636965fc230e2d3b7cc123c6, \u003c 77c956152a3a7c7a18b68f3654f70565b2181d03",
          "\u003e= 74784081aac8a0f3636965fc230e2d3b7cc123c6, \u003c bcf6d3158c5902d92b6d62335af4422b7bf7c4e2",
          "\u003e= 74784081aac8a0f3636965fc230e2d3b7cc123c6, \u003c 1dbb95a36499374c51b47ee8ae258a8862c20978",
          "\u003e= 74784081aac8a0f3636965fc230e2d3b7cc123c6, \u003c 7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48"
        ],
        "fixed_in": [
          "be6d98766ac952d38241d5a5b213f363afa421c3",
          "b6d8d4d01ca8514fa89b05355f296758a91e2297",
          "77c956152a3a7c7a18b68f3654f70565b2181d03",
          "bcf6d3158c5902d92b6d62335af4422b7bf7c4e2",
          "1dbb95a36499374c51b47ee8ae258a8862c20978",
          "7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.12"
        ],
        "fixed_in": [
          "0",
          "5.15.200",
          "6.1.163",
          "6.6.121",
          "6.12.26",
          "6.14.5",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to be6d98766ac952d38241d5a5b213f363afa421c3 or b6d8d4d01ca8514fa89b05355f296758a91e2297 or 77c956152a3a7c7a18b68f3654f70565b2181d03 or bcf6d3158c5902d92b6d62335af4422b7bf7c4e2 or 1dbb95a36499374c51b47ee8ae258a8862c20978 or 7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48 or later.",
      "Upgrade Linux to 0 or 5.15.200 or 6.1.163 or 6.6.121 or 6.12.26 or 6.14.5 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
