Critical Vulnerability in Linux Package: Boolean Misassignment in af_alg Context

linux Updated 26 Oct 2025

Summary

24/10/2025
N/A
No i
Unrated
Not published

DEBIAN-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") change... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux kernel is a core component of many operating systems, providing essential functionalities such as process management, memory management, and hardware abstraction. It is widely used in various distributions, including Debian. The kernel's robustness is vital for system stability and security. However, vulnerabilities can arise, impacting the integrity and reliability of the system. This specific vulnerability affects the Linux package across multiple Debian versions, highlighting the importance of timely updates and security patches.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the af_alg context where boolean values were incorrectly assigned due to a change in data type from bool to 1-bit bitfields of type u32. This change, introduced by commit 1b34cbbf4f01, led to situations where values greater than 1 were assigned to fields 'more' and 'merge'. The implicit conversion in C, which treats zero as false and nonzero as true, was disrupted, causing unintended assignments. This flaw could lead to unpredictable behavior in cryptographic operations, potentially compromising system security.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there are no specific workarounds provided for this vulnerability. The best course of action is to apply the available patch as soon as possible.

Conclusion

The vulnerability identified in the Linux kernel's af_alg context poses significant risks due to incorrect boolean assignments. It is crucial for users to update their systems to the patched version to ensure security and stability. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the integrity of your software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability involves incorrect boolean assignments in the af_alg context of the Linux kernel, leading to potential security risks.

The vulnerability affects Debian versions 11, 12, 13, and 14.

You can use tools like Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.

Failure to address this vulnerability may lead to unpredictable behavior in cryptographic operations, potentially compromising system security and data integrity.

The most effective mitigation is to apply the patch as soon as it becomes available. Currently, no specific workarounds are recommended.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback