Skip to content
Fencer Vulns
critical 9.8

CVE-2021-47548 in the critical feed json

ethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port()

published 2024-05-24 2 y ago modified 2026-06-17 4 mo ago also EUVD-2021-34550

cvss
9.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.4%
EPSS 1.4% chance of exploitation in 30 days, percentile 71%
public exploits
0
none known

Summary

In the Linux kernel, the following vulnerability has been resolved:

ethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port()

The if statement: if (port >= DSAF_GE_NUM) return;

limits the value of port less than DSAF_GE_NUM (i.e., 8). However, if the value of port is 6 or 7, an array overflow could occur: port_rst_off = dsaf_dev->mac_cb[port]->port_rst_off;

because the length of dsaf_dev->mac_cb is DSAF_MAX_PORT_NUM (i.e., 6).

To fix this possible array overflow, we first check port and if it is greater than or equal to DSAF_MAX_PORT_NUM, the function returns.

Patch / fix

  • Linux Linux 4.9.292, 4.14.257, 4.19.220, 5.4.164, 5.10.84, 5.15.7, 5.16
  • linux linux_kernel 99bb25cb6753, 22519eff7df2, 948968f87476, a66998e0fbf2, abbd5faa0748, dd07f8971b81, fc7ffa7f10b9
  • linux Debian 14, Debian 13, Debian 12 5.15.15-1

debian advisories DEBIAN-CVE-2021-47548

  • linux Ubuntu 18.04 LTS 4.15.0-169.177
  • linux Ubuntu 20.04 LTS 5.4.0-100.113
  • linux-aws Ubuntu 18.04 LTS 4.15.0-1121.129
  • linux-aws Ubuntu 20.04 LTS 5.4.0-1066.69
  • linux-gcp Ubuntu 20.04 LTS 5.4.0-1065.69
  • linux-ibm Ubuntu 20.04 LTS 5.4.0-1015.16
  • linux-kvm Ubuntu 18.04 LTS 4.15.0-1107.109
  • linux-kvm Ubuntu 20.04 LTS 5.4.0-1056.58

ubuntu advisories UBUNTU-CVE-2021-47548

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel-rt RHEL 8 4.18.0-553.16.1.rt7.357.el8_10
  • kernel-rt-kvm RHEL 8 4.18.0-553.16.1.rt7.357.el8_10
  • kernel-rt-core RHEL 8 4.18.0-553.16.1.rt7.357.el8_10
  • kernel-rt-modules RHEL 8 4.18.0-553.16.1.rt7.357.el8_10
  • kernel-rt-debug-kvm RHEL 8 4.18.0-553.16.1.rt7.357.el8_10
  • kernel-rt-debug-core RHEL 8 4.18.0-553.16.1.rt7.357.el8_10
  • kernel-rt-debug-modules RHEL 8 4.18.0-553.16.1.rt7.357.el8_10
  • kernel-rt-modules-extra RHEL 8 4.18.0-553.16.1.rt7.357.el8_10

red hat advisories RHSA-2024:5102RHSA-2024:5101RHSA-2024:4583RHSA-2024:4554RHSA-2024:4533RHSA-2024:4902

  • dtb-aarch64 openSUSE Leap 15.5 5.14.21-150500.55.68.1
  • kernel-64kb SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.68.1
  • kernel-syms SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.68.1
  • kernel-obs-qa openSUSE Leap 15.5 5.14.21-150500.55.68.1
  • kernel-source SLE Module for Development Tools 15 SP5, SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.68.1
  • kernel-default SLE Workstation Extension 15 SP5, SLE Module for Legacy 15 SP5, SLE Module for Basesystem 15 SP5 +4 more 5.14.21-150500.55.68.1
  • kernel-kvmsmall openSUSE Leap 15.5 5.14.21-150500.55.68.1
  • kernel-zfcpdump SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.68.1

suse advisories SUSE-SU-2024:2190-1SUSE-SU-2024:2184-1SUSE-SU-2024:2019-1SUSE-SU-2024:2008-1SUSE-SU-2024:1983-1SUSE-SU-2024:1979-1

  • kernel AlmaLinux 8 4.18.0-553.16.1.el8_10
  • perf AlmaLinux 8 4.18.0-553.16.1.el8_10
  • bpftool AlmaLinux 8 4.18.0-553.16.1.el8_10
  • kernel-core AlmaLinux 8 4.18.0-553.16.1.el8_10
  • kernel-tools AlmaLinux 8 4.18.0-553.16.1.el8_10
  • python3-perf AlmaLinux 8 4.18.0-553.16.1.el8_10
  • kernel-modules AlmaLinux 8 4.18.0-553.16.1.el8_10
  • kernel-zfcpdump AlmaLinux 8 4.18.0-553.16.1.el8_10

