CVE-2025-40022

crypto: af_alg - Fix incorrect boolean values in af_alg_ctx

N/A
Published: October 24, 2025 at 12:24 PM UTC
Updated: October 19, 2026 at 09:10 PM UTC
4 products affected across 2 vendorsLinux KernelSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP FirmwareSiplus S7-1500 CPU 1518-4 Pn /dp MFP Firmware

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

0f28c4adbc4a97437874c9b669fd7958a8c6d6ce1b34cbbf4f011a121ef7b2d7d6e6920a036d52851f323a48e9b5ebfe6dc7d130fdf5c3c0e92a07c845bcf60fe49b37daab1acee57b27211ad15740426.1.1546.12.496.16.96.6.1087c4491b5644e3a3708f3dbd7591be0a570135b849aee87da5572b3a14075f501752e209801160d3de4c1ec11132ec466f7362a95f36a506ce4dc08c9
Vendor states this is fixed in 316b090c2fee964c307a634fecc7df269664b158 (fixed)
Vendor states this is fixed in 3a21698ace915a445bce2d0dcfc84b6d2199baf7 (fixed)
Vendor states this is fixed in 54506c6335690f4ef1b9f154e34f5a604c72c1ed (fixed)
Vendor states this is fixed in 8703940bd30b5ad94408d28d7192db2491cd3592 (fixed)
Vendor states this is fixed in d0ca0df179c4b21e2a6c4a4fb637aa8fa14575cb (fixed)
Vendor states this is fixed in d382d6daf0184490f366562469a5673f65ee2662 (fixed)
Vendor states this is fixed in fbe96bd25423e61273d8831e995260b429d850b6 (fixed)
Affected range stops below 6.1.155, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.12.50, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.16.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.6.109, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card