Wiz Agents & Workflows are here

CVE-2021-47548
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47548 affects the Linux kernel's ethernet driver for HiSilicon HNS devices. The vulnerability was discovered on May 24, 2024, and involves a potential array overflow in the hns_dsaf_ge_srst_by_port() function. The issue occurs when the port value is 6 or 7, as the array dsaf_dev->mac_cb has a length of DSAF_MAX_PORT_NUM (6) while the check allows values up to DSAF_GE_NUM (8) (NVD).

Technical details

The vulnerability exists in the hns_dsaf_misc.c file where an improper array index validation could lead to buffer overflow. The original code only checked if port >= DSAF_GE_NUM (8) but allowed access to array indices 6 and 7, while the actual array dsaf_dev->mac_cb only has 6 elements. This represents a CWE-129 (Improper Validation of Array Index) vulnerability with a CVSS v3.1 base score of 6.0 (AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:H) (Red Hat).

Impact

The vulnerability could allow an attacker to cause an array overflow by accessing memory outside the bounds of the allocated array, potentially leading to system crashes or arbitrary code execution with elevated privileges (Red Hat).

Mitigation and workarounds

The vulnerability has been patched by adding an additional check to ensure port >= DSAF_MAX_PORT_NUM before accessing the array. The fix has been implemented in various Linux kernel versions and is available through distribution-specific security updates. For Red Hat Enterprise Linux, fixes are available in kernel versions 5.14.0-427.26.1.el9_4 and others (Red Hat).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23395CRITICAL9.1
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-devel-matched
NoYesMar 25, 2026
CVE-2026-23399MEDIUM6.5
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-devel-matched
NoYesMar 28, 2026
CVE-2026-23398MEDIUM6.5
  • Linux KernelLinux Kernel
  • kernel-abi-stablelists
NoYesMar 26, 2026
CVE-2026-23397MEDIUM4.4
  • Linux KernelLinux Kernel
  • kernel-devel
NoYesMar 26, 2026
CVE-2026-31788N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-trace-kvm
NoYesMar 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management