Skip to main content
No exploitation reportedFix available

CVE-2021-47548

No exploitation reported by the sources we read.

  • Published2024-05-24
  • Fixed infc7ffa7f10b9 · dd07f8971b81 · abbd5faa0748 · a66998e0fbf2 · 948968f87476 · 22519eff7df2
  • WeaknessCWE-129

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-05-2415:15CVE publishedNVD

Versions per branch

CISA-ADP · NVD
Linux linux kernel
BranchAffectedFixed in
1+≥ 1da177e4c3f4, < fc7ffa7f10b9fc7ffa7f10b9
1+≥ 1da177e4c3f4, < dd07f8971b81dd07f8971b81
1+≥ 1da177e4c3f4, < abbd5faa0748abbd5faa0748
1+≥ 1da177e4c3f4, < a66998e0fbf2a66998e0fbf2
948968.x≥ 1da177e4c3f4, < 948968f87476948968f87476
22519.x≥ 1da177e4c3f4, < 22519eff7df222519eff7df2
99.x≥ 1da177e4c3f4, < 99bb25cb675399bb25cb6753
5.x≥ 5.11, < 5.15.75.15.7
5.x≥ 5.5, < 5.10.845.10.84
5.4≥ 4.20, < 5.4.1645.4.164
4.x≥ 4.15, < 4.19.2204.19.220
4.x≥ 4.10, < 4.14.2574.14.257

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As Linux, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Linuxother versions: not affected

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

    Affected
    • ≥ 850bfa3b78ea8849fef78ed74f5f2ccf947db0ca, < 948968f8747650447c8f21c9fdba0e1973be040bfixed in 948968f8747650447c8f21c9fdba0e1973be040bgit
    • ≥ 850bfa3b78ea8849fef78ed74f5f2ccf947db0ca, < abbd5faa0748d0aa95d5191d56ff7a17a6275bd1fixed in abbd5faa0748d0aa95d5191d56ff7a17a6275bd1git
    • ≥ 850bfa3b78ea8849fef78ed74f5f2ccf947db0ca, < dd07f8971b81ad98cc754b179b331b57f35aa1fffixed in dd07f8971b81ad98cc754b179b331b57f35aa1ffgit
    • ≥ 850bfa3b78ea8849fef78ed74f5f2ccf947db0ca, < 99bb25cb6753beaf2c2bc37927c2ecc0ceff3f6dfixed in 99bb25cb6753beaf2c2bc37927c2ecc0ceff3f6dgit
    • ≥ 850bfa3b78ea8849fef78ed74f5f2ccf947db0ca, < 22519eff7df2d88adcc2568d86046ce1e2b52803fixed in 22519eff7df2d88adcc2568d86046ce1e2b52803git
    • ≥ 850bfa3b78ea8849fef78ed74f5f2ccf947db0ca, < fc7ffa7f10b9454a86369405d9814bf141b30627fixed in fc7ffa7f10b9454a86369405d9814bf141b30627git
    • ≥ 850bfa3b78ea8849fef78ed74f5f2ccf947db0ca, < a66998e0fbf213d47d02813b9679426129d0d114fixed in a66998e0fbf213d47d02813b9679426129d0d114git
  • Linuxother versions: affected

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

    Affected
    • = 4.7no fix stated

    Not affected < 4.7 · ≥ 4.9.292, ≤ 4.9.* · ≥ 4.14.257, ≤ 4.14.* · ≥ 4.19.220, ≤ 4.19.* · ≥ 5.4.164, ≤ 5.4.* · ≥ 5.10.84, ≤ 5.10.* · ≥ 5.15.7, ≤ 5.15.*

    1 more version line in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-12-09

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • bpftoolTuxCare:AlmaLinux:9.2all versions · fixed in 7.0.0-284.1101.el9_2.tuxcare.11.els16
  • bpftoolRed Hat:rhel_eus:9.2::baseosall versions · fixed in 0:7.0.0-284.73.1.el9_2and 1 other package
  • bpftoolRed Hat:enterprise_linux:9::baseosall versions · fixed in 0:7.3.0-427.26.1.el9_4and 1 other package
  • bpftoolAlmaLinux:9all versions · fixed in 7.3.0-427.26.1.el9_4
  • bpftool-debuginfoRed Hat:rhel_eus:9.2::crball versions · fixed in 0:7.0.0-284.73.1.el9_2
  • bpftool-debuginfoRed Hat:rhel_eus:9.2::appstreamall versions · fixed in 0:7.0.0-284.73.1.el9_2
  • bpftool-debuginfoRed Hat:enterprise_linux:9::realtimeall versions · fixed in 0:7.3.0-427.26.1.el9_4
  • bpftool-debuginfoRed Hat:enterprise_linux:9::nfvall versions · fixed in 0:7.3.0-427.26.1.el9_4

105 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-47548 Red Hat Product Security929 products fixed · 22 known affected

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

    kernel-rt as a component of Red Hat Enterprise Linux 9 · kernel-rt-core as a component of Red Hat Enterprise Linux 9 · kernel-rt-debug as a component of Red Hat Enterprise Linux 9 · +19 more

  • RHSA-2024:5101 Red Hat Product Security120 products fixed

    Red Hat Security Advisory: kernel security update

  • RHSA-2024:5102 Red Hat Product Security30 products fixed

    Red Hat Security Advisory: kernel-rt security update

  • RHSA-2024:4902 Red Hat Product Security146 products fixed

    Red Hat Security Advisory: kernel security update

  • RHSA-2024:4740 Red Hat Product Security120 products fixed

    Red Hat Security Advisory: kernel security update

  • RHSA-2024:4583 Red Hat Product Security279 products fixed

    Red Hat Security Advisory: kernel security update

2 more advisories

Full record on NVD

Fix

  1. Update Linux linux kernel to fc7ffa7f10b9 · dd07f8971b81 · abbd5faa0748 · a66998e0fbf2 · 948968f87476 · 22519eff7df2 · 99bb25cb6753 · 5.15.7
  2. Vendor fix Red Hat Product Security RHSA-2024:5101 · 120 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect.
  3. Vendor fix Red Hat Product Security RHSA-2024:5102 · 30 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  4. Workaround from the vendor Red Hat Product Security RHSA-2024:5101 · 120 productsMitigation 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.
  5. No fix available, says the vendor Red Hat Product Security CVE-2021-47548 · 22 productsAffected

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2024-05-24
Last Modified
2026-06-17
NVD status
Analyzed

Frequently asked questions

What is CVE-2021-47548?

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.

Is CVE-2021-47548 actively exploited?

Active exploitation of CVE-2021-47548 has not been confirmed. Its EPSS score was 1.4% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-47548?

CVE-2021-47548 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running Linux kernel? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record