CVE Database›CVE-2021-47580

CVE-2021-47580

kernel: scsi: scsi_debug: Fix type in min_t to avoid stack OOB

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · June 19, 2024

Updated · November 2, 2026

Description

A vulnerability was found in the Linux kernel's SCSI driver, in sg_copy_buffer() function, where an incorrect type in the min_t() macro can lead to a stack out-of-bounds condition. This occurs due to sign extension of larger values, which may result in memory corruption or DoS.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-843 · Access of Resource Using Incompatible Type