CVE-2025-39941

published 4 Oct 2025 · updated 5 Aug 2026

zram: fix slot write race condition

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ce4be9e4307c5a60701ff6e0cafa74caffdc54ce and Kernel ff750e9f2c4d63854c33967d1646b5e89a9a19a2.

In the Linux kernel, the following vulnerability has been resolved: zram: fix slot write race condition Parallel concurrent writes to the same zram index result in leaked zsmalloc handles. Schematically we can have something like this: CPU0 CPU1 zram_slot_lock() zs_free(handle) zram_slot_lock() zram_slot_lock() zs_free(handle) zram_slot_lock() compress compress handle = zs_malloc() handle = zs_malloc() zram_slot_lock zram_set_handle(handle) zram_slot_lock zram_slot_lock zram_set_handle(handle) zram_slot_lock Either CPU0 or CPU1 zsmalloc handle will leak because zs_free() is done too early. In fact, we need to reset zram entry right before we set its new handle, all under the same slot lock scope.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.14, >=71268035f5d734ad6373d953298bd5779985497a <ce4be9e4307c5a60701ff6e0cafa74caffdc54ce, >=71268035f5d734ad6373d953298bd5779985497a <ff750e9f2c4d63854c33967d1646b5e89a9a19a2ce4be9e4307c5a60701ff6e0cafa74caffdc54ce, ff750e9f2c4d63854c33967d1646b5e89a9a19a2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-39941 severity on Zeptric[![CVE-2025-39941](https://zeptric.io/badge/cve/CVE-2025-39941.svg)](https://zeptric.io/cve/CVE-2025-39941)