PoC Monitor
← All CVEs
CVE-2025-39941published 4 Oct 2025 07:31 UTCData: JSON · API

Linux

zram: fix slot write race condition

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CNA · CWE-362
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Linux Linux
  • >= 71268035f5d734ad6373d953298bd5779985497a, < ff750e9f2c4d63854c33967d1646b5e89a9a19a2
  • >= 71268035f5d734ad6373d953298bd5779985497a, < ce4be9e4307c5a60701ff6e0cafa74caffdc54ce

Fixed in ff750e9f2c4d63854c33967d1646b5e89a9a19a2, ce4be9e4307c5a60701ff6e0cafa74caffdc54ce

Linux Linux
  • 6.14

Fixed in 0, 6.16.9, 6.17

Mitigation

Upgrade Linux to ff750e9f2c4d63854c33967d1646b5e89a9a19a2 or ce4be9e4307c5a60701ff6e0cafa74caffdc54ce or later.

Upgrade Linux to 0 or 6.16.9 or 6.17 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published4 Oct 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.