CVE Catalog

CVE-2025-38717

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.11%

1th percentile - higher than 1% of all known CVEs

Summary

In the Linux kernel's KCM module, a race condition was found in kcm_unattach(). Missing check of the kcm->tx_stopped flag before calling queue_work() can re-queue tx_work after socket release, leading to use-after-free.

Risk Assessment

The organization risks system crashes or potential privilege escalation due to unsafe memory management.

Recommendation

Update the Linux kernel to a version containing the fix that replaces the tx_stopped flag with disable_work_sync(), eliminating the race condition.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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().

Vulnerability data from NVD (NIST) · CISA KEV · EPSS