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

kcm: use WRITE_ONCE() when changing lower socket callbacks

kcm_attach() replaces a live lower TCP socket's sk_data_ready and
sk_write_space callbacks with KCM handlers, and kcm_unattach() restores
them later. Those callback-pointer updates are still plain stores even
though the same fields can be read and invoked concurrently on other
CPUs.

If another CPU observes an older callback snapshot after the live field
has already been restored, callback execution can run with a mismatched
target and sk_user_data state, leading to stale or misdirected wakeups.

Use WRITE_ONCE() for the callback replacement and restore operations so
these shared callback fields follow the same visibility contract already
established by the earlier 4022 fixes.
Published: 2026-08-15
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability involves the Linux kernel's KCM component, which temporarily replaces lower TCP socket callbacks with custom handlers and then restores them. The original code performed direct pointer assignments without enforcing proper memory visibility, so if another CPU reads an old callback pointer after it has been restored, the callback may execute with a mismatched target and stale state. This race condition can cause incorrect wake‑up handling, potentially leading to kernel panics, memory corruption, or denial of service. The weakness is a classic race condition on shared kernel data.

Affected Systems

The affected product is the Linux kernel. No specific version ranges are listed in the CNA data, so any kernel including the vulnerable kcm_attach and kcm_unattach paths may be at risk. Systems should verify whether their running kernel contains the fix that replaces the patching changes.

Risk and Exploitability

The CVSS score of 7.8 indicates substantial severity and the EPSS score of 0.00136 (<1%) indicates very low exploitation likelihood, but the flaw is a local kernel race that can be triggered by interacting with TCP sockets. Because the bug involves internal kernel mechanisms, it is unlikely to be exploited remotely without local kernel code execution. The absence of KEV status suggests no known widespread exploitation. Nevertheless, the potential for a critical kernel crash warrants prompt remediation.

Generated by OpenCVE AI on August 22, 2026 at 02:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Install the latest kernel update that includes the WRITE_ONCE() change for kcm callback updates.
  • Recompile the kernel with the KCM feature disabled (CONFIG_KCM=n) if a timely patch is not available.
  • Monitor for kernel panics or abnormal wake‑up activity and reboot when necessary to clear any affected socket callback states.

Generated by OpenCVE AI on August 22, 2026 at 02:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-366
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 17 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Mon, 17 Aug 2026 10:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-766

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sat, 15 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-766

Sat, 15 Aug 2026 06:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: kcm: use WRITE_ONCE() when changing lower socket callbacks kcm_attach() replaces a live lower TCP socket's sk_data_ready and sk_write_space callbacks with KCM handlers, and kcm_unattach() restores them later. Those callback-pointer updates are still plain stores even though the same fields can be read and invoked concurrently on other CPUs. If another CPU observes an older callback snapshot after the live field has already been restored, callback execution can run with a mismatched target and sk_user_data state, leading to stale or misdirected wakeups. Use WRITE_ONCE() for the callback replacement and restore operations so these shared callback fields follow the same visibility contract already established by the earlier 4022 fixes.
Title kcm: use WRITE_ONCE() when changing lower socket callbacks
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:45:10.909Z

Reserved: 2026-08-15T05:44:03.877Z

Link: CVE-2026-74262

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:25.450

Modified: 2026-08-17T06:19:19.733

Link: CVE-2026-74262

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-74262 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T02:30:17Z

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-366

    Race Condition within a Thread