CVE-2025-68726: crypto: aead - Fix reqsize handling
In the Linux kernel, the following vulnerability has been resolved:
crypto: aead - Fix reqsize handling
Commit afddce13ce81d ("crypto: api - Add reqsize to cryptoalg") introduced crareqsize field in cryptoalg 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 instead of setting reqsize using cryptosetreqsize(). Using crareqsize in aead 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 crareqsize. [1]
Add proper setreqsize calls in the aead init function to properly initialize reqsize for these algorithms in the framework.
[1]: https://gist.github.com/Pratham-T/24247446f1faf4b7843e4014d5089f6b
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-68726?
CVE-2025-68726 has not been explicitly rated for severity, but it involves a fix related to request size handling in the Linux kernel's crypto API.
How do I fix CVE-2025-68726?
To fix CVE-2025-68726, update your Linux kernel to the latest version that includes the resolution for this vulnerability.
What components are affected by CVE-2025-68726?
CVE-2025-68726 affects the Linux kernel, specifically the crypto API components.
What is the nature of the vulnerability in CVE-2025-68726?
The nature of CVE-2025-68726 involves issues with how request sizes are handled within the crypto algorithm structure.
When was CVE-2025-68726 resolved?
CVE-2025-68726 was resolved with the commit that introduced the cra_reqsize field in the crypto_alg struct.