9.8
CRITICAL
CVE-2021-47548
Hisilicon HNS Ethernet Array Overflow Vulnerability
Description

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.

INFO

Published Date :

May 24, 2024, 3:15 p.m.

Last Modified :

April 1, 2025, 6:42 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
Affected Products

The following products are affected by CVE-2021-47548 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-47548 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-47548 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Apr. 01, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:5.16:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.10 up to (excluding) 4.14.257 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.7 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.164 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.15 up to (excluding) 4.19.220 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.84 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 4.9.292
    Added Reference Type CVE: https://git.kernel.org/stable/c/22519eff7df2d88adcc2568d86046ce1e2b52803 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/22519eff7df2d88adcc2568d86046ce1e2b52803 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/948968f8747650447c8f21c9fdba0e1973be040b Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/948968f8747650447c8f21c9fdba0e1973be040b Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/99bb25cb6753beaf2c2bc37927c2ecc0ceff3f6d Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/99bb25cb6753beaf2c2bc37927c2ecc0ceff3f6d Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/a66998e0fbf213d47d02813b9679426129d0d114 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/a66998e0fbf213d47d02813b9679426129d0d114 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/abbd5faa0748d0aa95d5191d56ff7a17a6275bd1 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/abbd5faa0748d0aa95d5191d56ff7a17a6275bd1 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/dd07f8971b81ad98cc754b179b331b57f35aa1ff Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/dd07f8971b81ad98cc754b179b331b57f35aa1ff Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/fc7ffa7f10b9454a86369405d9814bf141b30627 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/fc7ffa7f10b9454a86369405d9814bf141b30627 Types: Patch
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/22519eff7df2d88adcc2568d86046ce1e2b52803
    Added Reference https://git.kernel.org/stable/c/948968f8747650447c8f21c9fdba0e1973be040b
    Added Reference https://git.kernel.org/stable/c/99bb25cb6753beaf2c2bc37927c2ecc0ceff3f6d
    Added Reference https://git.kernel.org/stable/c/a66998e0fbf213d47d02813b9679426129d0d114
    Added Reference https://git.kernel.org/stable/c/abbd5faa0748d0aa95d5191d56ff7a17a6275bd1
    Added Reference https://git.kernel.org/stable/c/dd07f8971b81ad98cc754b179b331b57f35aa1ff
    Added Reference https://git.kernel.org/stable/c/fc7ffa7f10b9454a86369405d9814bf141b30627
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jul. 03, 2024

    Action Type Old Value New Value
    Added CWE CISA-ADP CWE-129
    Added CVSS V3.1 CISA-ADP AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 28, 2024

    Action Type Old Value New Value
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 24, 2024

    Action Type Old Value New Value
    Added Description 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.
    Added Reference kernel.org https://git.kernel.org/stable/c/948968f8747650447c8f21c9fdba0e1973be040b [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/abbd5faa0748d0aa95d5191d56ff7a17a6275bd1 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/dd07f8971b81ad98cc754b179b331b57f35aa1ff [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/99bb25cb6753beaf2c2bc37927c2ecc0ceff3f6d [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/22519eff7df2d88adcc2568d86046ce1e2b52803 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/fc7ffa7f10b9454a86369405d9814bf141b30627 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/a66998e0fbf213d47d02813b9679426129d0d114 [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-47548 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-47548 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: May. 14, 2025 10:02