{
  "id": "CVE-2025-40358",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40358",
  "published_at": "2025-12-16T13:39:57.847Z",
  "title": "riscv: stacktrace: Disable KASAN checks for non-current tasks",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/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: stacktrace: Disable KASAN checks for non-current tasks\n\nUnwinding the stack of a task other than current, KASAN would report\n\"BUG: KASAN: out-of-bounds in walk_stackframe+0x41c/0x460\"\n\nThere is a same issue on x86 and has been resolved by the commit\n84936118bdf3 (\"x86/unwind: Disable KASAN checks for non-current tasks\")\nThe solution could be applied to RISC-V too.\n\nThis patch also can solve the issue:\nhttps://seclists.org/oss-sec/2025/q4/23\n\n[pjw@kernel.org: clean up checkpatch issues]",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \u003c ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f",
          "\u003e= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \u003c f34ba22989da61186f30a40b6a82e0b3337b96fc",
          "\u003e= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \u003c 27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2",
          "\u003e= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \u003c 2c8d2b53866fb229b438296526ef0fa5a990e5e5",
          "\u003e= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, \u003c 060ea84a484e852b52b938f234bf9b5503a6c910"
        ],
        "fixed_in": [
          "ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f",
          "f34ba22989da61186f30a40b6a82e0b3337b96fc",
          "27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2",
          "2c8d2b53866fb229b438296526ef0fa5a990e5e5",
          "060ea84a484e852b52b938f234bf9b5503a6c910"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.15"
        ],
        "fixed_in": [
          "0",
          "6.1.167",
          "6.6.117",
          "6.12.58",
          "6.17.8",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f or f34ba22989da61186f30a40b6a82e0b3337b96fc or 27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2 or 2c8d2b53866fb229b438296526ef0fa5a990e5e5 or 060ea84a484e852b52b938f234bf9b5503a6c910 or later.",
      "Upgrade Linux to 0 or 6.1.167 or 6.6.117 or 6.12.58 or 6.17.8 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
