PT-2025-40637 · Linux · Linux Kernel

Published

2025-10-04

·

Updated

2025-10-04

·

CVE-2025-39941

CVSS v3.1

4.7

Medium

VectorAV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A race condition exists in zram related to concurrent writes to the same zram index. This can lead to leaked zsmalloc handles. The issue occurs when multiple CPUs attempt to free memory (zs free()) before a new handle is properly set, potentially causing memory leaks. The vulnerability arises from performing zs free() too early in the process, before resetting the zram entry under the same slot lock scope. The affected code involves functions such as zram slot lock(), zs malloc(), and zram set handle().
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Race Condition

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2025-39941

Affected Products

Linux Kernel