CVE-2025-40022 Details
Description
In the Linux kernel, the following vulnerability has been resolved: crypto: af_alg - Fix incorrect boolean values in af_alg_ctx Commit 1b34cbbf4f01 ("crypto: af_alg - Disallow concurrent writes in af_alg_sendmsg") changed some fields from bool to 1-bit bitfields of type u32. However, some assignments to these fields, specifically 'more' and 'merge', assign values greater than 1. These relied on C's implicit conversion to bool, such that zero becomes false and nonzero becomes true. With a 1-bit bitfields of type u32 instead, mod 2 of the value is taken instead, resulting in 0 being assigned in some cases when 1 was intended. Fix this by restoring the bool type.
A vulnerability exists in the Linux kernel's AF_ALG crypto API, where certain boolean fields in the context structure were incorrectly changed to 1-bit bitfields of type u32. This modification, intended to prevent concurrent writes, inadvertently altered the way values were assigned to these fields. Specifically, the 'more' and 'merge' fields, which can receive values greater than 1, were affected. The change relied on C's implicit conversion, where nonzero values are interpreted as true. The new bitfield representation applied modulo 2, leading to incorrect assignments. This vulnerability could potentially disrupt the intended functionality of the crypto API by misrepresenting the state of these fields.
The vulnerability has been addressed by reverting the affected fields back to their original boolean type. Users can apply the latest patches available in the Linux kernel stable tree to mitigate this issue.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cert-portal.siemens.com/productcert/html/ssa-019113.html | siemens-SADP | |
| https://cert-portal.siemens.com/productcert/html/ssa-082556.html | siemens-SADP | |
| https://cert-portal.siemens.com/productcert/html/ssa-457936.html | siemens-SADP | |
| https://git.kernel.org/stable/c/316b090c2fee964c307a634fecc7df269664b158 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/3a21698ace915a445bce2d0dcfc84b6d2199baf7 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/54506c6335690f4ef1b9f154e34f5a604c72c1ed | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/8703940bd30b5ad94408d28d7192db2491cd3592 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/d0ca0df179c4b21e2a6c4a4fb637aa8fa14575cb | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/d382d6daf0184490f366562469a5673f65ee2662 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/fbe96bd25423e61273d8831e995260b429d850b6 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 10, 2026 | CVE Modified | siemens-SADP |
| Oct 19, 2026 | CVE Translated | [email protected] |
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | siemens-SADP |
| Jul 14, 2026 | CVE Modified | siemens-SADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | siemens-SADP |
| May 12, 2026 | CVE Modified | siemens-SADP |
| Oct 24, 2025 | New CVE Received | kernel.org |
Volerion