almalinux advisories ALSA-2024:5101ALSA-2024:5102ALSA-2024:4583

  • kernel Rocky Linux 8 4.18.0-553.16.1.el8_10.cloud.0.1
  • kernel-rt Rocky Linux 8 4.18.0-553.16.1.rt7.357.el8_10
  • kernel Rocky Linux 8 4.18.0-553.16.1.el8_10
  • kernel Rocky Linux 9 5.14.0-427.26.1.el9_4

rocky linux advisories RXSA-2024:5101RLSA-2024:5102RLSA-2024:5101RLSA-2024:4583

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-47548 updated cvss 6.0

kernel: ethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port()

  • Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +12 more
    affected: workaround, no fix available
  • Red Hat CodeReady Linux Builder EUS (v.8.8) kernel-debuginfo-common-x86_64 4.18.0-477.64.1.el8_8, kernel-debuginfo-common-aarch64 4.18.0-477.64.1.el8_8, kernel-debuginfo-common-ppc64le 4.18.0-477.64.1.el8_8
    fixed: vendor fix RHSA-2024:4740
  • Red Hat CodeReady Linux Builder EUS (v.9.2) kernel-debuginfo-common-s390x 5.14.0-284.73.1.el9_2, kernel-debuginfo-common-x86_64 5.14.0-284.73.1.el9_2, kernel-debuginfo-common-aarch64 5.14.0-284.73.1.el9_2, kernel-debuginfo-common-ppc64le 5.14.0-284.73.1.el9_2
    fixed: vendor fix RHSA-2024:4533
  • Red Hat Enterprise Linux AppStream (v. 9) rv 5.14.0-427.26.1.el9_4, perf 5.14.0-427.26.1.el9_4, rtla 5.14.0-427.26.1.el9_4, kernel-devel-matched 5.14.0-427.26.1.el9_4, kernel-64k-devel-matched 5.14.0-427.26.1.el9_4, kernel-debug-devel-matched 5.14.0-427.26.1.el9_4, +6 more
    fixed: vendor fix RHSA-2024:4583
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) perf 5.14.0-284.73.1.el9_2, rtla 5.14.0-284.73.1.el9_2, kernel-devel-matched 5.14.0-284.73.1.el9_2, kernel-64k-devel-matched 5.14.0-284.73.1.el9_2, kernel-debug-devel-matched 5.14.0-284.73.1.el9_2, kernel-debuginfo-common-s390x 5.14.0-284.73.1.el9_2, +5 more
    fixed: vendor fix RHSA-2024:4533
  • Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-553.16.1.el8_10, kernel 4.18.0-553.16.1.el8_10, bpftool 4.18.0-553.16.1.el8_10, kernel-core 4.18.0-553.16.1.el8_10, kernel-tools 4.18.0-553.16.1.el8_10, python3-perf 4.18.0-553.16.1.el8_10, +15 more
    fixed: vendor fix RHSA-2024:5101
  • Red Hat Enterprise Linux BaseOS (v. 9) bpftool 7.3.0-427.26.1.el9_4, kernel 5.14.0-427.26.1.el9_4, kernel-64k 5.14.0-427.26.1.el9_4, kernel-core 5.14.0-427.26.1.el9_4, kernel-tools 5.14.0-427.26.1.el9_4, python3-perf 5.14.0-427.26.1.el9_4, +28 more
    fixed: vendor fix RHSA-2024:4583
  • Red Hat Enterprise Linux BaseOS AUS (v.8.6) perf 4.18.0-372.113.1.el8_6, kernel 4.18.0-372.113.1.el8_6, bpftool 4.18.0-372.113.1.el8_6, kernel-core 4.18.0-372.113.1.el8_6, kernel-tools 4.18.0-372.113.1.el8_6, python3-perf 4.18.0-372.113.1.el8_6, +8 more Red Hat Enterprise Linux BaseOS E4S (v.8.6) perf 4.18.0-372.113.1.el8_6, kernel 4.18.0-372.113.1.el8_6, bpftool 4.18.0-372.113.1.el8_6, kernel-core 4.18.0-372.113.1.el8_6, kernel-tools 4.18.0-372.113.1.el8_6, python3-perf 4.18.0-372.113.1.el8_6, +15 more
    fixed: vendor fix RHSA-2024:4902
