Skip to main content

Linux Kernel CVE-2026-43244

| EUVDEUVD-2026-27807 MEDIUM
Memory Leak (CWE-401)
2026-05-06 Linux GHSA-f26p-p2hg-c5qg
5.5
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
SUSE
MEDIUM
qualitative

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

4
Analysis Generated
May 11, 2026 - 14:22 vuln.today
CVSS changed
May 11, 2026 - 14:22 NVD
5.5 (MEDIUM)
Patch available
May 06, 2026 - 13:32 EUVD
CVE Published
May 06, 2026 - 11:28 nvd
MEDIUM 5.5

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

kcm: fix zero-frag skb in frag_list on partial sendmsg error

Syzkaller reported a warning in kcm_write_msgs() when processing a message with a zero-fragment skb in the frag_list.

When kcm_sendmsg() fills MAX_SKB_FRAGS fragments in the current skb, it allocates a new skb (tskb) and links it into the frag_list before copying data. If the copy subsequently fails (e.g. -EFAULT from user memory), tskb remains in the frag_list with zero fragments:

head skb (msg being assembled, NOT yet in sk_write_queue) +-----------+

| frags[17] | (MAX_SKB_FRAGS, all filled with data) | frag_list-+--> tskb +-----------+ +----------+

| frags[0] | (empty! copy failed before filling) +----------+

For SOCK_SEQPACKET with partial data already copied, the error path saves this message via partial_message for later completion. For SOCK_SEQPACKET, sock_write_iter() automatically sets MSG_EOR, so a subsequent zero-length write(fd, NULL, 0) completes the message and queues it to sk_write_queue. kcm_write_msgs() then walks the frag_list and hits:

WARN_ON(!skb_shinfo(skb)->nr_frags)

TCP has a similar pattern where skbs are enqueued before data copy and cleaned up on failure via tcp_remove_empty_skb(). KCM was missing the equivalent cleanup.

Fix this by tracking the predecessor skb (frag_prev) when allocating a new frag_list entry. On error, if the tail skb has zero frags, use frag_prev to unlink and free it in O(1) without walking the singly-linked frag_list. frag_prev is safe to dereference because the entire message chain is only held locally (or in kcm->seq_skb) and is not added to sk_write_queue until MSG_EOR, so the send path cannot free it underneath us.

Also change the WARN_ON to WARN_ON_ONCE to avoid flooding the log if the condition is somehow hit repeatedly.

There are currently no KCM selftests in the kernel tree; a simple reproducer is available at [1].

[1] https://gist.github.com/mrpre/a94d431c757e8d6f168f4dd1a3749daa

AnalysisAI

Denial of service in Linux kernel KCM (kernel connection multiplexer) subsystem when processing messages with zero-fragment skbs in frag_list after partial sendmsg failures. A local authenticated attacker can trigger a kernel warning and potentially crash the system by sending a malformed message that fails during data copy, leaving an empty skb in the fragment list. The vulnerability requires local access and low-level socket manipulation, affecting systems running vulnerable Linux kernel versions prior to patching.

Technical ContextAI

The KCM (kernel connection multiplexer) subsystem implements a socket type for message demultiplexing. The vulnerability exists in the kcm_sendmsg() function's fragment allocation logic. When assembling a message, KCM pre-allocates a new skb (tskb) and links it into the frag_list before copying user data. If the data copy fails (e.g., -EFAULT from invalid user memory pointer), the newly allocated tskb remains in the frag_list with zero fragments, creating an invalid state. Unlike TCP which has tcp_remove_empty_skb() cleanup logic, KCM lacked equivalent error handling. When kcm_write_msgs() processes the queued message, it encounters the zero-fragment skb and hits a WARN_ON() condition, triggering a kernel warning and potential denial of service. The root cause is improper error recovery in fragment list management (CWE-401: Missing Release of Memory after Effective Lifetime), complicated by the singly-linked nature of frag_list which previously would have required O(n) traversal to unlink a tail skb.

RemediationAI

Vendor-released patches are available in Linux stable kernels: upgrade to Linux 6.12.75, 6.18.16, 6.19.6, or 7.0 (or later) depending on your kernel series. The upstream fix (commit ab7ac4eb9832e32a09f4e8042705484d2fb0aad3) adds tracking of the predecessor skb (frag_prev) when allocating new frag_list entries and unlinks zero-fragment tail skbs on error via direct predecessor pointer manipulation rather than list traversal. The fix also changes the WARN_ON() to WARN_ON_ONCE() to prevent log flooding. If immediate kernel upgrade is not possible, the practical mitigation is to minimize KCM socket usage and restrict local user access via standard Unix DAC controls, though this does not eliminate the vulnerability. Verify your kernel version with uname -r and consult your distribution's kernel upgrade path (apt/yum/zypper depending on distribution). The fix has minimal overhead (only active during error paths) and no documented side effects.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

Share

CVE-2026-43244 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy