Gửi #698113: nnn v5.1 Double Free
| tiêu đề | nnn v5.1 Double Free |
|---|---|
| Mô tả | The code contains a double-free vulnerability in the show_content_in_floating_window function. If the newwin() call fails (returns NULL), the function explicitly frees the content buffer before returning FALSE. However, the caller function also attempts to free the same content pointer unconditionally after the function returns(the return value is false, the loop will exit). This results in the same memory region being freed twice, which can lead to memory corruption or a program crash. |
| Nguồn | ⚠️ https:/ |
| Người dùng | micromilo (UID 84159) |
| Đệ trình | 19/11/2025 15:19 (cách đây 5 các tháng) |
| Kiểm duyệt | 22/11/2025 18:38 (3 days later) |
| Trạng thái | được chấp nhận |
| Mục VulDB | 333330 [jarun nnn đến 5.1 nnn/src/nnn.c show_content_in_floating_window/run_cmd_as_plugin tràn bộ đệm] |
| điểm | 19 |