Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

In the Linux kernel, the following vulnerability has been resolved: net: af_key: initialize alg_key_len for IPComp states pfkey_msg2xfrm_state()… (CVE-2026-64436)

0
Medium
Published: 07/25/2026 (07/25/2026, 12:31:35 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's net: af_key subsystem related to IPComp states was resolved by initializing the alg_key_len field properly. The issue involved uninitialized memory usage in the compression algorithm structure, which could lead to out-of-bounds reads during state migration. This flaw occurs because the compression branch did not initialize alg_key_len, unlike other branches. The vulnerability was fixed by setting alg_key_len to zero, preventing invalid memory access during cloning of IPComp states.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/25/2026, 23:22:46 UTC

Technical Analysis

The Linux kernel's pfkey_msg2xfrm_state() function mishandles IPComp (SADB_X_SATYPE_IPCOMP) states by allocating the compression algorithm structure (calg) without initializing the alg_key_len field. Since IPComp carries no key, the allocated memory is smaller and alg_key_len remains uninitialized, containing garbage data. Later, during XFRM_MSG_MIGRATE operations, xfrm_algo_clone() uses alg_key_len to determine the size of memory to duplicate. If alg_key_len is non-zero garbage, kmemdup() reads beyond the allocated memory, causing slab-out-of-bounds errors detected by KASAN. This can lead to kernel memory corruption or crashes. The vulnerability does not affect the XFRM netlink path due to input validation. The fix initializes calg->alg_key_len to zero, aligning with other algorithm branches and preventing out-of-bounds access.

Potential Impact

The vulnerability can cause out-of-bounds memory reads in kernel space during migration of IPComp states, potentially leading to kernel crashes or memory corruption. This affects the stability and security of the kernel's networking subsystem handling IPComp. There is no indication of remote code execution or privilege escalation from the provided data. The issue is triggered by adding an IPComp Security Association via PF_KEY and migrating it.

Mitigation Recommendations

A fix is available that initializes the alg_key_len field to zero in the IPComp compression algorithm structure, preventing uninitialized memory usage. Users should update their Linux kernel to a version that includes this fix. Since this is a kernel vulnerability, applying the official kernel patch or upgrading to a fixed kernel release is the recommended remediation. Patch status is not explicitly stated in the input data; check the vendor advisory for the exact fixed kernel versions and apply updates accordingly.

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-rcfx-m5g2-2jgr
Osv Schema Version
1.4.0
Aliases
["CVE-2026-64436"]
Ecosystems
[]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a6542099c2644c7f80835a0

Added to database: 07/25/2026, 23:08:57 UTC

Last enriched: 07/25/2026, 23:22:46 UTC

Last updated: 07/26/2026, 03:52:06 UTC

Views: 4

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