CVE-2025-40022

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.

Package Linux Kernel
Published 2025-10-24
Last modified 2026-07-14
Patch available
Yes

Affected versions

Linux kernel versions 6.1.154, 6.6.108, 6.12.49, 6.16.9 and later are affected. Fixed in 6.1.155, 6.6.109, 6.12.50, 6.16.10 and their respective stable series.

Affected from
≥ 6.1.154 ≥ 6.6.108 ≥ 6.12.49 ≥ 6.16.9
Fixed in
✓ 6.1.155 6.1.x ✓ 6.6.109 6.6.x ✓ 6.12.50 6.12.x ✓ 6.16.10 6.16.x

Frequently asked questions

  • What is CVE-2025-40022?

    CVE-2025-40022 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 6.1.154 onward and has been patched in 6.1.155, 6.6.109, 6.12.50 and others. CVE-2025-40022 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • Is there a patch available for CVE-2025-40022?

    Yes. CVE-2025-40022 has been patched. Fixed versions include 6.1.155, 6.6.109, 6.12.50 and others. If you are running Linux kernel 6.1.154 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2025-40022 actively exploited?

    No. CVE-2025-40022 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.