Cloudanix VulnDB

CVE-2025-38717

None

CVSS

—

EPSS

0.1%

Published

Sep 4, 2025

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A timing flaw in Linux networking code can let attackers crash systems or potentially run harmful code with elevated access.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Moderate
Impact
Privilege Gain
Component
OS kernel
Class
Race Condition
Remediation
Patch
Effort
Medium
Patch risk
Low

What it actually does

Race condition in kcm_unattach() missing kcm->tx_stopped check before queue_work(), allowing tx_work requeue between cancel_work_sync() and unreserve_psock() in kcm_release(), resulting in use-after-free when kcm is freed in kcm_done().

Why it matters to the business

Kernel instability, crashes, or potential privilege escalation on Linux systems using KCM sockets, increasing risk of service disruption or compromise until patched.

How an attack unfolds

An attacker concurrently invokes kcm_unattach(psock) and kcm_release(kcm) via crafted socket operations to trigger the race, requeuing tx_work after the kcm object is freed and enabling use-after-free exploitation.

How to fix it

Update the Linux kernel to a version containing commit c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308 or later equivalent fix; rebuild and reboot with the patched kernel.

How to confirm the fix worked

Confirm the running kernel includes the referenced commit via git log or version string checks; attempt to reproduce the original syzbot race scenario post-update to verify absence.

Typical attack path

  1. Open and configure KCM sockets to establish a reserved psock
  2. Trigger concurrent kcm_unattach and kcm_release calls through multithreaded or asynchronous socket operations
  3. Exploit resulting use-after-free for denial of service or code execution

How to detect it

Inspect kernel logs and dmesg for oops, warnings, or crashes referencing kcm, tx_work, or kcm_release around the time of suspected activity.

What your security team should do

  • Prioritize kernel updates across all affected Linux deployments
  • Review and restrict use of KCM sockets where possible until patched
  • Monitor kernel logs for related oops or crashes during rollout

The record

In the Linux kernel, the following vulnerability has been resolved: net: kcm: Fix race condition in kcm_unattach() syzbot found a race condition when kcm_unattach(psock) and kcm_release(kcm) are executed at the same time. kcm_unattach() is missing a check of the flag kcm->tx_stopped before calling queue_work(). If the kcm has a reserved psock, kcm_unattach() might get executed between cancel_work_sync() and unreserve_psock() in kcm_release(), requeuing kcm->tx_work right before kcm gets freed in kcm_done(). Remove kcm->tx_stopped and replace it by the less error-prone disable_work_sync().

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 linux 0 No fix
Debian:12 linux 0 No fix
Debian:13 linux 0 6.12.43-1
Debian:14 linux 0 6.16.3-1
Linux Kernel 4.6.0 6.12.43
openSUSE:Leap 16.0 dtb-aarch64 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-64kb 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-default 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-default-base 0 6.12.0-160000.6.1.160000.2.4
openSUSE:Leap 16.0 kernel-docs 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-kvmsmall 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-obs-build 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-obs-qa 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-rt 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-source 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-syms 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-zfcpdump 0 6.12.0-160000.6.1

Related vulnerabilities