---
title: "CVE-2021-47580"
canonical_url: "https://pkgseek.com/security/CVE-2021-47580"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2021-47580

In the Linux kernel, the following vulnerability has been resolved: scsi: scsi_debug: Fix type in min_t to avoid stack OOB Change min_t() to use type "u32" instead of type "int" to avoid stack out of bounds. With min_t() type "int" the values get sign extended and the larger value gets used causing stack out of bounds. BUG: KASAN: stack-out-of-bounds in memcpy include/linux/fortify-string.h:191 \[inline\] BUG: KASAN: stack-out-of-bounds in sg_copy_buffer+0x1de/0x240 lib/scatterlist.c:976 Read of size 127 at addr ffff888072607128 by task syz-executor.7/18707 CPU: 1 PID: 18707 Comm: syz-executor.7…

CVE-2021-47580 严重级别为 HIGH，共索引 28 条受影响软件包构建记录，涉及 2 个发行版。

- **级别 / 评分**: HIGH
- **受影响构建数**: 28
- **涉及发行版**: 2
- **已标明修复版本发行版**: Red Hat Enterprise Linux

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Red Hat Enterprise Linux | 9.8 | bpftool | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-abi-stablelists | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-core | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug-core | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug-devel | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug-devel-matched | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug-modules | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug-modules-extra | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-devel | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-devel-matched | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-doc | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-headers | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-modules | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-modules-extra | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-tools | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | kernel-tools-libs | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | perf | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | python3-perf | 5.14.0-70.30.1.el9_0 | 5.14.0-162.6.1.el9_1 |
| Ubuntu | jammy | linux-buildinfo-5.17.0-1003-oem | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-headers-5.17.0-1003-oem | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-image-unsigned-5.17.0-1003-oem | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-modules-5.17.0-1003-oem | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-oem-5.17-headers-5.17.0-1003 | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-oem-5.17-tools-5.17.0-1003 | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-oem-5.17-tools-host | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-tools-5.17.0-1003-oem | 5.17.0-1003.3 | — |
