Nanopb における無効なポインタや参照の解放に関する脆弱性
タイトル Nanopb における無効なポインタや参照の解放に関する脆弱性
概要

Nanopb には、無効なポインタや参照の解放に関する脆弱性が存在します。

想定される影響 情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。
対策

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

公表日 2021年3月20日0:00
登録日 2021年11月30日15:47
最終更新日 2021年11月30日15:47
CVSS3.0 : 重要
スコア 7.1
ベクター CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
CVSS2.0 : 警告
スコア 5.5
ベクター AV:N/AC:L/Au:S/C:N/I:P/A:P
影響を受けるシステム
Nanopb project
Nanopb 0.3.9.8 未満
Nanopb 0.4.5 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
1 [2021年11月30日]
  掲載
2021年11月30日15:47

NVD脆弱性情報
CVE-2021-21401
概要

Nanopb is a small code-size Protocol Buffers implementation in ansi C. In Nanopb before versions 0.3.9.8 and 0.4.5, decoding a specifically formed message can cause invalid `free()` or `realloc()` calls if the message type contains an `oneof` field, and the `oneof` directly contains both a pointer field and a non-pointer field. If the message data first contains the non-pointer field and then the pointer field, the data of the non-pointer field is incorrectly treated as if it was a pointer value. Such message data rarely occurs in normal messages, but it is a concern when untrusted data is parsed. This has been fixed in versions 0.3.9.8 and 0.4.5. See referenced GitHub Security Advisory for more information including workarounds.

公表日 2021年3月24日3:15
登録日 2021年3月24日10:02
最終更新日 2024年11月21日14:48
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:nanopb_project:nanopb:*:*:*:*:*:*:*:* 0.4.0 0.4.5
cpe:2.3:a:nanopb_project:nanopb:*:*:*:*:*:*:*:* 0.3.9.8
関連情報、対策とツール
共通脆弱性一覧