show 11 more
  • Red Hat Enterprise Linux BaseOS EUS (v.8.8) perf 4.18.0-477.64.1.el8_8, kernel 4.18.0-477.64.1.el8_8, bpftool 4.18.0-477.64.1.el8_8, kernel-core 4.18.0-477.64.1.el8_8, kernel-tools 4.18.0-477.64.1.el8_8, python3-perf 4.18.0-477.64.1.el8_8, +15 more
    fixed: vendor fix RHSA-2024:4740
  • Red Hat Enterprise Linux BaseOS EUS (v.9.2) bpftool 7.0.0-284.73.1.el9_2, kernel 5.14.0-284.73.1.el9_2, kernel-64k 5.14.0-284.73.1.el9_2, kernel-core 5.14.0-284.73.1.el9_2, kernel-tools 5.14.0-284.73.1.el9_2, python3-perf 5.14.0-284.73.1.el9_2, +28 more
    fixed: vendor fix RHSA-2024:4533
  • Red Hat Enterprise Linux BaseOS TUS (v.8.6) perf 4.18.0-372.113.1.el8_6, kernel 4.18.0-372.113.1.el8_6, bpftool 4.18.0-372.113.1.el8_6, kernel-core 4.18.0-372.113.1.el8_6, kernel-tools 4.18.0-372.113.1.el8_6, python3-perf 4.18.0-372.113.1.el8_6, +8 more
    fixed: vendor fix RHSA-2024:4902
  • Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-553.16.1.el8_10, kernel-debuginfo-common-aarch64 4.18.0-553.16.1.el8_10, kernel-debuginfo-common-ppc64le 4.18.0-553.16.1.el8_10
    fixed: vendor fix RHSA-2024:5101
  • Red Hat Enterprise Linux CRB (v. 9) libperf 5.14.0-427.26.1.el9_4, kernel-debuginfo-common-s390x 5.14.0-427.26.1.el9_4, kernel-debuginfo-common-x86_64 5.14.0-427.26.1.el9_4, kernel-debuginfo-common-aarch64 5.14.0-427.26.1.el9_4, kernel-debuginfo-common-ppc64le 5.14.0-427.26.1.el9_4
    fixed: vendor fix RHSA-2024:4583
  • Red Hat Enterprise Linux NFV (v. 8) kernel-rt 4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-kvm 4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-core 4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-modules 4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-debug-kvm 4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-debug-core 4.18.0-553.16.1.rt7.357.el8_10, +4 more
    fixed: vendor fix RHSA-2024:5102
  • Red Hat Enterprise Linux NFV (v. 9) kernel-rt 5.14.0-427.26.1.el9_4, kernel-rt-kvm 5.14.0-427.26.1.el9_4, kernel-rt-core 5.14.0-427.26.1.el9_4, kernel-rt-modules 5.14.0-427.26.1.el9_4, kernel-rt-debug-kvm 5.14.0-427.26.1.el9_4, kernel-rt-debug-core 5.14.0-427.26.1.el9_4, +6 more
    fixed: vendor fix RHSA-2024:4583
  • Red Hat Enterprise Linux Real Time EUS (v.9.2) kernel-rt 5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-core 5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-modules 5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-debug-core 5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-modules-core 5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-debug-modules 5.14.0-284.73.1.rt14.358.el9_2, +4 more Red Hat Enterprise Linux Real Time for NFV EUS (v.9.2) kernel-rt 5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-kvm 5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-core 5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-modules 5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-debug-kvm 5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-debug-core 5.14.0-284.73.1.rt14.358.el9_2, +6 more
    fixed: vendor fix RHSA-2024:4554
  • Red Hat Enterprise Linux RT (v. 8) kernel-rt 4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-core 4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-modules 4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-debug-core 4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-debug-modules 4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-modules-extra 4.18.0-553.16.1.rt7.357.el8_10, +2 more
    fixed: vendor fix RHSA-2024:5102
  • Red Hat Enterprise Linux RT (v. 9) kernel-rt 5.14.0-427.26.1.el9_4, kernel-rt-core 5.14.0-427.26.1.el9_4, kernel-rt-modules 5.14.0-427.26.1.el9_4, kernel-rt-debug-core 5.14.0-427.26.1.el9_4, kernel-rt-modules-core 5.14.0-427.26.1.el9_4, kernel-rt-debug-modules 5.14.0-427.26.1.el9_4, +4 more
    fixed: vendor fix RHSA-2024:4583
  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux AppStream EUS (v.9.2) kernel-doc 5.14.0-284.73.1.el9_2
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
total
Assessed
2 y ago

Exploit prediction

1.36% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

  • Linux Linux
  • linux linux_kernel

Classification

Weakness
  • CWE-129 Improper Validation of Array Index
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.