All reports
Medium

kernel: crypto: af_alg - Set merge to zero early in af_alg_sendmsg

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-39931

Probability of exploitation in the next 30 days: 0.17%

FIRST EPSS · 2026-11-23

Description

In the Linux kernel, the following vulnerability has been resolved: crypto: af_alg - Set merge to zero early in af_alg_sendmsg If an error causes af_alg_sendmsg to abort, ctx->merge may contain a garbage value from the previous loop. This may then trigger a crash on the next entry into af_alg_sendmsg when it attempts to do a merge that can't be done. Fix this by setting ctx->merge to zero near the start of the loop.

A flaw was found in the Linux kernel's crypto subsystem. When a cryptographic socket message operation aborts due to an error, internal state tracking flags are not properly reset. A local attacker can exploit this condition by submitting subsequent requests, causing the kernel to attempt an invalid data merge that results in a system crash and a Denial of Service (DoS).