CVE-2021-47548

9.8 CRITICAL

📋 TL;DR

This is an array overflow vulnerability in the Linux kernel's HNS ethernet driver that could allow local attackers to cause kernel memory corruption. It affects systems using HiSilicon network hardware with vulnerable kernel versions. The vulnerability requires local access to exploit.

💻 Affected Systems

Products:
  • Linux kernel with HNS ethernet driver
Versions: Linux kernel versions before the fix commits (specific versions vary by distribution)
Operating Systems: Linux distributions using vulnerable kernel versions
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems with HiSilicon network hardware using the hns_dsaf driver. The vulnerability is in the driver code and requires the hardware to be present and configured.

📦 What is this software?

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic, system crash, or potential privilege escalation leading to full system compromise through memory corruption.

🟠

Likely Case

System instability, kernel crashes, or denial of service affecting network functionality.

🟢

If Mitigated

Limited impact if proper access controls prevent local attackers from accessing the vulnerable code path.

🌐 Internet-Facing: LOW - Requires local access to exploit, not directly reachable from internet.
🏢 Internal Only: MEDIUM - Local attackers or malicious users could exploit this to cause system instability.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires local access and knowledge of the vulnerable driver interface. No public exploits have been reported.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Fixed in kernel commits: 22519eff7df2d88adcc2568d86046ce1e2b52803 and related stable backports

Vendor Advisory: https://git.kernel.org/stable/c/22519eff7df2d88adcc2568d86046ce1e2b52803

Restart Required: Yes

Instructions:

1. Update Linux kernel to version containing the fix. 2. Check your distribution's security advisories for specific patched versions. 3. Reboot system after kernel update.

🔧 Temporary Workarounds

Disable HNS ethernet driver

linux

Temporarily disable the vulnerable driver if not needed

modprobe -r hns_dsaf
echo 'blacklist hns_dsaf' >> /etc/modprobe.d/blacklist.conf

🧯 If You Can't Patch

  • Restrict local user access to systems with vulnerable hardware
  • Implement strict access controls and monitoring for systems using HiSilicon network hardware

🔍 How to Verify

Check if Vulnerable:

Check kernel version and if hns_dsaf module is loaded: lsmod | grep hns_dsaf && uname -r

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version is patched and check git commit history for the fix

📡 Detection & Monitoring

Log Indicators:

  • Kernel oops messages
  • System crashes related to network driver
  • dmesg errors mentioning hns_dsaf

Network Indicators:

  • Unexpected network interface failures on HiSilicon hardware

SIEM Query:

source="kernel" AND ("hns_dsaf" OR "array overflow" OR "kernel panic")

🔗 References

📤 Share & Export