CVE-2023-3141
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free flaw was discovered in r592_remove in drivers/memstick/host/r592.c in media access in the Linux Kernel. The vulnerability was discovered in March 2023 and affects Linux kernel versions prior to 6.4-rc1. The issue occurs in the Ricoh R5C592 MemoryStick card reader driver during module unload operations (Kernel Git, NVD).

Technical details

The vulnerability stems from a race condition in the r592remove function. When the module is removed, there may be an unfinished work due to a timer function (r592detecttimer) being invoked by modtimer in the r592_irq function. The race condition occurs between the timer function execution and module cleanup, potentially leading to use-after-free of the host structure. The vulnerability has been assigned a CVSS v3.1 base score of 7.1 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H (NVD).

Impact

This flaw allows a local attacker to crash the system at device disconnect, possibly leading to a kernel information leak. The vulnerability requires local access and can result in high confidentiality and availability impacts (NVD, NetApp Advisory).

Mitigation and workarounds

The issue has been fixed by adding deltimersync(&dev->detecttimer) before cleanup in r592remove function. This ensures that any pending timer operations are completed before proceeding with the module cleanup. The fix was implemented in Linux kernel version 6.4-rc1 (Kernel Git, Debian LTS).

Community reactions

Various Linux distributions and vendors have responded to this vulnerability by releasing security updates. Debian included fixes in multiple versions including 4.19.289-1 and 5.10.197-1~deb10u1. NetApp has assessed the vulnerability's impact on their products and provided detailed advisories for affected systems (Debian LTS, NetApp Advisory).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-iot
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-devel-matched
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-hwe
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management