CVE-2025-40182
Last modified
CVE-2025-40182 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: crypto: skcipher - Fix reqsize handling Commit afddce13ce81d ("crypto: api - Add reqsize to crypto_alg") introduced cra_reqsize field in crypto_alg struct to replace type specific reqsize fields. It looks like this was introduced specifically for ahash and acomp from the commit description as subsequent commits add necessary changes in these alg frameworks. However, this is being recommended for use in all crypto algs [1] instead of setting reqsize using crypto_*_set_reqsize(). EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: crypto: skcipher - Fix reqsize handling Commit afddce13ce81d ("crypto: api - Add reqsize to crypto_alg") introduced cra_reqsize field in crypto_alg struct to replace type specific reqsize fields. It looks like this was introduced specifically for ahash and acomp from the commit description as subsequent commits add necessary changes in these alg frameworks. However, this is being recommended for use in all crypto algs [1] instead of setting reqsize using crypto_*_set_reqsize(). Using cra_reqsize in skcipher algorithms, hence, causes memory corruptions and crashes as the underlying functions in the algorithm framework have not been updated to set the reqsize properly from cra_reqsize. [2] Add proper set_reqsize calls in the skcipher init function to properly initialize reqsize for these algorithms in the framework. [1]: https://lore.kernel.org/linux-crypto/aCL8BxpHr5OpT04k@gondor.apana.org.au/ [2]: https://gist.github.com/Pratham-T/24247446f1faf4b7843e4014d5089f6b
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= afddce13ce81d52a13898fa0700917835c71acd6, < f041339d6b9a5a46437f0c48fc7279c92af7a513; >= afddce13ce81d52a13898fa0700917835c71acd6, < 229c586b5e86979badb7cb0d38717b88a9e95ddd |
| Linux | Linux | 6.16 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40182?
How severe is CVE-2025-40182?
How do I fix CVE-2025-40182?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40177In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40178In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40179In the Linux kernel, the following vulnerability has been re…
- CVE-2025-4018A vulnerability, which was classified as critical, has been …7.5
- CVE-2025-40180In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40181In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40183In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2025-40184In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40185In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40186In the Linux kernel, the following vulnerability has been re…8.1
- CVE-2025-40187In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2025-40188In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2025-40182?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
