CVE-2021-47482 | net: batman-adv: fix error handling

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 memory before returning with an error to no call correspoing batadv_*_free() and open-codes batadv_mesh_free() with proper order to avoid touching uninitialized fields.

公開: 2024-05-22 最終更新: 2026-06-17 Assigner: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 ソース: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

総合評価: CVE-2021-47482 は低リスク(39.1/100)。CVSS 深刻度は中。悪用される可能性が高い(EPSS 0.74%、50 パーセンタイル) 推奨対応: 悪用情報と EPSS の推移を監視し、必要に応じて優先度を見直してください。

リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。

CVE-2021-47482 の EPSS(Exploit Prediction Scoring System)スコア

EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-15 0.14% 0.74% +0.59%
2 2025-11-21 1.01% 0.14% -0.87%
3 2025-11-18 1.01%

EPSS の全履歴 (全 10 件)

CVE-2021-47482 の CVSS(Common Vulnerability Scoring System)指標

この CVE の CVSS 指標。

ベーススコア バージョン 深刻度 ベクトル 悪用しやすさ 影響 スコアの出典
5.3 3.1 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:H)
到達できても、タイミング・負荷・周辺設定など、揃わないと成功しない局面が多い。
必要な権限 (PR:L)
一般ユーザー権限があれば足り、管理者(root 相当)は不要。
ユーザーの関与 (UI:N)
メールのリンクを開く、マクロを有効にするなど、被害者の協力がなくても成立しうる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:N)
機微情報の漏えいは想定しにくい。
完全性への影響 (I:N)
改ざん・なりすましによる信頼毀損は軽微か、想定されない。
可用性への影響 (A:H)
長時間のサービス停止、データ損壊による復旧不能に近い状態など、利用者に著しい不便を与えうる。
1.6 3.6 134c704f-9b21-4f2e-91b3-4a467353bcc0

CVE-2021-47482 の弱点分類(列挙)

CVE-2021-47482 の OS トラッカー

vendor priority summary link
debian not yet assigned CVE-2021-47482 not yet assigned priority: Debian including 1 source packages (linux), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2021-47482
redhat low https://access.redhat.com/security/cve/CVE-2021-47482
suse low CVE-2021-47482 severity low: SUSE including 445 source package names (15.5.17.2:kernel-default-devel-5.14.21-150500.55.68.1, 15.5.17.2:kernel-devel-5.14.21-150500.55.68.1, …), 956 product×package rows across 209 product lines (Container bci/bci-sle15-kernel-module-devel, Container suse/sle-micro-rancher/5.2, … (209 product lines)): Fixed 700, Known Affected 205, Known Not Affected 51. https://www.suse.com/security/cve/CVE-2021-47482/
ubuntu medium CVE-2021-47482 medium priority: Ubuntu including 160 source packages (linux, linux-allwinner-5.19, …), 1686 status rows across 11 suites (bionic, focal, jammy, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 1267, not-affected 147, released 140, ignored 128, needed 4. https://ubuntu.com/security/CVE-2021-47482

CVE-2021-47482 の影響を受けるソフトウェア/構成

ベンダー 製品 バージョン 生の CPE
linux linux_kernel >= 2.6.38, < 4.4.293 cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linux linux_kernel >= 4.5, < 4.9.289 cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linux linux_kernel >= 4.10, < 4.14.254 cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linux linux_kernel >= 4.15, < 4.19.215 cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linux linux_kernel >= 4.20, < 5.4.157 cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linux linux_kernel >= 5.5, < 5.10.77 cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linux linux_kernel >= 5.11, < 5.14.16 cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linux linux_kernel 5.15 cpe:2.3:o:linux:linux_kernel:5.15:rc1:*:*:*:*:*:*
linux linux_kernel 5.15 cpe:2.3:o:linux:linux_kernel:5.15:rc2:*:*:*:*:*:*
linux linux_kernel 5.15 cpe:2.3:o:linux:linux_kernel:5.15:rc3:*:*:*:*:*:*
linux linux_kernel 5.15 cpe:2.3:o:linux:linux_kernel:5.15:rc4:*:*:*:*:*:*
linux linux_kernel 5.15 cpe:2.3:o:linux:linux_kernel:5.15:rc5:*:*:*:*:*:*
linux linux_kernel 5.15 cpe:2.3:o:linux:linux_kernel:5.15:rc6:*:*:*:*:*:*
linux linux_kernel 5.15 cpe:2.3:o:linux:linux_kernel:5.15:rc7:*:*:*:*:*:*

CVE-2021-47482 の参考情報

cvelogic Threat Intelligence