Ubuntu update for ncurses



Published: 2023-05-23
Risk High
Patch available YES
Number of vulnerabilities 5
CVE-ID CVE-2019-17594
CVE-2019-17595
CVE-2021-39537
CVE-2022-29458
CVE-2023-29491
CWE-ID CWE-122
CWE-126
CWE-787
CWE-125
CWE-119
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Public exploit code for vulnerability #2 is available.
Vulnerable software
Subscribe
Ubuntu
Operating systems & Components / Operating system

libx32tinfo5 (Ubuntu package)
Operating systems & Components / Operating system package or component

libx32ncursesw5 (Ubuntu package)
Operating systems & Components / Operating system package or component

lib64ncurses5 (Ubuntu package)
Operating systems & Components / Operating system package or component

lib64tinfo5 (Ubuntu package)
Operating systems & Components / Operating system package or component

lib32ncurses5 (Ubuntu package)
Operating systems & Components / Operating system package or component

lib32tinfo5 (Ubuntu package)
Operating systems & Components / Operating system package or component

lib32ncursesw5 (Ubuntu package)
Operating systems & Components / Operating system package or component

libx32ncurses5 (Ubuntu package)
Operating systems & Components / Operating system package or component

lib64ncursesw6 (Ubuntu package)
Operating systems & Components / Operating system package or component

libncursesw6 (Ubuntu package)
Operating systems & Components / Operating system package or component

libncurses5 (Ubuntu package)
Operating systems & Components / Operating system package or component

libncurses6 (Ubuntu package)
Operating systems & Components / Operating system package or component

lib64ncurses6 (Ubuntu package)
Operating systems & Components / Operating system package or component

lib64tinfo6 (Ubuntu package)
Operating systems & Components / Operating system package or component

ncurses-bin (Ubuntu package)
Operating systems & Components / Operating system package or component

lib32ncurses6 (Ubuntu package)
Operating systems & Components / Operating system package or component

lib32tinfo6 (Ubuntu package)
Operating systems & Components / Operating system package or component

libtinfo6 (Ubuntu package)
Operating systems & Components / Operating system package or component

libtinfo5 (Ubuntu package)
Operating systems & Components / Operating system package or component

libncursesw5 (Ubuntu package)
Operating systems & Components / Operating system package or component

lib32ncursesw6 (Ubuntu package)
Operating systems & Components / Operating system package or component

Vendor Canonical Ltd.

Security Bulletin

This security bulletin contains information about 5 vulnerabilities.

1) Heap-based buffer overflow

EUVDB-ID: #VU21792

Risk: High

CVSSv3.1: 7.3 [CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2019-17594

CWE-ID: CWE-122 - Heap-based Buffer Overflow

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in the "_nc_find_entry" function in "tinfo/comp_hash.c" in the terminfo library. A remote attacker can trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Update the affected package ncurses to the latest version.

Vulnerable software versions

Ubuntu: 14.04 - 23.04

libx32tinfo5 (Ubuntu package): before Ubuntu Pro

libx32ncursesw5 (Ubuntu package): before Ubuntu Pro

lib64ncurses5 (Ubuntu package): before Ubuntu Pro

lib64tinfo5 (Ubuntu package): before Ubuntu Pro

lib32ncurses5 (Ubuntu package): before Ubuntu Pro

lib32tinfo5 (Ubuntu package): before Ubuntu Pro

lib32ncursesw5 (Ubuntu package): before Ubuntu Pro

libx32ncurses5 (Ubuntu package): before Ubuntu Pro

lib64ncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

libncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

libncurses5 (Ubuntu package): before Ubuntu Pro

libncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib64ncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib64tinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

ncurses-bin (Ubuntu package): before Ubuntu Pro

lib32ncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib32tinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

libtinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

libtinfo5 (Ubuntu package): before Ubuntu Pro

libncursesw5 (Ubuntu package): before Ubuntu Pro

lib32ncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

External links

http://ubuntu.com/security/notices/USN-6099-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.

2) Buffer Over-read

EUVDB-ID: #VU21793

Risk: Medium

CVSSv3.1: 4.8 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C]

CVE-ID: CVE-2019-17595

CWE-ID: CWE-126 - Buffer over-read

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to heap-based buffer over-read issue in the "fmt_entry" function in "tinfo/comp_hash.c" in the terminfo library. A remote attacker can trigger a buffer over-read condition and cause a denial of service condition on the target system.

Mitigation

Update the affected package ncurses to the latest version.

Vulnerable software versions

Ubuntu: 14.04 - 23.04

libx32tinfo5 (Ubuntu package): before Ubuntu Pro

libx32ncursesw5 (Ubuntu package): before Ubuntu Pro

lib64ncurses5 (Ubuntu package): before Ubuntu Pro

lib64tinfo5 (Ubuntu package): before Ubuntu Pro

lib32ncurses5 (Ubuntu package): before Ubuntu Pro

lib32tinfo5 (Ubuntu package): before Ubuntu Pro

lib32ncursesw5 (Ubuntu package): before Ubuntu Pro

libx32ncurses5 (Ubuntu package): before Ubuntu Pro

lib64ncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

libncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

libncurses5 (Ubuntu package): before Ubuntu Pro

libncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib64ncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib64tinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

ncurses-bin (Ubuntu package): before Ubuntu Pro

lib32ncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib32tinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

libtinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

libtinfo5 (Ubuntu package): before Ubuntu Pro

libncursesw5 (Ubuntu package): before Ubuntu Pro

lib32ncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

External links

http://ubuntu.com/security/notices/USN-6099-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.

3) Out-of-bounds write

EUVDB-ID: #VU57577

Risk: High

CVSSv3.1: 7.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-39537

CWE-ID: CWE-787 - Out-of-bounds write

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing untrusted input. A remote attacker can create a specially crafted file, trick the victim into opening it using the affected software, trigger out-of-bounds write and execute arbitrary code on the target system.

Mitigation

Update the affected package ncurses to the latest version.

Vulnerable software versions

Ubuntu: 14.04 - 23.04

libx32tinfo5 (Ubuntu package): before Ubuntu Pro

libx32ncursesw5 (Ubuntu package): before Ubuntu Pro

lib64ncurses5 (Ubuntu package): before Ubuntu Pro

lib64tinfo5 (Ubuntu package): before Ubuntu Pro

lib32ncurses5 (Ubuntu package): before Ubuntu Pro

lib32tinfo5 (Ubuntu package): before Ubuntu Pro

lib32ncursesw5 (Ubuntu package): before Ubuntu Pro

libx32ncurses5 (Ubuntu package): before Ubuntu Pro

lib64ncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

libncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

libncurses5 (Ubuntu package): before Ubuntu Pro

libncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib64ncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib64tinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

ncurses-bin (Ubuntu package): before Ubuntu Pro

lib32ncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib32tinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

libtinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

libtinfo5 (Ubuntu package): before Ubuntu Pro

libncursesw5 (Ubuntu package): before Ubuntu Pro

lib32ncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

External links

http://ubuntu.com/security/notices/USN-6099-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

4) Out-of-bounds read

EUVDB-ID: #VU64274

Risk: Medium

CVSSv3.1: 4.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-29458

CWE-ID: CWE-125 - Out-of-bounds read

Exploit availability: No

Description

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to a boundary condition in convert_strings in tinfo/read_entry.c in the terminfo library. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger out-of-bounds read error and read contents of memory on the system.

Mitigation

Update the affected package ncurses to the latest version.

Vulnerable software versions

Ubuntu: 14.04 - 23.04

libx32tinfo5 (Ubuntu package): before Ubuntu Pro

libx32ncursesw5 (Ubuntu package): before Ubuntu Pro

lib64ncurses5 (Ubuntu package): before Ubuntu Pro

lib64tinfo5 (Ubuntu package): before Ubuntu Pro

lib32ncurses5 (Ubuntu package): before Ubuntu Pro

lib32tinfo5 (Ubuntu package): before Ubuntu Pro

lib32ncursesw5 (Ubuntu package): before Ubuntu Pro

libx32ncurses5 (Ubuntu package): before Ubuntu Pro

lib64ncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

libncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

libncurses5 (Ubuntu package): before Ubuntu Pro

libncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib64ncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib64tinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

ncurses-bin (Ubuntu package): before Ubuntu Pro

lib32ncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib32tinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

libtinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

libtinfo5 (Ubuntu package): before Ubuntu Pro

libncursesw5 (Ubuntu package): before Ubuntu Pro

lib32ncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

External links

http://ubuntu.com/security/notices/USN-6099-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

5) Buffer overflow

EUVDB-ID: #VU75141

Risk: Low

CVSSv3.1: 6.8 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-29491

CWE-ID: CWE-119 - Memory corruption

Exploit availability: No

Description

The vulnerability allows a local user to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when processing malformed data in a terminfo database file. A local user can trigger memory corruption and execute arbitrary code on the target system.


Mitigation

Update the affected package ncurses to the latest version.

Vulnerable software versions

Ubuntu: 14.04 - 23.04

libx32tinfo5 (Ubuntu package): before Ubuntu Pro

libx32ncursesw5 (Ubuntu package): before Ubuntu Pro

lib64ncurses5 (Ubuntu package): before Ubuntu Pro

lib64tinfo5 (Ubuntu package): before Ubuntu Pro

lib32ncurses5 (Ubuntu package): before Ubuntu Pro

lib32tinfo5 (Ubuntu package): before Ubuntu Pro

lib32ncursesw5 (Ubuntu package): before Ubuntu Pro

libx32ncurses5 (Ubuntu package): before Ubuntu Pro

lib64ncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

libncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

libncurses5 (Ubuntu package): before Ubuntu Pro

libncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib64ncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib64tinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

ncurses-bin (Ubuntu package): before Ubuntu Pro

lib32ncurses6 (Ubuntu package): before 6.4-2ubuntu0.1

lib32tinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

libtinfo6 (Ubuntu package): before 6.4-2ubuntu0.1

libtinfo5 (Ubuntu package): before Ubuntu Pro

libncursesw5 (Ubuntu package): before Ubuntu Pro

lib32ncursesw6 (Ubuntu package): before 6.4-2ubuntu0.1

External links

http://ubuntu.com/security/notices/USN-6099-1


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###