{
  "id": "CVE-2025-40182",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40182",
  "published_at": "2025-11-12T21:56:26.699Z",
  "title": "crypto: skcipher - Fix reqsize handling",
  "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\ncrypto: skcipher - Fix reqsize handling\n\nCommit afddce13ce81d (\"crypto: api - Add reqsize to crypto_alg\")\nintroduced cra_reqsize field in crypto_alg struct to replace type\nspecific reqsize fields. It looks like this was introduced specifically\nfor ahash and acomp from the commit description as subsequent commits\nadd necessary changes in these alg frameworks.\n\nHowever, this is being recommended for use in all crypto algs [1]\ninstead of setting reqsize using crypto_*_set_reqsize(). Using\ncra_reqsize in skcipher algorithms, hence, causes memory\ncorruptions and crashes as the underlying functions in the algorithm\nframework have not been updated to set the reqsize properly from\ncra_reqsize. [2]\n\nAdd proper set_reqsize calls in the skcipher init function to\nproperly initialize reqsize for these algorithms in the framework.\n\n[1]: https://lore.kernel.org/linux-crypto/aCL8BxpHr5OpT04k@gondor.apana.org.au/\n[2]: https://gist.github.com/Pratham-T/24247446f1faf4b7843e4014d5089f6b",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= afddce13ce81d52a13898fa0700917835c71acd6, \u003c f041339d6b9a5a46437f0c48fc7279c92af7a513",
          "\u003e= afddce13ce81d52a13898fa0700917835c71acd6, \u003c 229c586b5e86979badb7cb0d38717b88a9e95ddd"
        ],
        "fixed_in": [
          "f041339d6b9a5a46437f0c48fc7279c92af7a513",
          "229c586b5e86979badb7cb0d38717b88a9e95ddd"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.16"
        ],
        "fixed_in": [
          "0",
          "6.17.4",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to f041339d6b9a5a46437f0c48fc7279c92af7a513 or 229c586b5e86979badb7cb0d38717b88a9e95ddd or later.",
      "Upgrade Linux to 0 or 6.17.4 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
