CVE-2025-38620
Last modified
CVE-2025-38620 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: zloop: fix KASAN use-after-free of tag set When a zoned loop device, or zloop device, is removed, KASAN enabled kernel reports "BUG KASAN use-after-free" in blk_mq_free_tag_set(). The BUG happens because zloop_ctl_remove() calls put_disk(), which invokes zloop_free_disk(). EPSS estimates a 0.14% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: zloop: fix KASAN use-after-free of tag set When a zoned loop device, or zloop device, is removed, KASAN enabled kernel reports "BUG KASAN use-after-free" in blk_mq_free_tag_set(). The BUG happens because zloop_ctl_remove() calls put_disk(), which invokes zloop_free_disk(). The zloop_free_disk() frees the memory allocated for the zlo pointer. However, after the memory is freed, zloop_ctl_remove() calls blk_mq_free_tag_set(&zlo->tag_set), which accesses the freed zlo. Hence the KASAN use-after-free. zloop_ctl_remove() put_disk(zlo->disk) put_device() kobject_put() ... zloop_free_disk() kvfree(zlo) blk_mq_free_tag_set(&zlo->tag_set) To avoid the BUG, move the call to blk_mq_free_tag_set(&zlo->tag_set) from zloop_ctl_remove() into zloop_free_disk(). This ensures that the tag_set is freed before the call to kvfree(zlo).
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | 6.16 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-38620?
How severe is CVE-2025-38620?
How do I fix CVE-2025-38620?
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-38615In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38616In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-38617In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-38618In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38619In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-3862Contest Gallery plugin for WordPress is vulnerable to Stored…5.4
- CVE-2025-38621In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38622In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38623In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38624In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38625In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38626In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-38620?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
