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

# CVE-2021-47497

In the Linux kernel, the following vulnerability has been resolved: nvmem: Fix shift-out-of-bound (UBSAN) with byte size cells If a cell has 'nbits' equal to a multiple of BITS_PER_BYTE the logic *p &= GENMASK((cell-&gt;nbits%BITS_PER_BYTE) - 1, 0); will become undefined behavior because nbits modulo BITS_PER_BYTE is 0, and we subtract one from that making a large number that is then shifted more than the number of bits that fit into an unsigned long. UBSAN reports this problem: UBSAN: shift-out-of-bounds in drivers/nvmem/core.c:1386:8 shift exponent 64 is too large for 64-bit type 'unsigned long…

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

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

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Oracle Linux | 8 | bpftool | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-abi-stablelists | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-core | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-cross-headers | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-debug | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-debug-core | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-debug-devel | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-debug-modules | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-debug-modules-extra | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-devel | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-doc | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-headers | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-modules | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-modules-extra | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-tools | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | kernel-tools-libs | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | perf | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 8 | python3-perf | 4.18.0-553.16.1.el8_10 | 4.18.0-553.22.1.el8_10 |
| Oracle Linux | 9 | bpftool | 7.3.0-427.42.1.el9_4 | 7.4.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-abi-stablelists | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-core | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-debug | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-debug-core | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-debug-devel | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-debug-devel-matched | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-debug-modules | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-debug-modules-core | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-debug-modules-extra | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-debug-uki-virt | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-devel | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-devel-matched | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-doc | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-headers | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-modules | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-modules-core | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-modules-extra | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-tools | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-tools-libs | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | kernel-uki-virt | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | perf | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | python3-perf | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | rtla | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Oracle Linux | 9 | rv | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | bpftool | 7.3.0-427.42.1.el9_4 | 7.4.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-abi-stablelists | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-core | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug-core | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug-devel | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug-devel-matched | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug-modules | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug-modules-core | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug-modules-extra | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-debug-uki-virt | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-devel | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-devel-matched | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-doc | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-headers | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-modules | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-modules-core | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-modules-extra | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-tools | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-tools-libs | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | kernel-uki-virt | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | perf | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | python3-perf | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | rtla | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Red Hat Enterprise Linux | 9.8 | rv | 5.14.0-427.42.1.el9_4 | 5.14.0-503.11.1.el9_5 |
| Ubuntu | focal | linux-aws-headers-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1061.64 |
| Ubuntu | focal | linux-aws-tools-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1061.64 |
| Ubuntu | focal | linux-azure-cloud-tools-5.4.0-1010 | 5.4.0-1010.10 | 5.4.0-1065.68 |
| Ubuntu | focal | linux-azure-headers-5.4.0-1010 | 5.4.0-1010.10 | 5.4.0-1065.68 |
| Ubuntu | focal | linux-azure-tools-5.4.0-1010 | 5.4.0-1010.10 | 5.4.0-1065.68 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1061.64 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1059.63 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1009-kvm | 5.4.0-1009.9 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1059.63 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1065.68 |
| Ubuntu | focal | linux-buildinfo-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-92.103 |
| Ubuntu | focal | linux-buildinfo-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-92.103 |
| Ubuntu | focal | linux-buildinfo-5.6.0-1007-oem | 5.6.0-1007.7 | — |
| Ubuntu | focal | linux-cloud-tools-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1065.68 |
| Ubuntu | focal | linux-cloud-tools-5.4.0-26 | 5.4.0-26.30 | 5.4.0-92.103 |
| Ubuntu | focal | linux-cloud-tools-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-92.103 |
| Ubuntu | focal | linux-cloud-tools-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-92.103 |
| Ubuntu | focal | linux-cloud-tools-common | 5.4.0-26.30 | 5.4.0-92.103 |
| Ubuntu | focal | linux-doc | 5.4.0-26.30 | 5.4.0-92.103 |
| Ubuntu | focal | linux-gcp-headers-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1059.63 |
| Ubuntu | focal | linux-gcp-tools-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1059.63 |
| Ubuntu | focal | linux-headers-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1061.64 |
| Ubuntu | focal | linux-headers-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1059.63 |
| Ubuntu | focal | linux-headers-5.4.0-1009-kvm | 5.4.0-1009.9 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-headers-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1059.63 |
| Ubuntu | focal | linux-headers-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1065.68 |
| Ubuntu | focal | linux-headers-5.4.0-26 | 5.4.0-26.30 | 5.4.0-92.103 |
| Ubuntu | focal | linux-headers-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-92.103 |
| Ubuntu | focal | linux-headers-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-92.103 |

_Showing 100 of 151 total affected builds._
