{"id":"CVE-2026-99039","aliases":[],"cve":{"records":[{"id":"CVE-2026-99039","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.387Z","published":"2026-10-23T12:21:57.421Z","modified":"2026-10-30T12:41:12.630Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-10-30T12:41:12.630Z"}],"references":[{"url":"https://git.kernel.org/stable/c/b90f33ad9179c69658342323382bfed158f88cb9","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/1c23da6f148089d59b3d3e9b2e7f1eefa927cab9","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/a2f1aa3341f185ca52103dc4908647570b208855","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/c3ab92542475d59ae685cbb294e70ca4d0ba38e9","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/810580cf60edc75c9891c2de3225e4cda78e4d9f","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/f2795c50144d528dabc2cf2fd53c0f0c63a823a1","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/3af81770e2011c6ac7bb597a4af2e4f3591f928c","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/aa0a37b5024d921e96ac4f8f487c8bfbf1f1a582","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.25","versionEndExcluding":"5.10.273"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.25","versionEndExcluding":"5.15.224"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.25","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.25","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.25","versionEndExcluding":"6.12.113"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.25","versionEndExcluding":"6.18.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.25","versionEndExcluding":"7.2.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.25","versionEndExcluding":"7.3"}]}]}]}],"prioritization":[]},"title":"memstick: core: wait for request completion before freeing card","titleSource":"Linux","descriptionSource":"Linux","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmemstick: core: wait for request completion before freeing card\n\nIn memstick_alloc_card() and memstick_set_rw_addr(),\nwait_for_completion_timeout() is used to wait for device identification\nand address configuration requests to complete.\n\nThe memstick subsystem does not provide an abort or cancellation\ncallback in struct memstick_host for in-flight requests. If\nwait_for_completion_timeout() expires (for instance, when a USB transfer\nor command retry is delayed), memstick_alloc_card() returns an error and\nfrees the memstick_dev structure via kfree(card).\n\nHowever, the host controller driver (such as rtsx_usb_ms) is still\nrunning the request asynchronously in worker context. When the transfer\neventually finishes, the driver writes into host->req->data, which\npoints to memory inside the already freed card structure. This leads to\na KASAN slab-use-after-free write:\n\n  BUG: KASAN: slab-use-after-free in ms_read_bytes+0x8fe/0x990\n  Write of size 1 at addr ffff88813c188079 by task kworker/1:5/5239\n  Workqueue: events rtsx_usb_ms_handle_req\n  Call Trace:\n   ms_read_bytes+0x8fe/0x990 drivers/memstick/host/rtsx_usb_ms.c:450\n   rtsx_usb_ms_issue_cmd drivers/memstick/host/rtsx_usb_ms.c:477 [inline]\n   rtsx_usb_ms_handle_req+0x557/0x1a00 drivers/memstick/host/rtsx_usb_ms.c:531\n   process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396\n   worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560\n   kthread+0x373/0x450 kernel/kthread.c:436\n\n  Allocated by task 1662:\n   memstick_alloc_card drivers/memstick/core/memstick.c:383 [inline]\n   memstick_check+0x2c1/0x10d0 drivers/memstick/core/memstick.c:452\n   process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396\n\n  Freed by task 1662:\n   kfree+0x20c/0x650 mm/slub.c:6792\n   memstick_alloc_card drivers/memstick/core/memstick.c:420 [inline]\n   memstick_check+0x72b/0x10d0 drivers/memstick/core/memstick.c:452\n   process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396\n\nHost controller drivers (rtsx_usb_ms, jmb38x_ms, tifm_ms, r592) already\nimplement their own hardware and bus timeouts, and callers in\nmspro_block and ms_block already rely on wait_for_completion()\nunconditionally.\n\nReplace wait_for_completion_timeout() with wait_for_completion() in\nmemstick_set_rw_addr() and memstick_alloc_card() so that the card\nstructure is never freed while an asynchronous request is in flight.","score":null,"severity":"unknown","published":"2026-10-23T12:21:57.421Z","modified":"2026-10-30T12:41:12.630Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"baf8532a147d5b76681ce040e2c8f25a3f0e718d","status":"affected","lessThan":"b90f33ad9179c69658342323382bfed158f88cb9","versionType":"git"},{"version":"baf8532a147d5b76681ce040e2c8f25a3f0e718d","status":"affected","lessThan":"1c23da6f148089d59b3d3e9b2e7f1eefa927cab9","versionType":"git"},{"version":"baf8532a147d5b76681ce040e2c8f25a3f0e718d","status":"affected","lessThan":"a2f1aa3341f185ca52103dc4908647570b208855","versionType":"git"},{"version":"baf8532a147d5b76681ce040e2c8f25a3f0e718d","status":"affected","lessThan":"c3ab92542475d59ae685cbb294e70ca4d0ba38e9","versionType":"git"},{"version":"baf8532a147d5b76681ce040e2c8f25a3f0e718d","status":"affected","lessThan":"810580cf60edc75c9891c2de3225e4cda78e4d9f","versionType":"git"},{"version":"baf8532a147d5b76681ce040e2c8f25a3f0e718d","status":"affected","lessThan":"f2795c50144d528dabc2cf2fd53c0f0c63a823a1","versionType":"git"},{"version":"baf8532a147d5b76681ce040e2c8f25a3f0e718d","status":"affected","lessThan":"3af81770e2011c6ac7bb597a4af2e4f3591f928c","versionType":"git"},{"version":"baf8532a147d5b76681ce040e2c8f25a3f0e718d","status":"affected","lessThan":"aa0a37b5024d921e96ac4f8f487c8bfbf1f1a582","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99039"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"2.6.25","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.25","versionType":"semver"},{"version":"5.10.273","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.224","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.113","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.11","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99039"}],"remediation":[],"references":["https://git.kernel.org/stable/c/b90f33ad9179c69658342323382bfed158f88cb9","https://git.kernel.org/stable/c/1c23da6f148089d59b3d3e9b2e7f1eefa927cab9","https://git.kernel.org/stable/c/a2f1aa3341f185ca52103dc4908647570b208855","https://git.kernel.org/stable/c/c3ab92542475d59ae685cbb294e70ca4d0ba38e9","https://git.kernel.org/stable/c/810580cf60edc75c9891c2de3225e4cda78e4d9f","https://git.kernel.org/stable/c/f2795c50144d528dabc2cf2fd53c0f0c63a823a1","https://git.kernel.org/stable/c/3af81770e2011c6ac7bb597a4af2e4f3591f928c","https://git.kernel.org/stable/c/aa0a37b5024d921e96ac4f8f487c8bfbf1f1a582"],"sources":[{"name":"CVE","id":"CVE-2026-99039","modified":"2026-10-30T12:41:12.630Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99039"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-10-30T13:11:15.876Z","kev":{"status":"not-listed","checkedAt":"2026-11-15T00:25:34.584Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}