A use-after-free vulnerability was found and fixed in the Linux kernel's RapidIO driver, specifically in the mport_mm_close() function. The flaw occurs when an application creates and then unmaps an mmap mapping via the RapidIO character device, leading to a reference drop and subsequent use of freed memory. The issue was caused by unlocking a mutex after the underlying memory was freed. The fix involves caching a pointer before freeing memory to avoid accessing freed memory.