CVEfocus › CVE database › CVE-2017-16879

CVE-2017-16879

CVSS 7.8 HighEPSS 2.4% (higher than 84% of CVEs)Published 2017-11-22Updated 2024-08-05Assigner: mitre

Stack-based buffer overflow in the _nc_write_entry function in tinfo/write_entry.c in ncurses 6.0 allows attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted terminfo file, as demonstrated by tic.

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Ubuntu has 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

24Fixed
2Fix pending
13Will not fix
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04ncursesNot affected
vulnerable_code_not_present
Ubuntu 16.04ncursesFix pending6.0+20160213-1ubuntu1+esm2 (Ubuntu Pro)UBUNTU-CVE-2017-16879
Ubuntu 14.04ncursesFix pending5.9+20140118-1ubuntu1+esm2 (Ubuntu Pro)UBUNTU-CVE-2017-16879
Debian 14ncursesFixed6.0+20171125-1DEBIAN-CVE-2017-16879
Debian 13ncursesFixed6.0+20171125-1DEBIAN-CVE-2017-16879
Debian 12ncursesFixed6.0+20171125-1DEBIAN-CVE-2017-16879
Red Hat Enterprise Linux 7ncursesWill not fix
Will not fix
Red Hat Enterprise Linux 7ncurses-baseWill not fix
Will not fix
Red Hat Enterprise Linux 7ncurses-develWill not fix
Will not fix
Red Hat Enterprise Linux 7ncurses-libsWill not fix
Will not fix
Red Hat Enterprise Linux 7ncurses-staticWill not fix
Will not fix
Red Hat Enterprise Linux 7ncurses-termWill not fix
Will not fix
Red Hat Enterprise Linux 6ncursesWill not fix
Will not fix
Red Hat Enterprise Linux 6ncurses-baseWill not fix
Will not fix
Red Hat Enterprise Linux 6ncurses-develWill not fix
Will not fix
Red Hat Enterprise Linux 6ncurses-libsWill not fix
Will not fix
Red Hat Enterprise Linux 6ncurses-staticWill not fix
Will not fix
Red Hat Enterprise Linux 6ncurses-termWill not fix
Will not fix
Red Hat Enterprise Linux 5ncursesWill not fix
Will not fix
Alpine Linux 3.24ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.23ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.22ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.21ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.20ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.19ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.18ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.17ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.16ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.15ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.14ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.13ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.12ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.11ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.10ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.9ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.8ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.7ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.6ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.5ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879
Alpine Linux 3.4ncursesFixed6.0_p20171125-r0ALPINE-CVE-2017-16879

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

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.