# CVE-2026-99039: memstick: core: wait for request completion before freeing card

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 12, 2026-12-04)
- **Published:** 2026-10-23T12:21:57.421Z
- **Modified:** 2026-10-30T13:21:41.050Z

## Who should check

- Anyone running Linux \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< b90f33ad9179c69658342323382bfed158f88cb9; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< 1c23da6f148089d59b3d3e9b2e7f1eefa927cab9; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< a2f1aa3341f185ca52103dc4908647570b208855; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< c3ab92542475d59ae685cbb294e70ca4d0ba38e9; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< 810580cf60edc75c9891c2de3225e4cda78e4d9f; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< f2795c50144d528dabc2cf2fd53c0f0c63a823a1; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< 3af81770e2011c6ac7bb597a4af2e4f3591f928c; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< aa0a37b5024d921e96ac4f8f487c8bfbf1f1a582
- Anyone running Linux 2.6.25

## Description

In the Linux kernel, the following vulnerability has been resolved:

memstick: core: wait for request completion before freeing card

In memstick\_alloc\_card() and memstick\_set\_rw\_addr(),
wait\_for\_completion\_timeout() is used to wait for device identification
and address configuration requests to complete.

The memstick subsystem does not provide an abort or cancellation
callback in struct memstick\_host for in-flight requests. If
wait\_for\_completion\_timeout() expires (for instance, when a USB transfer
or command retry is delayed), memstick\_alloc\_card() returns an error and
frees the memstick\_dev structure via kfree(card).

However, the host controller driver (such as rtsx\_usb\_ms) is still
running the request asynchronously in worker context. When the transfer
eventually finishes, the driver writes into host-\>req-\>data, which
points to memory inside the already freed card structure. This leads to
a KASAN slab-use-after-free write:

  BUG: KASAN: slab-use-after-free in ms\_read\_bytes+0x8fe/0x990
  Write of size 1 at addr ffff88813c188079 by task kworker/1:5/5239
  Workqueue: events rtsx\_usb\_ms\_handle\_req
  Call Trace:
   ms\_read\_bytes+0x8fe/0x990 drivers/memstick/host/rtsx\_usb\_ms.c:450
   rtsx\_usb\_ms\_issue\_cmd drivers/memstick/host/rtsx\_usb\_ms.c:477 \[inline\]
   rtsx\_usb\_ms\_handle\_req+0x557/0x1a00 drivers/memstick/host/rtsx\_usb\_ms.c:531
   process\_one\_work+0xac7/0x1b10 kernel/workqueue.c:3396
   worker\_thread+0x5ef/0xe50 kernel/workqueue.c:3560
   kthread+0x373/0x450 kernel/kthread.c:436

  Allocated by task 1662:
   memstick\_alloc\_card drivers/memstick/core/memstick.c:383 \[inline\]
   memstick\_check+0x2c1/0x10d0 drivers/memstick/core/memstick.c:452
   process\_one\_work+0xac7/0x1b10 kernel/workqueue.c:3396

  Freed by task 1662:
   kfree+0x20c/0x650 mm/slub.c:6792
   memstick\_alloc\_card drivers/memstick/core/memstick.c:420 \[inline\]
   memstick\_check+0x72b/0x10d0 drivers/memstick/core/memstick.c:452
   process\_one\_work+0xac7/0x1b10 kernel/workqueue.c:3396

Host controller drivers (rtsx\_usb\_ms, jmb38x\_ms, tifm\_ms, r592) already
implement their own hardware and bus timeouts, and callers in
mspro\_block and ms\_block already rely on wait\_for\_completion()
unconditionally.

Replace wait\_for\_completion\_timeout() with wait\_for\_completion() in
memstick\_set\_rw\_addr() and memstick\_alloc\_card() so that the card
structure is never freed while an asynchronous request is in flight.

## Affected and fixed versions

- Linux: \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< b90f33ad9179c69658342323382bfed158f88cb9; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< 1c23da6f148089d59b3d3e9b2e7f1eefa927cab9; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< a2f1aa3341f185ca52103dc4908647570b208855; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< c3ab92542475d59ae685cbb294e70ca4d0ba38e9; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< 810580cf60edc75c9891c2de3225e4cda78e4d9f; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< f2795c50144d528dabc2cf2fd53c0f0c63a823a1; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< 3af81770e2011c6ac7bb597a4af2e4f3591f928c; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< aa0a37b5024d921e96ac4f8f487c8bfbf1f1a582 (cvelist)
- Linux: 2.6.25 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-99039.md
Affected: Linux >= baf8532a147d5b76681ce040e2c8f25a3f0e718d, < b90f33ad9179c69658342323382bfed158f88cb9; >= baf8532a147d5b76681ce040e2c8f25a3f0e718d, < 1c23da6f148089d59b3d3e9b2e7f1eefa927cab9; >= baf8532a147d5b76681ce040e2c8f25a3f0e718d, < a2f1aa3341f185ca52103dc4908647570b208855; >= baf8532a147d5b76681ce04…
Fixed in: Linux 1c23da6f148089d59b3d3e9b2e7f1eefa927cab9, Linux 810580cf60edc75c9891c2de3225e4cda78e4d9f, Linux 3af81770e2011c6ac7bb597a4af2e4f3591f928c

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-2026-99039 being exploited?

There is no confirmed exploitation: CVE-2026-99039 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-12-04).

### How serious is CVE-2026-99039?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99039?

Linux \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< b90f33ad9179c69658342323382bfed158f88cb9; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< 1c23da6f148089d59b3d3e9b2e7f1eefa927cab9; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< a2f1aa3341f185ca52103dc4908647570b208855; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< c3ab92542475d59ae685cbb294e70ca4d0ba38e9; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< 810580cf60edc75c9891c2de3225e4cda78e4d9f; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< f2795c50144d528dabc2cf2fd53c0f0c63a823a1; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< 3af81770e2011c6ac7bb597a4af2e4f3591f928c; \>= baf8532a147d5b76681ce040e2c8f25a3f0e718d, \< aa0a37b5024d921e96ac4f8f487c8bfbf1f1a582; Linux 2.6.25.

### Is there a fix for CVE-2026-99039?

Yes. Fixed in Linux 1c23da6f148089d59b3d3e9b2e7f1eefa927cab9, Linux 810580cf60edc75c9891c2de3225e4cda78e4d9f, Linux 3af81770e2011c6ac7bb597a4af2e4f3591f928c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99039?

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

- other: <https://git.kernel.org/stable/c/b90f33ad9179c69658342323382bfed158f88cb9>
- other: <https://git.kernel.org/stable/c/1c23da6f148089d59b3d3e9b2e7f1eefa927cab9>
- other: <https://git.kernel.org/stable/c/a2f1aa3341f185ca52103dc4908647570b208855>
- other: <https://git.kernel.org/stable/c/c3ab92542475d59ae685cbb294e70ca4d0ba38e9>
- other: <https://git.kernel.org/stable/c/810580cf60edc75c9891c2de3225e4cda78e4d9f>
- other: <https://git.kernel.org/stable/c/f2795c50144d528dabc2cf2fd53c0f0c63a823a1>
- other: <https://git.kernel.org/stable/c/3af81770e2011c6ac7bb597a4af2e4f3591f928c>
- other: <https://git.kernel.org/stable/c/aa0a37b5024d921e96ac4f8f487c8bfbf1f1a582>

## 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-2026-99039>

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