CVE-2025-39941
Last modified
CVE-2025-39941 is a medium-severity vulnerability rated 4.7/10 on the CVSS scale. 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. EPSS estimates a 0.09% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.14, < 6.16.9 | — |
| Linux | Linux Kernel | 6.17 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-39941?
How severe is CVE-2025-39941?
How do I fix CVE-2025-39941?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-39936In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39937In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39938In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39939In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-3994A vulnerability was found in TOTOLINK N150RT 3.4.0-B20190525…3.4
- CVE-2025-39940In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39942In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39943In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-39944In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39945In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39946In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39947In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-39941?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
