提出 #698115: nnn v5.1 Double Free情報

タイトルnnn v5.1 Double Free
説明The run_cmd_as_plugin function contains a double-free vulnerability when handling the F_WINDOW flag. The content buffer is passed to show_content_in_floating_window, which frees the memory if window creation fails. However, run_cmd_as_plugin unconditionally calls free(content) immediately after that function returns. This causes the memory to be freed a second time if an error occurs within the window display logic.
ソース⚠️ https://github.com/jarun/nnn/issues/2091#issuecomment-3545367083
ユーザー
 micromilo (UID 84159)
送信2025年11月19日 15:22 (5 月 ago)
モデレーション2025年12月05日 18:12 (16 days later)
ステータス重複
VulDBエントリ333330 [jarun nnn 迄 5.1 nnn/src/nnn.c show_content_in_floating_window/run_cmd_as_plugin メモリ破損]
ポイント0

Do you want to use VulDB in your project?

Use the official API to access entries easily!