Linux Kernel Zram Component Slot Write Race Condition Vulnerability

Vulnerability

A race condition vulnerability has been identified in the Zram component of the Linux kernel. This issue arises from parallel concurrent writes to the same Zram index, leading to a leak of Zsmalloc handles. The vulnerability occurs because the Zs_free function is called too early, allowing either of the concurrent operations to overwrite the handle before it is properly freed. The vulnerability affects the Linux kernel stable tree.

Impact

The vulnerability can lead to a memory leak of Zsmalloc handles, which could potentially be exploited to cause a denial of service by exhausting memory resources.

Reproduction

The vulnerability can be reproduced by performing parallel writes to the same Zram index. This can be done by initiating two concurrent processes that write to the same index, causing a race condition where one process's write operation interferes with the other's. The Zram_slot_lock function is used to manage access to the Zram index, but the current implementation allows for a race condition to occur.

Remediation

The vulnerability has been addressed in the Linux kernel stable tree. Users can upgrade to the latest version of the stable kernel to apply the fix.

Added: Oct 4, 2025, 8:33 AM
Updated: Oct 4, 2025, 8:33 AM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
3.9
remediation
7.7
relevance
0.6
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.