CVE-2025-22020: memstick: rtsx_usb_ms: Fix slab-use-after-free in rtsx_usb_ms_drv_remove
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.21% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 0067cb7d7e7c277e91a0887a3c24e71462379469, 31f0eaed6914333f42501fc7e0f6830879f5ef2d, 4676741a3464b300b486e70585c3c9b692be1632; Azure Linux 3.0 ARM 6.6.92.2-1; Azure Linux 3.0 x64 6.6.92.2-1.
Low priority for now. Upgrade to Linux Linux 0067cb7d7e7c277e91a0887a3c24e71462379469, 31f0eaed6914333f42501fc7e0f6830879f5ef2d, 4676741a3464b300b486e70585c3c9b692be1632; Azure Linux 3.0 ARM 6.6.92.2-1; Azure Linux 3.0 x64 6.6.92.2-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
In the Linux kernel, the following vulnerability has been resolved: memstick: rtsx_usb_ms: Fix slab-use-after-free in rtsx_usb_ms_drv_remove This fixes the following crash: ================================================================== BUG: KASAN: slab-use-after-free in rtsx_usb_ms_poll_card+0x159/0x200 [rtsx_usb_ms] Read of size 8 at addr ffff888136335380 by task kworker/6:0/140241 CPU: 6 UID: 0 PID: 140241 Comm: kworker/6:0 Kdump: loaded Tainted: G E 6.14.0-rc6+ #1 Tainted: [E]=UNSIGNED_MODULE Hardware name: LENOVO 30FNA1V7CW/1057, BIOS S0EKT54A 07/01/2024 Workqueue: events rtsx_usb_ms_poll_card [rtsx_usb_ms] Call Trace: <TASK> dump_stack_lvl+0x51/0x70 print_address_description.constprop.0+0x27/0x320 ? rtsx_usb_ms_poll_card+0x159/0x200 [rtsx_usb_ms] print_report+0x3e/0x70 kasan_report+0xab/0xe0 ? rtsx_usb_ms_poll_card+0x159/0x200 [rtsx_usb_ms] rtsx_usb_ms_poll_card+0x159/0x200 [rtsx_usb_ms] ? __pfx_rtsx_usb_ms_poll_card+0x10/0x10 [rtsx_usb_ms] ? __pfx___schedule+0x10/0x10 ? kick_pool+0x3b/0x270 process_one_work+0x357/0x660 worker_thread+0x390/0x4c0 ? __pfx_worker_thread+0x10/0x10 kthread+0x190/0x1d0 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x2d/0x50 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK> Allocated by task 161446: kasan_save_stack+0x20/0x40 kasan_save_track+0x10/0x30 __kasan_kmalloc+0x7b/0x90 __kmalloc_noprof+0x1a7/0x470 memstick_alloc_host+0x1f/0xe0 [memstick] rtsx_usb_ms_drv_probe+0x47/0x320 [rtsx_usb_ms] platform_probe+0x60/0xe0 call_driver_probe+0x35/0x120 really_probe+0x123/0x410 __driver_probe_device+0xc7/0x1e0 driver_probe_device+0x49/0xf0 __device_attach_driver+0xc6/0x160 bus_for_each_drv+0xe4/0x160 __device_attach+0x13a/0x2b0 bus_probe_device+0xbd/0xd0 device_add+0x4a5/0x760 platform_device_add+0x189/0x370 mfd_add_device+0x587/0x5e0 mfd_add_devices+0xb1/0x130 rtsx_usb_probe+0x28e/0x2e0 [rtsx_usb] usb_probe_interface+0x15c/0x460 call_driver_probe+0x35/0x120 really_probe+0x123/0x410 __driver_probe_device+0xc7/0x1e0 driver_probe_device+0x49/0xf0 __device_attach_driver+0xc6/0x160 bus_for_each_drv+0xe4/0x160 __device_attach+0x13a/0x2b0 rebind_marked_interfaces.isra.0+0xcc/0x110 usb_reset_device+0x352/0x410 usbdev_do_ioctl+0xe5c/0x1860 usbdev_ioctl+0xa/0x20 __x64_sys_ioctl+0xc5/0xf0 do_syscall_64+0x59/0x170 entry_SYSCALL_64_after_hwframe+0x76/0x7e Freed by task 161506: kasan_save_stack+0x20/0x40 kasan_save_track+0x10/0x30 kasan_save_free_info+0x36/0x60 __kasan_slab_free+0x34/0x50 kfree+0x1fd/0x3b0 device_release+0x56/0xf0 kobject_cleanup+0x73/0x1c0 rtsx_usb_ms_drv_remove+0x13d/0x220 [rtsx_usb_ms] platform_remove+0x2f/0x50 device_release_driver_internal+0x24b/0x2e0 bus_remove_device+0x124/0x1d0 device_del+0x239/0x530 platform_device_del.part.0+0x19/0xe0 platform_device_unregister+0x1c/0x40 mfd_remove_devices_fn+0x167/0x170 device_for_each_child_reverse+0xc9/0x130 mfd_remove_devices+0x6e/0xa0 rtsx_usb_disconnect+0x2e/0xd0 [rtsx_usb] usb_unbind_interface+0xf3/0x3f0 device_release_driver_internal+0x24b/0x2e0 proc_disconnect_claim+0x13d/0x220 usbdev_do_ioctl+0xb5e/0x1860 usbdev_ioctl+0xa/0x20 __x64_sys_ioctl+0xc5/0xf0 do_syscall_64+0x59/0x170 entry_SYSCALL_64_after_hwframe+0x76/0x7e Last potentially related work creation: kasan_save_stack+0x20/0x40 kasan_record_aux_stack+0x85/0x90 insert_work+0x29/0x100 __queue_work+0x34a/0x540 call_timer_fn+0x2a/0x160 expire_timers+0x5f/0x1f0 __run_timer_base.part.0+0x1b6/0x1e0 run_timer_softirq+0x8b/0xe0 handle_softirqs+0xf9/0x360 __irq_exit_rcu+0x114/0x130 sysvec_apic_timer_interrupt+0x72/0x90 asm_sysvec_apic_timer_interrupt+0x16/0x20 Second to last potentially related work creation: kasan_save_stack+0x20/0x40 kasan_record_aux_stack+0x85/0x90 insert_work+0x29/0x100 __queue_work+0x34a/0x540 call_timer_fn+0x2a/0x160 expire_timers+0x5f/0x1f0 __run_timer_base.part.0+0x1b6/0x1e0 run_timer_softirq+0x8b/0xe0 handle_softirqs+0xf9/0x ---truncated---
- BDU:2025-12077
- ALSA-2025:12662
- ALSA-2025:12746
- ALSA-2025:12752
- ALSA-2025:12753
- RHSA-2025:12662
- RHSA-2025:12746
- RHSA-2025:12752
- RHSA-2025:12753
- RHSA-2025:13633
- RHSA-2025:13781
- RHSA-2025:13946
- RHSA-2025:14054
- RHSA-2025:14094
- RHSA-2025:14418
- RLSA-2025:12662
- RLSA-2025:12746
- RLSA-2025:12752
- RLSA-2025:12753
- SUSE-SU-2025:01627-1
- Published
- Apr 16, 2025
- Updated
- Aug 5, 2026
- EPSS
- 0.2% · 11th percentile
- CWE
- CWE-416
Report tools
Action score
31
Monitor
Low priority for now.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 7.8
- CNA · Linux
- 7.8
- agree
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- linux linux kernel5.0 and later · before 5.4.292
- linux linux kernel5.5 and later · before 5.10.236
- linux linux kernel5.11 and later · before 5.15.180
- linux linux kernel5.16 and later · before 6.1.133
- linux linux kernel6.2 and later · before 6.6.86
- linux linux kernel6.7 and later · before 6.12.22
- linux linux kernel6.13 and later · before 6.13.10
- linux linux kernel6.14 and later · before 6.14.1
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 5.0affected
- 6827ca573c03385439fdfc8b512d556dc7c54fc9 and later · before 914c5e5bfceb9878f3056eaf4d1c88f2cbe0a185affected · git
- 6827ca573c03385439fdfc8b512d556dc7c54fc9 and later · before 9dfaf4d723c62bda8d9d1340e2e78acf0c190439affected · git
- 6827ca573c03385439fdfc8b512d556dc7c54fc9 and later · before 31f0eaed6914333f42501fc7e0f6830879f5ef2daffected · git
- 6827ca573c03385439fdfc8b512d556dc7c54fc9 and later · before 52d942a5302eefb3b7a3bfee310a5a33feeedc21affected · git
- 6827ca573c03385439fdfc8b512d556dc7c54fc9 and later · before 6186fb2cd36317277a8423687982140a7f3f7841affected · git
- 6827ca573c03385439fdfc8b512d556dc7c54fc9 and later · before b094e8e3988e02e8cef7a756c8d2cea9c12509abaffected · git
- 6827ca573c03385439fdfc8b512d556dc7c54fc9 and later · before 0067cb7d7e7c277e91a0887a3c24e71462379469affected · git
- 6827ca573c03385439fdfc8b512d556dc7c54fc9 and later · before 75123adf204f997e11bbddee48408c284f51c050affected · git
- 6827ca573c03385439fdfc8b512d556dc7c54fc9 and later · before 4676741a3464b300b486e70585c3c9b692be1632affected · git
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:10 | kernel-abi-stablelists | before 6.12.0-55.25.1.el10_0 | 6.12.0-55.25.1.el10_0 |
| AlmaLinux:10 | kernel-doc | before 6.12.0-55.25.1.el10_0 | 6.12.0-55.25.1.el10_0 |
| AlmaLinux:8 | bpftool | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-abi-stablelists | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-core | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-cross-headers | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-debug | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-debug-core | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-debug-devel | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules-extra | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-devel | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-doc | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-headers | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-modules | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-modules-extra | before 4.18.0-553.66.1.el8_10 | 4.18.0-553.66.1.el8_10 |
| AlmaLinux:8 | kernel-rt | before 4.18.0-553.66.1.rt7.407.el8_10 | 4.18.0-553.66.1.rt7.407.el8_10 |
| AlmaLinux:8 | kernel-rt-core | before 4.18.0-553.66.1.rt7.407.el8_10 | 4.18.0-553.66.1.rt7.407.el8_10 |
| AlmaLinux:8 | kernel-rt-debug | before 4.18.0-553.66.1.rt7.407.el8_10 | 4.18.0-553.66.1.rt7.407.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-core | before 4.18.0-553.66.1.rt7.407.el8_10 | 4.18.0-553.66.1.rt7.407.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-devel | before 4.18.0-553.66.1.rt7.407.el8_10 | 4.18.0-553.66.1.rt7.407.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules | before 4.18.0-553.66.1.rt7.407.el8_10 | 4.18.0-553.66.1.rt7.407.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | before 4.18.0-553.66.1.rt7.407.el8_10 | 4.18.0-553.66.1.rt7.407.el8_10 |
+96
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2024-58092Apr 16, 2025 · nfsd: fix legacy client tracking initialization22Monitor
- ← EarlierCVE-2025-22019Apr 16, 2025 · bcachefs: bch2_ioctl_subvolume_destroy() fixes22Monitor
- Later →CVE-2025-22022Apr 16, 2025 · usb: xhci: Apply the link chain quirk on NEC isoc endpoints31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 0067cb7d7e7c277e91a0887a3c24e71462379469 | Vendor (CNA) |
| Linux Linux | 31f0eaed6914333f42501fc7e0f6830879f5ef2d | Vendor (CNA) |
| Linux Linux | 4676741a3464b300b486e70585c3c9b692be1632 | Vendor (CNA) |
| Linux Linux | 52d942a5302eefb3b7a3bfee310a5a33feeedc21 | Vendor (CNA) |
| Linux Linux | 6186fb2cd36317277a8423687982140a7f3f7841 | Vendor (CNA) |
| Linux Linux | 75123adf204f997e11bbddee48408c284f51c050 | Vendor (CNA) |
| Linux Linux | 914c5e5bfceb9878f3056eaf4d1c88f2cbe0a185 | Vendor (CNA) |
| Linux Linux | 9dfaf4d723c62bda8d9d1340e2e78acf0c190439 | Vendor (CNA) |
| Linux Linux | b094e8e3988e02e8cef7a756c8d2cea9c12509ab | Vendor (CNA) |
| Azure Linux 3.0 ARM | 6.6.92.2-1 · kernel | Microsoft (MSRC) |
| Azure Linux 3.0 x64 | 6.6.92.2-1 · kernel | Microsoft (MSRC) |
| almalinux:kernel | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-core | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-core | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-devel | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-devel-matched | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-modules | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-modules-core | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-modules-extra | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-abi-stablelists | 6.12.0-55.25.1.el10_0 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-doc | 6.12.0-55.25.1.el10_0 · AlmaLinux:10 | Package registry (OSV) |
| debian:linux | 6.1.133-1 · Debian:12 | Package registry (OSV) |
| red hat:kernel-64k-debug-debuginfo | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-64k-debug-devel | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-64k-debug-devel-matched | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-64k-debuginfo | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-64k-devel | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-64k-devel-matched | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
+20
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-416 · Use After FreeCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Root cause
After a memory region is freed, another reference pointing to it is still used. By then, the same region may have been allocated for different data.
The bug in code
The whole CWE-416 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
free(dev->buf);
/* ... another thread is still running ... */
process(dev->buf);Fixed
lock(&dev->lock);
free(dev->buf);
dev->buf = NULL;
unlock(&dev->lock);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (10 more)Show less
- git.kernel.org/stable/c/31f0eaed6914333f42501fc7e0f6830879f5ef2d
- git.kernel.org/stable/c/4676741a3464b300b486e70585c3c9b692be1632
- git.kernel.org/stable/c/52d942a5302eefb3b7a3bfee310a5a33feeedc21
- git.kernel.org/stable/c/6186fb2cd36317277a8423687982140a7f3f7841
- git.kernel.org/stable/c/75123adf204f997e11bbddee48408c284f51c050
- git.kernel.org/stable/c/914c5e5bfceb9878f3056eaf4d1c88f2cbe0a185
- git.kernel.org/stable/c/9dfaf4d723c62bda8d9d1340e2e78acf0c190439
- git.kernel.org/stable/c/b094e8e3988e02e8cef7a756c8d2cea9c12509ab
- lists.debian.org/debian-lts-announce/2025/05/msg00030.html
- lists.debian.org/debian-lts-announce/2025/05/msg00045.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.