CVE-2025-40022: Linux kernel · crypto: af_alg – Fix incorrect boolean values in af_alg_ctx
Affects Linux kernelSource GCVE Database
Not known to be exploited · fixed in 6.17.0-6.6 : update Linux kernel when convenient.
Data as of 26 Oct 2026, 10:12 UTC
Rated by Threat Radar · No CVSS score from NVD or the CNA
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 14% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.17.0-6.6, 6.17.0-1003.3, 6.17.0-1006.6 +3
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 24 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10linuxpkg:deb/ubuntu/linux?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10linux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-oraclepkg:deb/ubuntu/linux-oracle?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2025-40022 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-40022 (opens in a new tab)
- git.kernel.org/linus/d0ca0df179c4b21e2a6c4a4fb637aa8fa14575cb (opens in a new tab)
- git.kernel.org/stable/c/316b090c2fee964c307a634fecc7df269664b158 (opens in a new tab)
- git.kernel.org/stable/c/3a21698ace915a445bce2d0dcfc84b6d2199baf7 (opens in a new tab)
- git.kernel.org/stable/c/54506c6335690f4ef1b9f154e34f5a604c72c1ed (opens in a new tab)
- git.kernel.org/stable/c/8703940bd30b5ad94408d28d7192db2491cd3592 (opens in a new tab)
- git.kernel.org/stable/c/d0ca0df179c4b21e2a6c4a4fb637aa8fa14575cb (opens in a new tab)
- git.kernel.org/stable/c/d382d6daf0184490f366562469a5673f65ee2662 (opens in a new tab)
- git.kernel.org/stable/c/fbe96bd25423e61273d8831e995260b429d850b6 (opens in a new tab)