# CVE-2025-22020: memstick: rtsx\_usb\_ms: Fix slab-use-after-free in rtsx\_usb\_ms\_drv\_remove

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-04-16T10:20:37.045Z
- **Modified:** 2026-08-05T11:56:02.551Z

## Who should check

- Anyone running Linux \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 914c5e5bfceb9878f3056eaf4d1c88f2cbe0a185; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 9dfaf4d723c62bda8d9d1340e2e78acf0c190439; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 31f0eaed6914333f42501fc7e0f6830879f5ef2d; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 52d942a5302eefb3b7a3bfee310a5a33feeedc21; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 6186fb2cd36317277a8423687982140a7f3f7841; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< b094e8e3988e02e8cef7a756c8d2cea9c12509ab; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 0067cb7d7e7c277e91a0887a3c24e71462379469; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 75123adf204f997e11bbddee48408c284f51c050; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 4676741a3464b300b486e70585c3c9b692be1632
- Anyone running Linux 5.0

## Description

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---

## Affected and fixed versions

- Linux: \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 914c5e5bfceb9878f3056eaf4d1c88f2cbe0a185; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 9dfaf4d723c62bda8d9d1340e2e78acf0c190439; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 31f0eaed6914333f42501fc7e0f6830879f5ef2d; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 52d942a5302eefb3b7a3bfee310a5a33feeedc21; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 6186fb2cd36317277a8423687982140a7f3f7841; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< b094e8e3988e02e8cef7a756c8d2cea9c12509ab; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 0067cb7d7e7c277e91a0887a3c24e71462379469; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 75123adf204f997e11bbddee48408c284f51c050; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 4676741a3464b300b486e70585c3c9b692be1632 (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- Upgrade Linux to 4676741a3464b300b486e70585c3c9b692be1632 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-22020. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22020.md
Affected: Linux >= 6827ca573c03385439fdfc8b512d556dc7c54fc9, < 914c5e5bfceb9878f3056eaf4d1c88f2cbe0a185; >= 6827ca573c03385439fdfc8b512d556dc7c54fc9, < 9dfaf4d723c62bda8d9d1340e2e78acf0c190439; >= 6827ca573c03385439fdfc8b512d556dc7c54fc9, < 31f0eaed6914333f42501fc7e0f6830879f5ef2d; >= 6827ca573c03385439fdfc8…
Fixed in: Linux 914c5e5bfceb9878f3056eaf4d1c88f2cbe0a185, Linux 9dfaf4d723c62bda8d9d1340e2e78acf0c190439, Linux 31f0eaed6914333f42501fc7e0f6830879f5ef2d, Linux 52d942a5302eefb3b7a3bfee310a5a33feeedc21, Linux 6186fb2cd36317277a8423687982140a7f3f7841, Linux 0067cb7d7e7c277e91a0887a3c24e71462379469, Linux 75123…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-22020 being exploited?

There is no confirmed exploitation: CVE-2025-22020 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-22020?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-22020?

Linux \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 914c5e5bfceb9878f3056eaf4d1c88f2cbe0a185; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 9dfaf4d723c62bda8d9d1340e2e78acf0c190439; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 31f0eaed6914333f42501fc7e0f6830879f5ef2d; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 52d942a5302eefb3b7a3bfee310a5a33feeedc21; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 6186fb2cd36317277a8423687982140a7f3f7841; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< b094e8e3988e02e8cef7a756c8d2cea9c12509ab; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 0067cb7d7e7c277e91a0887a3c24e71462379469; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 75123adf204f997e11bbddee48408c284f51c050; \>= 6827ca573c03385439fdfc8b512d556dc7c54fc9, \< 4676741a3464b300b486e70585c3c9b692be1632; Linux 5.0.

### Is there a fix for CVE-2025-22020?

Yes. Fixed in Linux 914c5e5bfceb9878f3056eaf4d1c88f2cbe0a185, Linux 9dfaf4d723c62bda8d9d1340e2e78acf0c190439, Linux 31f0eaed6914333f42501fc7e0f6830879f5ef2d, Linux 52d942a5302eefb3b7a3bfee310a5a33feeedc21, Linux 6186fb2cd36317277a8423687982140a7f3f7841, Linux 0067cb7d7e7c277e91a0887a3c24e71462379469, Linux 75123adf204f997e11bbddee48408c284f51c050, Linux 4676741a3464b300b486e70585c3c9b692be1632. Upgrade Linux to 4676741a3464b300b486e70585c3c9b692be1632 or later.

### How do I check if I'm affected by CVE-2025-22020?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/914c5e5bfceb9878f3056eaf4d1c88f2cbe0a185>
- patch: <https://git.kernel.org/stable/c/9dfaf4d723c62bda8d9d1340e2e78acf0c190439>
- patch: <https://git.kernel.org/stable/c/31f0eaed6914333f42501fc7e0f6830879f5ef2d>
- patch: <https://git.kernel.org/stable/c/52d942a5302eefb3b7a3bfee310a5a33feeedc21>
- patch: <https://git.kernel.org/stable/c/6186fb2cd36317277a8423687982140a7f3f7841>
- patch: <https://git.kernel.org/stable/c/b094e8e3988e02e8cef7a756c8d2cea9c12509ab>
- patch: <https://git.kernel.org/stable/c/0067cb7d7e7c277e91a0887a3c24e71462379469>
- patch: <https://git.kernel.org/stable/c/75123adf204f997e11bbddee48408c284f51c050>
- patch: <https://git.kernel.org/stable/c/4676741a3464b300b486e70585c3c9b692be1632>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-22020>

HTML: <https://flawdb.com/CVE-2025-22020> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-22020>
