CVE-2021-47580
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47580 affects the Linux kernel's SCSI debug module. The vulnerability was discovered in the scsidebug driver where using mint() with type "int" instead of "u32" leads to stack out-of-bounds access. The issue was disclosed in June 2024 and affects the Linux kernel SCSI subsystem (NVD).

Technical details

The vulnerability occurs due to improper type usage in mint() function calls within the scsidebug driver. When using type "int", values get sign extended, causing the larger value to be used and resulting in stack out-of-bounds access. This manifests as a KASAN (Kernel Address Sanitizer) reported stack-out-of-bounds error in memcpy operations (Kernel Commit).

Impact

The vulnerability can lead to stack buffer overflow conditions in the Linux kernel's SCSI subsystem. According to CISA's assessment, this vulnerability has a CVSS v3.1 Base Score of 6.6 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L (NVD).

Mitigation and workarounds

The fix involves changing min_t() to use type "u32" instead of "int" in the affected code paths. This has been patched in the Linux kernel through multiple commits. Users should update to a patched kernel version that includes these fixes (Kernel Commit).

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