CVE-2025-6141GNU ncurses parse_entry.c postprocess_termcap stack-based overflow
A vulnerability has been found in GNU ncurses up to 6.5-20250322 and classified as problematic. This vulnerability affects the function postprocess_termcap of the file tinfo/parse_entry.c. The manipulation leads to stack-based buffer overflow. The attack needs to be approached locally. Upgrading to version 6.5-20250329 is able to address this issue. It is recommended to upgrade the affected component.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | ncurses | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | ncurses | Will not fix This is in the code that parses terminfo database files. terminfo files are normally trusted, and since the fix for CVE-2023-29491, we no longer parse… | UBUNTU-CVE-2025-6141 | |
| Ubuntu 24.04 | ncurses | Fixed | 6.4+20240113-1ubuntu2.2 | UBUNTU-CVE-2025-6141 |
| Ubuntu 22.04 | ncurses | Fixed | 6.3-2ubuntu0.3 | UBUNTU-CVE-2025-6141 |
| Ubuntu 20.04 | ncurses | Fix pending | 6.2-0ubuntu2.1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2025-6141 |
| Ubuntu 18.04 | ncurses | Fix pending | 6.1-1ubuntu1.18.04.1+esm4 (Ubuntu Pro) | UBUNTU-CVE-2025-6141 |
| Ubuntu 16.04 | ncurses | Fix pending | 6.0+20160213-1ubuntu1+esm7 (Ubuntu Pro) | UBUNTU-CVE-2025-6141 |
| Ubuntu 14.04 | ncurses | Fix pending | 5.9+20140118-1ubuntu1+esm7 (Ubuntu Pro) | UBUNTU-CVE-2025-6141 |
| Debian 14 | ncurses | Fixed | 6.5+20251115-2 | DEBIAN-CVE-2025-6141 |
| Debian 13 | ncurses | Fix pending | DEBIAN-CVE-2025-6141 | |
| Debian 12 | ncurses | Fix pending | DEBIAN-CVE-2025-6141 | |
| Red Hat Enterprise Linux 10 | ncurses | Not affected | ||
| Red Hat Enterprise Linux 10 | ncurses-base | Not affected | ||
| Red Hat Enterprise Linux 10 | ncurses-c++-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | ncurses-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | ncurses-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | ncurses-term | Not affected | ||
| Red Hat Enterprise Linux 9 | ncurses | Not affected | ||
| Red Hat Enterprise Linux 9 | ncurses-base | Not affected | ||
| Red Hat Enterprise Linux 9 | ncurses-c++-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | ncurses-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | ncurses-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | ncurses-term | Not affected | ||
| Red Hat Enterprise Linux 8 | ncurses | Not affected | ||
| Red Hat Enterprise Linux 8 | ncurses-base | Not affected | ||
| Red Hat Enterprise Linux 8 | ncurses-c++-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | ncurses-compat-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | ncurses-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | ncurses-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | ncurses-term | Not affected | ||
| Red Hat Enterprise Linux 7 | ncurses | Not affected | ||
| Red Hat Enterprise Linux 7 | ncurses-base | Not affected | ||
| Red Hat Enterprise Linux 7 | ncurses-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ncurses-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | ncurses-static | Not affected | ||
| Red Hat Enterprise Linux 7 | ncurses-term | Not affected | ||
| Red Hat Enterprise Linux 6 | ncurses | Not affected | ||
| Red Hat Enterprise Linux 6 | ncurses-base | Not affected | ||
| Red Hat Enterprise Linux 6 | ncurses-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | ncurses-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | ncurses-static | Not affected | ||
| Red Hat Enterprise Linux 6 | ncurses-term | Not affected |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GNU ncurses: affected: 6.5-20250322, 6.5-20250329 not affected
Vendor advisories:
References
- https://vuldb.com/?id.312610
- https://vuldb.com/?ctiid.312610
- https://vuldb.com/?submit.593000
- https://lists.gnu.org/archive/html/bug-ncurses/2025-03/msg00107.html
- https://lists.gnu.org/archive/html/bug-ncurses/2025-03/msg00109.html
- https://lists.gnu.org/archive/html/bug-ncurses/2025-03/msg00114.html
- https://invisible-island.net/ncurses/NEWS.html#index-t20250329
- https://www.gnu.org/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.