Cloud Foundry Logo
blog single gear
Security Advisory

USN-6099-1: ncurses vulnerabilities

Severity

Medium

Vendor

Canonical Ubuntu

Versions Affected

  • Canonical Ubuntu 16.04
  • Canonical Ubuntu 18.04
  • Canonical Ubuntu 22.04

Description

It was discovered that ncurses was incorrectly performing bounds checks when processing invalid hashcodes. An attacker could possibly use this issue to cause a denial of service or to expose sensitive information. This issue only affected Ubuntu 18.04 LTS. (CVE-2019-17594) It was discovered that ncurses was incorrectly handling end-of-string characters when processing terminfo and termcap files. An attacker could possibly use this issue to cause a denial of service or to expose sensitive information. This issue only affected Ubuntu 18.04 LTS. (CVE-2019-17595) It was discovered that ncurses was incorrectly handling end-of-string characters when converting between termcap and terminfo formats. An attacker could possibly use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2021-39537) It was discovered that ncurses was incorrectly performing bounds checks when dealing with corrupt terminfo data while reading a terminfo file. An attacker could possibly use this issue to cause a denial of service or to expose sensitive information. This issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-29458) It was discovered that ncurses was parsing environment variables when running with setuid applications and not properly handling the processing of malformed data when doing so. A local attacker could possibly use this issue to cause a denial of service (application crash) or execute arbitrary code. (CVE-2023-29491) Update Instructions: Run `sudo pro fix USN-6099-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: libx32ncurses5 – 6.0+20160213-1ubuntu1+esm3 lib32tinfo-dev – 6.0+20160213-1ubuntu1+esm3 ncurses-examples – 6.0+20160213-1ubuntu1+esm3 lib32ncurses5-dev – 6.0+20160213-1ubuntu1+esm3 lib32ncursesw5 – 6.0+20160213-1ubuntu1+esm3 libtinfo-dev – 6.0+20160213-1ubuntu1+esm3 libncursesw5 – 6.0+20160213-1ubuntu1+esm3 libtinfo5 – 6.0+20160213-1ubuntu1+esm3 lib64tinfo5 – 6.0+20160213-1ubuntu1+esm3 lib32ncurses5 – 6.0+20160213-1ubuntu1+esm3 libncurses5-dev – 6.0+20160213-1ubuntu1+esm3 ncurses-bin – 6.0+20160213-1ubuntu1+esm3 lib64ncurses5 – 6.0+20160213-1ubuntu1+esm3 lib64ncurses5-dev – 6.0+20160213-1ubuntu1+esm3 libncurses5 – 6.0+20160213-1ubuntu1+esm3 libx32ncurses5-dev – 6.0+20160213-1ubuntu1+esm3 lib32tinfo5 – 6.0+20160213-1ubuntu1+esm3 ncurses-base – 6.0+20160213-1ubuntu1+esm3 lib32ncursesw5-dev – 6.0+20160213-1ubuntu1+esm3 ncurses-doc – 6.0+20160213-1ubuntu1+esm3 libx32ncursesw5 – 6.0+20160213-1ubuntu1+esm3 libx32ncursesw5-dev – 6.0+20160213-1ubuntu1+esm3 libx32tinfo-dev – 6.0+20160213-1ubuntu1+esm3 libx32tinfo5 – 6.0+20160213-1ubuntu1+esm3 libncursesw5-dev – 6.0+20160213-1ubuntu1+esm3 ncurses-term – 6.0+20160213-1ubuntu1+esm3 Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro

CVEs contained in this USN include: CVE-2019-17594, CVE-2019-17595, CVE-2021-39537, CVE-2022-29458, CVE-2023-29491.

Affected Cloud Foundry Products and Versions

Severity is medium unless otherwise noted.

  • Bionic Stemcells
    • 1.x versions prior to 1.204
    • All other stemcells not listed.
  • cflinuxfs3
    • All versions prior to 0.367.0
  • cflinuxfs4
    • All versions prior to 1.10.0
  • Jammy Stemcells
    • 1.x versions prior to 1.125
    • All other stemcells not listed.
  • CF Deployment
    • All versions prior to 30.0.0, or later versions with Jammy Stemcells prior to 1.125 or Bionic Stemcells prior to 1.204

Mitigation

Users of affected products are strongly encouraged to follow the mitigations below. The Cloud Foundry project recommends upgrading the following releases:

  • Bionic Stemcells
    • Upgrade 1.x versions to 1.204 or greater
    • All other stemcells should be upgraded to the latest version available on bosh.io.
  • cflinuxfs3
    • Upgrade all versions to 0.367.0 or greater
  • cflinuxfs4
    • Upgrade all versions to 1.10.0 or greater
  • Jammy Stemcells
    • Upgrade 1.x versions to 1.125 or greater
    • All other stemcells should be upgraded to the latest version available on bosh.io.
  • CF Deployment
    • Upgrade all versions to 30.0.0 or greater, upgrade Jammy Stemcells to 1.125 or greater, and upgrade Bionic Stemcells to 1.204 or greater

History

2023-06-05: Initial vulnerability report published.

Cloud Foundry Foundation Security Team Profile Image

Cloud Foundry Foundation Security Team, AUTHOR

SEE ALL ARTICLES