CVE-2021-47559

5.5 MEDIUM

📋 TL;DR

This CVE describes a NULL pointer dereference vulnerability in the Linux kernel's SMC (Shared Memory Communications) networking subsystem. When exploited, it can cause kernel panics or system crashes, affecting all Linux systems using SMC functionality. The vulnerability occurs when iterating over network device lower layers without proper NULL checking.

💻 Affected Systems

Products:
  • Linux Kernel
Versions: Specific kernel versions containing the vulnerable code (exact range depends on distribution backports)
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ✅ No
Notes: Only affects systems using SMC (Shared Memory Communications) functionality. Many distributions may not have SMC enabled by default.

📦 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 →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic leading to complete system crash and denial of service, potentially requiring physical reboot of affected systems.

🟠

Likely Case

System crash or kernel panic when specific network operations are performed on systems with VLAN configurations using SMC.

🟢

If Mitigated

No impact if SMC is not used or if systems are properly patched.

🌐 Internet-Facing: LOW - Requires local access or ability to trigger specific network operations; not directly exploitable over internet.
🏢 Internal Only: MEDIUM - Could be triggered by local users or network operations within the environment, potentially causing system instability.

🎯 Exploit Status

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

Exploitation requires ability to trigger specific network operations on systems with SMC enabled and VLAN configurations. Likely requires local access or network-level access.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Kernel commits: 587acad41f1bc48e16f42bb2aca63bf323380be8, bb851d0fb02547d03cd40106b5f2391c4fed6ed1, c94cbd262b6aa3b54d73a1ed1f9c0d19df57f4ff

Vendor Advisory: https://git.kernel.org/stable/c/587acad41f1bc48e16f42bb2aca63bf323380be8

Restart Required: Yes

Instructions:

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

🔧 Temporary Workarounds

Disable SMC functionality

linux

Disable Shared Memory Communications if not required

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

🧯 If You Can't Patch

  • Disable SMC module if not required for system functionality
  • Restrict network operations that could trigger the vulnerable code path

🔍 How to Verify

Check if Vulnerable:

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

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version is patched and check for presence of fix commits in kernel source

📡 Detection & Monitoring

Log Indicators:

  • Kernel panic messages
  • NULL pointer dereference errors in kernel logs
  • System crash/reboot events

Network Indicators:

  • Unusual SMC-related network operations

SIEM Query:

source="kernel" AND ("NULL pointer" OR "kernel panic" OR "Oops") AND smc

🔗 References

📤 Share & Export