Debian dla-3682 : lib32ncurses-dev - security update

critical Nessus Plugin ID 186526

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 10 host has packages installed that are affected by multiple vulnerabilities as referenced in the dla-3682 advisory.

------------------------------------------------------------------------- Debian LTS Advisory DLA-3682-1 [email protected] https://www.debian.org/lts/security/ Guilhem Moulin December 03, 2023 https://wiki.debian.org/LTS
-------------------------------------------------------------------------

Package : ncurses Version : 6.1+20181013-2+deb10u5 CVE ID : CVE-2021-39537 CVE-2023-29491 Debian Bug : 1034372

Issues were found in ncurses, a collection of shared libraries for terminal handling, which could lead to denial of service.

CVE-2021-39537

It has been discovered that the tic(1) utility is susceptible to a heap overflow on crafted input due to improper bounds checking.

CVE-2023-29491

Jonathan Bar Or, Michael Pearse and Emanuele Cozzi have discovered that when ncurses is used by a setuid application, a local user can trigger security-relevant memory corruption via malformed data in a terminfo database file found in $HOME/.terminfo or reached via the TERMINFO or TERM environment variables.

In order to mitigate this issue, ncurses now further restricts programs running with elevated privileges (setuid/setgid programs).
Programs run by the superuser remain able to load custom terminfo entries.

This change aligns ncurses' behavior in buster-security with that of Debian Bullseye's latest point release (6.2+20201114-2+deb11u2).

For Debian 10 buster, these problems have been fixed in version 6.1+20181013-2+deb10u5.

We recommend that you upgrade your ncurses packages.

For the detailed security status of ncurses please refer to its security tracker page at:
https://security-tracker.debian.org/tracker/ncurses

Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: https://wiki.debian.org/LTS Attachment:
signature.asc Description: PGP signature

Tenable has extracted the preceding description block directly from the Debian security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade the lib32ncurses-dev packages.

See Also

https://security-tracker.debian.org/tracker/source-package/ncurses

https://security-tracker.debian.org/tracker/CVE-2021-39537

https://security-tracker.debian.org/tracker/CVE-2023-29491

https://packages.debian.org/source/buster/ncurses

Plugin Details

Severity: Critical

ID: 186526

File Name: debian_DLA-3682.nasl

Version: 1.1

Type: local

Agent: unix

Published: 12/3/2023

Updated: 1/22/2025

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2021-39537

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.3

Threat Score: 8.9

Threat Vector: CVSS:4.0/E:P

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS Score Source: CVE-2023-29491

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:libtinfo-dev, p-cpe:/a:debian:debian_linux:libtinfo6-dbg, p-cpe:/a:debian:debian_linux:libncurses6, p-cpe:/a:debian:debian_linux:ncurses-doc, p-cpe:/a:debian:debian_linux:libncursesw6-dbg, cpe:/o:debian:debian_linux:10.0, p-cpe:/a:debian:debian_linux:ncurses-term, p-cpe:/a:debian:debian_linux:libncursesw6, p-cpe:/a:debian:debian_linux:libncurses5-dev, p-cpe:/a:debian:debian_linux:libncursesw5, p-cpe:/a:debian:debian_linux:lib64ncurses-dev, p-cpe:/a:debian:debian_linux:lib32ncursesw6, p-cpe:/a:debian:debian_linux:ncurses-bin, p-cpe:/a:debian:debian_linux:lib64ncursesw6, p-cpe:/a:debian:debian_linux:lib64tinfo6, p-cpe:/a:debian:debian_linux:libtinfo5, p-cpe:/a:debian:debian_linux:lib32ncurses-dev, p-cpe:/a:debian:debian_linux:libtinfo6, p-cpe:/a:debian:debian_linux:ncurses-base, p-cpe:/a:debian:debian_linux:lib64ncurses6, p-cpe:/a:debian:debian_linux:libncurses6-dbg, p-cpe:/a:debian:debian_linux:lib32tinfo6, p-cpe:/a:debian:debian_linux:libncurses-dev, p-cpe:/a:debian:debian_linux:libncurses5, p-cpe:/a:debian:debian_linux:libncursesw5-dev, p-cpe:/a:debian:debian_linux:ncurses-examples, p-cpe:/a:debian:debian_linux:lib32ncurses6

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/3/2023

Vulnerability Publication Date: 9/20/2021

Reference Information

CVE: CVE-2021-39537, CVE-2023-29491