Menu

Star on GitHub · 3.2k

CVE-2021-47482

5.3 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: net: batman-adv: fix error handling Syzbot reported ODEBUG warning in batadv_nc_mesh_free().

Published May 22, 2024CWE-544EPSS 0.74%

Overview

CVE-2021-47482 is a medium-severity vulnerability. It was published on May 22, 2024 and has a CVSS 3.1 base score of 5.3 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.3, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

net: batman-adv: fix error handling

Syzbot reported ODEBUG warning in batadv_nc_mesh_free(). The problem was

in wrong error handling in batadv_mesh_init().

Before this patch batadv_mesh_init() was calling batadv_mesh_free() in case

of any batadv_*_init() calls failure. This approach may work well, when

there is some kind of indicator, which can tell which parts of batadv are

initialized; but there isn't any.

All written above lead to cleaning up uninitialized fields. Even if we hide

ODEBUG warning by initializing bat_priv->nc.work, syzbot was able to hit

GPF in batadv_nc_purge_paths(), because hash pointer in still NULL. [1]

To fix these bugs we can unwind batadv_*_init() calls one by one.

It is good approach for 2 reasons: 1) It fixes bugs on error handling

path 2) It improves the performance, since we won't call unneeded

batadv_*_free() functions.

So, this patch makes all batadv_*_init() clean up all allocated

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2021-47482?

CVE-2021-47482 is a medium-severity vulnerability. It was published on May 22, 2024 and has a CVSS 3.1 base score of 5.3 (MEDIUM).

How severe is CVE-2021-47482?

This vulnerability has a CVSS 3.1 base score of 5.3, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-47482?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-47482?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47482 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2021

View all