Skip to content
OpenAdvisories
Unscored CVE-2025-40022 EUVD-2025-35837GHSA-rjhr-rr92-fh8c

crypto: af_alg - Fix incorrect boolean values in af_alg_ctx

Published Oct 24, 2025 · Updated Nov 10, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.8 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-azure Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.8 Package: linux-azure-6.11 Package: linux-azure-6.2 Package: linux-azure-6.5 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.2 Package: linux-gcp Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.8 Package: linux-gcp-6.11 Package: linux-gcp-6.2 Package: linux-gcp-6.5 Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.19 Package: linux-hwe-5.8 Package: linux-hwe-6.11 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-edge Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.11 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-nvidia-6.2 Package: linux-nvidia-6.5 Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oem-6.11 Package: linux-oem-6.5 Package: linux-oem-6.8 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.3 Package: linux-oracle-5.8 Package: linux-oracle-6.5 Package: linux-raspi Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-riscv-6.5 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-starfive-6.5 Platform: Linux Ecosystem: Debian Ecosystem: Ubuntu

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 products

VendorProductAffectedFixed
Linux Linux 6.1.154 – < 6.1.155, 6.6.108 – < 6.6.109, 6.12.49 – < 6.12.50, 6.16.9 – < 6.16.10 6.1.155

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.16.10-1 —
Debian 13 linux 6.12.57-1 —
Debian 12 linux 6.1.158-1 DSA-6053-1
Debian 11 linux 5.10.247-1 DLA-4404-1
Debian 11 linux-6.1 6.1.158-1~deb11u1 DLA-4379-1
ReleasePackageFixed inAdvisory
Ubuntu 25.10 linux 6.17.0-6.6 —
Ubuntu 25.10 linux-aws +2 6.17.0-1003.3 —
Ubuntu 25.10 linux-azure 6.17.0-1006.6 —
Ubuntu 25.10 linux-azure-fde No fix yet —
Ubuntu 25.10 linux-raspi 6.17.0-1004.4 —
Ubuntu 25.10 linux-realtime 6.17.0-1002.3 —
Ubuntu 25.10 linux-riscv 6.17.0-6.6.1 —
Ubuntu 24.04 LTS linux-riscv +8 No fix yet —
Ubuntu 22.04 LTS linux-riscv +32 No fix yet —
Ubuntu 20.04 LTS linux-gke +28 No fix yet —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 kernel-64kb +7 6.4.0-150700.53.81.1 SUSE-SU-2026:4254-1
SLES 15 SP7 kernel-default-base 6.4.0-150700.53.81.1.150700.17.45.1 SUSE-SU-2026:4254-1
SLES 15 SP6 kernel-64kb +6 6.4.0-150600.23.135.1 SUSE-SU-2026:4369-1
SLES 15 SP6 kernel-default-base 6.4.0-150600.23.135.1.150600.12.62.4 SUSE-SU-2026:4369-1
SLES 15 SP5 kernel-64kb +4 5.14.21-150500.55.192.2 SUSE-SU-2026:4667-1
SLES 15 SP5 kernel-default-base 5.14.21-150500.55.192.2.150500.6.89.2 SUSE-SU-2026:4667-1
SLES 15 SP5 kernel-docs +1 5.14.21-150500.55.192.1 SUSE-SU-2026:4667-1
SLES 15 SP4 kernel-64kb +6 5.14.21-150400.24.243.1 SUSE-SU-2026:4668-1
SLES 15 SP4 kernel-default-base 5.14.21-150400.24.243.1.150400.24.122.1 SUSE-SU-2026:4668-1
SLES 12 SP5 kernel-syms +2 4.12.14-122.328.1 SUSE-SU-2026:4282-1
Show 19 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 kernel-64kb +8 6.12.0-160000.37.1 SUSE-SU-2026:23231-1, SUSE-SU-2026:23221-1
SLES for SAP 16.0 kernel-default-base 6.12.0-160000.37.1.160000.2.19 SUSE-SU-2026:23231-1, SUSE-SU-2026:23221-1
SLES for SAP 15 SP6 kernel-default-base 6.4.0-150600.23.135.1.150600.12.62.4 SUSE-SU-2026:4369-1
SLES for SAP 15 SP6 kernel-docs +4 6.4.0-150600.23.135.1 SUSE-SU-2026:4369-1
SLES for SAP 15 SP5 kernel-default-base 5.14.21-150500.55.192.2.150500.6.89.2 SUSE-SU-2026:4667-1
SLES for SAP 15 SP5 kernel-docs +1 5.14.21-150500.55.192.1 SUSE-SU-2026:4667-1
SLES for SAP 15 SP5 kernel-source +2 5.14.21-150500.55.192.2 SUSE-SU-2026:4667-1
SLES for SAP 15 SP4 kernel-default-base 5.14.21-150400.24.243.1.150400.24.122.1 SUSE-SU-2026:4668-1
SLES for SAP 15 SP4 kernel-docs +4 5.14.21-150400.24.243.1 SUSE-SU-2026:4668-1
SLES 16.0 kernel-64kb +8 6.12.0-160000.37.1 SUSE-SU-2026:23237-1, SUSE-SU-2026:23231-1, SUSE-SU-2026:23221-1
SLES 16.0 kernel-default-base 6.12.0-160000.37.1.160000.2.19 SUSE-SU-2026:23231-1, SUSE-SU-2026:23221-1
SLE Micro 6.2 kernel-default-base 6.12.0-160000.37.1.160000.2.19 SUSE-SU-2026:23068-1
SLE Micro 6.2 kernel-rt +5 6.12.0-160000.37.1 SUSE-SU-2026:23068-1, SUSE-SU-2026:23066-1
SLE Micro 6.1 kernel-default-base 6.4.0-52.1.21.34 SUSE-SU-2026:23529-1
SLE Micro 6.1 kernel-rt +4 6.4.0-52.1 SUSE-SU-2026:23529-1, SUSE-SU-2026:23528-1
SLE Micro 6.0 kernel-default-base 6.4.0-52.1.21.36 SUSE-SU-2026:23481-1
SLE Micro 6.0 kernel-rt +4 6.4.0-52.1 SUSE-SU-2026:23481-1, SUSE-SU-2026:23477-1
SLE Micro 5.5 kernel-default-base 5.14.21-150500.55.192.2.150500.6.89.2 SUSE-SU-2026:4667-1
SLE Micro 5.5 kernel-rt +1 5.14.21-150500.13.164.1 SUSE-SU-2026:4665-1
SLE Micro 5.5 kernel-source +1 5.14.21-150500.55.192.2 SUSE-SU-2026:4667-1
SLE Micro 5.4 kernel-default-base 5.14.21-150400.24.243.1.150400.24.122.1 SUSE-SU-2026:4668-1
SLE Micro 5.4 kernel-rt +1 5.14.21-150400.15.189.1 SUSE-SU-2026:4666-1
SLE Micro 5.4 kernel-source +1 5.14.21-150400.24.243.1 SUSE-SU-2026:4668-1
SLE Micro 5.3 kernel-default-base 5.14.21-150400.24.243.1.150400.24.122.1 SUSE-SU-2026:4668-1
SLE Micro 5.3 kernel-rt +1 5.14.21-150400.15.189.1 SUSE-SU-2026:4666-1
SLE Micro 5.3 kernel-source +1 5.14.21-150400.24.243.1 SUSE-SU-2026:4668-1
SLE Live Patching 15 SP7 kernel-default 6.4.0-150700.53.81.1 SUSE-SU-2026:4254-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_20 1-150700.1.3.1 SUSE-SU-2026:4120-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_21 1-150700.15.3.1 SUSE-SU-2026:4254-1
SLE Live Patching 15 SP6 kernel-default 6.4.0-150600.23.135.1 SUSE-SU-2026:4369-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_31 1-150600.13.3.4 SUSE-SU-2026:4369-1
SLE Live Patching 15 SP5 kernel-default 5.14.21-150500.55.192.2 SUSE-SU-2026:4667-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_46 1-150500.11.3.2 SUSE-SU-2026:4667-1
SLE Live Patching 15 SP4 kernel-default 5.14.21-150400.24.243.1 SUSE-SU-2026:4668-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_60 1-150400.9.3.1 SUSE-SU-2026:4668-1
SLE Live Patching 12 SP5 kernel-default 4.12.14-122.328.1 SUSE-SU-2026:4282-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_87 1-8.5.1 SUSE-SU-2026:4282-1
SLE HPC 15 SP5 kernel-64kb +3 5.14.21-150500.55.192.2 SUSE-SU-2026:4667-1
SLE HPC 15 SP5 kernel-default-base 5.14.21-150500.55.192.2.150500.6.89.2 SUSE-SU-2026:4667-1
SLE HPC 15 SP5 kernel-docs +1 5.14.21-150500.55.192.1 SUSE-SU-2026:4667-1
SLE HPC 15 SP4 kernel-64kb +5 5.14.21-150400.24.243.1 SUSE-SU-2026:4668-1
SLE HPC 15 SP4 kernel-default-base 5.14.21-150400.24.243.1.150400.24.122.1 SUSE-SU-2026:4668-1
SUSE Real Time Module 15 SP7 kernel-rt +2 6.4.0-150700.7.75.1 SUSE-SU-2026:4120-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 kernel-default-base 6.12.0-160000.37.1.160000.2.19 openSUSE-SU-2026:21555-1
openSUSE Leap 16.0 kernel-rt +11 6.12.0-160000.37.1 openSUSE-SU-2026:21555-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 bpftool +18 5.15.0-315.196.5.1.el9uek ELSA-2025-28048
Oracle Linux 7 kernel-uek +6 5.4.17-2136.351.3.3.el8uek ELSA-2026-50100, ELSA-2026-50071
Oracle Linux 7 kernel-uek-tools 5.4.17-2136.351.3.3.el7uek ELSA-2026-50100, ELSA-2026-50071

Advisories 31

References