{
  "id": "CVE-2025-21947",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21947",
  "published_at": "2025-04-01T15:41:09.457Z",
  "title": "ksmbd: fix type confusion via race condition when using ipc_msg_send_request",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/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\nksmbd: fix type confusion via race condition when using ipc_msg_send_request\n\nreq-\u003ehandle is allocated using ksmbd_acquire_id(\u0026ipc_ida), based on\nida_alloc. req-\u003ehandle from ksmbd_ipc_login_request and\nFSCTL_PIPE_TRANSCEIVE ioctl can be same and it could lead to type confusion\nbetween messages, resulting in access to unexpected parts of memory after\nan incorrect delivery. ksmbd check type of ipc response but missing add\ncontinue to check next ipc reponse.",
  "cwe": "CWE-362",
  "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.14:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 4.7,
    "cna": 8.1,
    "nvd": 4.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 6321bbda4244b93802d61cfe0887883aae322f4b",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 76861630b29e51373e73e7b00ad0d467b6941162",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2"
        ],
        "fixed_in": [
          "6321bbda4244b93802d61cfe0887883aae322f4b",
          "76861630b29e51373e73e7b00ad0d467b6941162",
          "3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea",
          "1e8833c03a38e1d5d5df6484e3f670a2fd38fb76",
          "e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.15"
        ],
        "fixed_in": [
          "0",
          "6.1.131",
          "6.6.83",
          "6.12.19",
          "6.13.7",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 6321bbda4244b93802d61cfe0887883aae322f4b or 76861630b29e51373e73e7b00ad0d467b6941162 or 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea or 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76 or e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2 or later.",
      "Upgrade Linux to 0 or 6.1.131 or 6.6.83 or 6.12.19 or 6.13.7 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
