CVE-2023-29491

NameCVE-2023-29491
Descriptionncurses before 6.4 20230408, when used by a setuid application, allows local users to trigger security-relevant memory corruption via malformed data in a terminfo database file that is found in $HOME/.terminfo or reached via the TERMINFO or TERM environment variable.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3682-1, ELA-1022-1
Debian Bugs1034372

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ncurses (PTS)jessie, jessie (lts)5.9+20140913-1+deb8u6fixed
stretch (lts), stretch6.0+20161126-1+deb9u5fixed
buster (security), buster, buster (lts)6.1+20181013-2+deb10u5fixed
bullseye6.2+20201114-2+deb11u2fixed
bookworm6.4-4fixed
sid, trixie6.5-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ncursessourcejessie5.9+20140913-1+deb8u6ELA-1022-1
ncursessourcestretch6.0+20161126-1+deb9u5ELA-1022-1
ncursessourcebuster6.1+20181013-2+deb10u5DLA-3682-1
ncursessourcebullseye6.2+20201114-2+deb11u2
ncursessource(unstable)6.4-31034372

Notes

https://invisible-island.net/ncurses/NEWS.html#index-t20230408
http://ncurses.scripts.mit.edu/?p=ncurses.git;a=commitdiff;h=eb51b1ea1f75a0ec17c9c5937cb28df1e8eeec56
https://github.com/ThomasDickey/ncurses-snapshots/commit/a6d3f92bb5bba1a71c7c3df39497abbe5fe999ff
https://www.openwall.com/lists/oss-security/2023/04/19/12
6.4-3 upload configures with "--disable-root-environ" to disallow loading of
custom terminfo entries in setuid/setgid programs, mitigating the impact of
the vulnerability.

Search for package or bug name: Reporting problems