Skip to main content
EPSS 0.2%top 94%

A vulnerability in the Linux kernel's crypto subsystem (af_alg) could cause a crash due to improper handling of the ctx->merge variable when… (CVE-2025-39931)

0
Medium
Published: 10/04/2025 (10/04/2025, 09:30:20 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's crypto subsystem (af_alg) could cause a crash due to improper handling of the ctx->merge variable when af_alg_sendmsg aborts. The issue arises because ctx->merge may retain a garbage value from a previous loop iteration, leading to a crash on subsequent calls. The fix involves setting ctx->merge to zero early in the processing loop to prevent this condition.

CVSS v3.1

Score 5.5medium

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/04/2026, 23:07:19 UTC

Technical Analysis

The vulnerability in the Linux kernel's crypto: af_alg component involves improper initialization of the ctx->merge variable in the af_alg_sendmsg function. If an error causes af_alg_sendmsg to abort, ctx->merge may contain stale data from a previous iteration, which can trigger a crash on the next invocation when an invalid merge operation is attempted. The issue is addressed by initializing ctx->merge to zero near the start of the processing loop, preventing the use of invalid data.

Potential Impact

This vulnerability does not affect confidentiality or integrity but can cause a denial of service through a crash of the kernel crypto subsystem when af_alg_sendmsg is called under error conditions. There are no known exploits in the wild. The impact is limited to availability disruption.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since this is a kernel-level issue, applying official Linux kernel updates that include the fix is recommended once available. Until then, avoid triggering conditions that cause af_alg_sendmsg to abort if possible.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-rfcq-q5wv-mpcg
Osv Schema Version
1.4.0
Aliases
["CVE-2025-39931"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a498a7827e9c7971936efe1

Added to database: 07/04/2026, 22:34:32 UTC

Last enriched: 07/04/2026, 23:07:19 UTC

Last updated: 09/10/2026, 19:36:50 UTC

Views: 24

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses