Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: crypto: skcipher - Fix reqsize handling Commit afddce13ce81d ("crypto: api - Add… (CVE-2025-40182)
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/[email protected]/ [2]: https://gist.github.com/Pratham-T/24247446f1faf4b7843e4014d5089f6b
AI Analysis
Technical Summary
The Linux kernel introduced a change in the crypto API by adding the cra_reqsize field to the crypto_alg structure to replace type-specific reqsize fields, initially targeting ahash and acomp algorithms. However, this change was recommended for all crypto algorithms, including skcipher. The skcipher framework did not update its initialization to properly set reqsize from cra_reqsize, causing memory corruption and crashes. The fix involves adding proper set_reqsize calls in the skcipher initialization function to correctly initialize the reqsize for these algorithms.
Potential Impact
Exploitation of this vulnerability can lead to memory corruption and crashes within the Linux kernel's cryptographic skcipher subsystem, potentially impacting system confidentiality, integrity, and availability. The CVSS vector indicates local attack complexity with low privileges required and no user interaction, emphasizing the risk of high impact on affected systems.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to properly initialize the reqsize field in skcipher algorithms by adding the necessary set_reqsize calls during initialization. Users and administrators should apply the official Linux kernel updates that include this fix. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor advisory or Linux kernel mailing lists for the latest remediation guidance.
Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: crypto: skcipher - Fix reqsize handling Commit afddce13ce81d ("crypto: api - Add… (CVE-2025-40182)
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/[email protected]/ [2]: https://gist.github.com/Pratham-T/24247446f1faf4b7843e4014d5089f6b
CVSS v3.1
Score 7.8high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel introduced a change in the crypto API by adding the cra_reqsize field to the crypto_alg structure to replace type-specific reqsize fields, initially targeting ahash and acomp algorithms. However, this change was recommended for all crypto algorithms, including skcipher. The skcipher framework did not update its initialization to properly set reqsize from cra_reqsize, causing memory corruption and crashes. The fix involves adding proper set_reqsize calls in the skcipher initialization function to correctly initialize the reqsize for these algorithms.
Potential Impact
Exploitation of this vulnerability can lead to memory corruption and crashes within the Linux kernel's cryptographic skcipher subsystem, potentially impacting system confidentiality, integrity, and availability. The CVSS vector indicates local attack complexity with low privileges required and no user interaction, emphasizing the risk of high impact on affected systems.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to properly initialize the reqsize field in skcipher algorithms by adding the necessary set_reqsize calls during initialization. Users and administrators should apply the official Linux kernel updates that include this fix. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor advisory or Linux kernel mailing lists for the latest remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-fxwg-47f2-r9jw
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40182"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d59c2644c7f847a28a
Added to database: 07/30/2026, 15:50:45 UTC
Last enriched: 07/30/2026, 16:56:30 UTC
Last updated: 08/01/2026, 07:17:56 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.