Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98227 Overview
CVE-2026-98227 is a memory leak vulnerability in the Linux kernel's memstick subsystem, specifically within the ms_block driver that handles Sony Memory Stick storage cards. The flaw resides in the card removal path, where the per-card ordered workqueue msb->io_queue is never freed. Each insert and remove cycle leaks a workqueue and its backing kworker thread, progressively exhausting kernel memory on systems that cycle Memory Stick media.
Critical Impact
Repeated Memory Stick card insert and remove cycles leak kernel workqueues and kworker threads, leading to kernel memory exhaustion and potential denial of service on affected systems.
Affected Products
- Linux kernel versions containing the drivers/memstick/core/ms_block.c driver prior to the fix
- Distributions shipping stable kernels that have not backported the referenced commits
- Systems exposing Memory Stick card readers via the memstick subsystem
Discovery Timeline
- 2026-10-06 - CVE-2026-98227 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98227
Vulnerability Analysis
The ms_block driver manages block I/O for Sony Memory Stick cards. During driver initialization, msb_init_disk() allocates a per-card ordered workqueue via alloc_ordered_workqueue() and stores it in msb->io_queue. This workqueue serializes I/O operations submitted to the card.
The cleanup logic is incomplete. destroy_workqueue() is invoked only along the msb_init_disk() error path. When a card is physically removed, msb_remove() executes without destroying the workqueue. msb_stop() merely flushes outstanding work, and neither msb_data_clear() nor put_disk() release the queue.
The result is a resource leak classified as [CWE-401] Missing Release of Memory after Effective Lifetime. Each full insert and remove cycle leaves one workqueue structure and one kworker kernel thread stranded. On systems that repeatedly cycle cards, such as kiosks or test rigs, kernel memory consumption grows unbounded.
Root Cause
The root cause is an asymmetric allocation and deallocation pattern. alloc_ordered_workqueue() is paired with destroy_workqueue() only on the init failure path. The removal handler was never updated to perform the matching teardown after the disk is unregistered and the queue is drained.
Attack Vector
Exploitation requires physical access to the Memory Stick card reader or an automated mechanism that triggers repeated hotplug events. A local attacker with the ability to insert and remove cards, or to simulate hotplug events through a vulnerable USB-attached reader, can drive the leak until kernel memory is exhausted. No code execution primitive is produced by this flaw.
The vulnerability is described in prose because the fix is a straightforward addition of destroy_workqueue(msb->io_queue) in msb_remove() after the disk is removed and the queue is drained. See the referenced kernel git commits for the exact patch.
Detection Methods for CVE-2026-98227
Indicators of Compromise
- Steadily increasing count of kworker threads associated with msb or events_unbound without a matching decrease after card removal
- Growing Slab and KernelStack values in /proc/meminfo on systems that use Memory Stick card readers
- Repeated memstick subsystem hotplug events logged in dmesg without a corresponding resource teardown
Detection Strategies
- Audit kernel versions on endpoints with Memory Stick hardware against the fixed stable kernel commits listed in the NVD references
- Monitor long-running kernel threads using ps -eLf | grep kworker and correlate growth with udev memstick events
- Track workqueue counts over time via /sys/kernel/debug/workqueue/ on hosts where debugfs is accessible
Monitoring Recommendations
- Alert on sustained growth of kernel slab allocations on systems that handle removable media
- Baseline the number of kworker threads at boot and compare periodically to detect leaks
- Collect dmesg and udev telemetry from workstations and kiosks that use card readers for centralized review
How to Mitigate CVE-2026-98227
Immediate Actions Required
- Update affected systems to a Linux stable kernel that includes the referenced memstick fix commits
- On systems where kernel updates are deferred, blacklist the ms_block module if Memory Stick support is not required
- Restrict physical access to card reader hardware on shared or public-facing endpoints
Patch Information
The fix destroys the per-card workqueue in msb_remove() after the disk has been removed and the queue drained. Stable tree commits are available at Kernel Git Commit 9a2e7cd, Kernel Git Commit 0ff7951, Kernel Git Commit 19c3da6, Kernel Git Commit 6611f78, Kernel Git Commit 90af7fd, and Kernel Git Commit f222bbc. Apply the appropriate commit for your stable kernel branch.
Workarounds
- Unload the ms_block kernel module with modprobe -r ms_block on systems that do not require Memory Stick support
- Add blacklist ms_block to /etc/modprobe.d/ to prevent automatic loading at boot
- Reboot systems periodically to reclaim leaked kernel memory until a patched kernel is deployed
# Blacklist the ms_block driver until a patched kernel is installed
echo 'blacklist ms_block' | sudo tee /etc/modprobe.d/blacklist-msblock.conf
sudo modprobe -r ms_block
sudo update-initramfs -u
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

