{
  "id": "CVE-2025-21946",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21946",
  "published_at": "2025-04-01T15:41:08.955Z",
  "title": "ksmbd: fix out-of-bounds in parse_sec_desc()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/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\nksmbd: fix out-of-bounds in parse_sec_desc()\n\nIf osidoffset, gsidoffset and dacloffset could be greater than smb_ntsd\nstruct size. If it is smaller, It could cause slab-out-of-bounds.\nAnd when validating sid, It need to check it included subauth array size.",
  "cwe": "CWE-125",
  "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": {
    "cna": 8.8,
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c f4ee19528664777af8b842f8f001be98345aa973",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 6a9831180d0b23b5c97e2bd841aefc8f82900172",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c d6e13e19063db24f94b690159d0633aaf72a0f03"
        ],
        "fixed_in": [
          "f4ee19528664777af8b842f8f001be98345aa973",
          "c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b",
          "159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1",
          "6a9831180d0b23b5c97e2bd841aefc8f82900172",
          "d6e13e19063db24f94b690159d0633aaf72a0f03"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.15"
        ],
        "fixed_in": [
          "0",
          "6.1.160",
          "6.6.83",
          "6.12.19",
          "6.13.7",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to f4ee19528664777af8b842f8f001be98345aa973 or c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b or 159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1 or 6a9831180d0b23b5c97e2bd841aefc8f82900172 or d6e13e19063db24f94b690159d0633aaf72a0f03 or later.",
      "Upgrade Linux to 0 or 6.1.160 or 6.6.83 or 6.12.19 or 6.13.7 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
