Linux Kernel MOXA ART MMC Driver Return Value Check Vulnerability

Vulnerability

A vulnerability exists in the Linux kernel's MOXA ART SD/MMC driver, specifically in the return value handling of the 'mmc_add_host()' function. If the return value is ignored, it can lead to a memory leak from 'mmc_alloc_host()', causing a kernel crash when an unadded device is deleted during the removal process. This issue has been addressed by modifying the code to properly check the return value and handle errors appropriately.

Impact

Failure to check the return value of 'mmc_add_host()' can result in a memory leak and a subsequent kernel crash.

Reproduction

The vulnerability can be reproduced by loading the MOXA ART SD/MMC driver and then triggering a device removal process. If 'mmc_add_host()' fails and its return value is not properly checked, the allocated memory will not be freed, leading to a crash when the removal process tries to delete the unadded device.

Remediation

Users can update to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched version are available on the Linux Kernel Archive.

Added: Sep 15, 2025, 8:14 PM
Updated: Sep 15, 2025, 8:14 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
0.5
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.