Skip to main content

In the Linux kernel, the following vulnerability has been resolved: memstick: core: wait for request completion before freeing card In… (CVE-2026-99039)

0
Medium
Published: 10/23/2026 (10/23/2026, 15:31:36 UTC)
Source: GCVE Database

Description

A use-after-free vulnerability in the Linux kernel's memstick subsystem was resolved by ensuring that asynchronous requests complete before freeing the card structure. The issue occurred because wait_for_completion_timeout() was used, which could time out and free memory while requests were still in flight, leading to a kernel slab-use-after-free write.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/23/2026, 18:51:40 UTC

Technical Analysis

The Linux kernel memstick subsystem used wait_for_completion_timeout() in memstick_alloc_card() and memstick_set_rw_addr() to wait for device identification and address configuration requests. If the timeout expired, memstick_alloc_card() would free the memstick_dev structure, but asynchronous requests could still be running in the host controller driver (e.g., rtsx_usb_ms). When these requests completed, they wrote to memory that had already been freed, causing a KASAN slab-use-after-free error. The fix replaced wait_for_completion_timeout() with wait_for_completion() to ensure the card structure is never freed while asynchronous requests are active.

Potential Impact

This vulnerability could lead to a kernel use-after-free condition, potentially causing system instability or crashes. The issue arises from asynchronous requests writing to freed memory, which may result in memory corruption or kernel panics. There is no indication of known exploits in the wild.

Mitigation Recommendations

The vulnerability has been resolved by replacing wait_for_completion_timeout() with wait_for_completion() in the affected functions, ensuring that the card structure is not freed while asynchronous requests are still in flight. Users should update to the fixed Linux kernel version containing this patch. No additional mitigation actions are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-r8cv-6pg4-74wg
Osv Schema Version
1.4.0
Aliases
["CVE-2026-99039"]

Threat ID: 6adbaaced73cc49347b20518

Added to database: 10/23/2026, 18:43:26 UTC

Last enriched: 10/23/2026, 18:51:40 UTC

Last updated: 10/24/2026, 00:25:17 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses