CVE-2021-47482
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47482 is a vulnerability in the Linux kernel's batman-adv (Batman Advanced) mesh networking protocol implementation. The issue was discovered when Syzbot reported an ODEBUG warning in batadv_nc_mesh_free(). The vulnerability stems from incorrect error handling in batadv_mesh_init(), where the function was calling batadv_mesh_free() in case of any batadv_*_init() calls failure without proper initialization checks (NVD).

Technical details

The vulnerability occurs due to wrong error handling in batadv_mesh_init(). When batadv_mesh_init() encounters a failure in any of the batadv_*_init() calls, it calls batadv_mesh_free() without having any indicator to determine which parts of batadv are initialized. This leads to cleaning up uninitialized fields. Even when hiding the ODEBUG warning by initializing bat_priv->nc.work, a General Protection Fault (GPF) could still occur in batadv_nc_purge_paths() because the hash pointer remains NULL (Kernel Commit).

Impact

The vulnerability could lead to a denial of service condition through a kernel crash. When exploited, it could cause system instability due to improper memory handling and potential General Protection Faults. The CVSS Base Score is 5.3 (Medium) with vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Exploitability

The vulnerability requires low privileges but high attack complexity to exploit. It primarily affects systems using the Batman Advanced mesh networking protocol in the Linux kernel. No known exploits have been reported in the wild.

Mitigation and workarounds

The vulnerability has been patched by modifying the error handling approach. The fix involves unwinding batadv_init() calls one by one, which both fixes the bugs in the error handling path and improves performance by avoiding unnecessary batadvfree() function calls. The patch ensures all batadv*_init() functions clean up allocated memory before returning with an error (Kernel Commit).

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-68480NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-uek64k-devel
NoYesAug 06, 2026
CVE-2026-64582NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-aws-fips
NoYesAug 05, 2026
CVE-2026-64579NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel-matched
NoYesAug 05, 2026
CVE-2026-64576NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-modules
NoYesAug 05, 2026
CVE-2026-64575NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.17
NoYesAug 05, 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