Linux Kernel Crypto Subsystem af_alg Module Merge Value Initialization Vulnerability

Vulnerability

A vulnerability exists in the Linux kernel's crypto af_alg module, where the merge context value is not properly initialized before use. If an error occurs during the af_alg_sendmsg function, the merge value may retain a garbage value from a previous iteration. This can lead to a crash in subsequent calls to af_alg_sendmsg, as the function attempts to perform a merge operation that is not feasible. The issue has been addressed by ensuring that the merge value is set to zero at the beginning of the processing loop.

Impact

The vulnerability can cause a crash by triggering an invalid merge operation, disrupting the normal execution of the af_alg_sendmsg function.

Reproduction

The vulnerability can be reproduced by invoking the af_alg_sendmsg function in a scenario where an error causes the function to abort prematurely. This will leave the ctx->merge value uninitialized, containing a garbage value from the previous loop iteration. The next time af_alg_sendmsg is called, it will attempt to perform a merge based on this invalid value, leading to a crash.

Remediation

Users can apply the latest patches available in the Linux kernel stable tree to address this vulnerability.

Added: Oct 4, 2025, 8:42 AM
Updated: Oct 4, 2025, 8:42 AM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
0.6
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.