USN-5477-1 (UBUNTU-CVE-2017-16879)

Vulnerability from osv_ubuntu – Published: 2022-06-14 11:17 – Updated: 2026-11-24 09:37 – Source website
VLAI
Summary
ncurses vulnerabilities
Details

Hosein Askari discovered that ncurses was incorrectly performing memory management operations when dealing with long filenames while writing structures into the file system. An attacker could possibly use this issue to cause a denial of service or execute arbitrary code. (CVE-2017-16879)

Chung-Yi Lin discovered that ncurses was incorrectly handling access to invalid memory areas when parsing terminfo or termcap entries where the use-name had invalid syntax. An attacker could possibly use this issue to cause a denial of service. (CVE-2018-19211)

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. (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. (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. (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. (CVE-2022-29458)

Impacted products
Ecosystem Package Version
Ubuntu:Pro:14.04:LTS ncurses
pkg:deb/ubuntu/ncurses@5.9+20140118-1ubuntu1+esm2?arch=source&distro=trusty/esm
Affected: < 5.9+20140118-1ubuntu1+esm2 (ecosystem)
5.9+20130608-1ubuntu15.9+20131221-1ubuntu15.9+20140118-1ubuntu15.9+20140118-1ubuntu1+esm1
Ubuntu:Pro:16.04:LTS ncurses
pkg:deb/ubuntu/ncurses@6.0+20160213-1ubuntu1+esm2?arch=source&distro=esm-infra/xenial
Affected: < 6.0+20160213-1ubuntu1+esm2 (ecosystem)
5.9+20150516-2ubuntu16.0+20151024-2ubuntu16.0+20151024-2ubuntu26.0+20160213-1ubuntu16.0+20160213-1ubuntu1+esm1

{
  "affected": [
    {
      "database_specific": {
        "cves_map": {
          "cves": [
            {
              "id": "CVE-2017-16879",
              "severity": [
                {
                  "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "negligible",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            },
            {
              "id": "CVE-2018-19211",
              "severity": [
                {
                  "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "low",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            },
            {
              "id": "CVE-2019-17594",
              "severity": [
                {
                  "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "negligible",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            },
            {
              "id": "CVE-2019-17595",
              "severity": [
                {
                  "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "negligible",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            },
            {
              "id": "CVE-2021-39537",
              "severity": [
                {
                  "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "negligible",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            },
            {
              "id": "CVE-2022-29458",
              "severity": [
                {
                  "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H",
                  "type": "CVSS_V3"
                },
                {
                  "score": "negligible",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            }
          ],
          "ecosystem": "Ubuntu:Pro:14.04:LTS"
        }
      },
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "lib32ncurses5",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "lib32ncursesw5",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "lib32tinfo5",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "lib64ncurses5",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "lib64tinfo5",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "libncurses5",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "libncursesw5",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "libtinfo5",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "libx32ncurses5",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "libx32ncursesw5",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "libx32tinfo5",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "ncurses-base",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "ncurses-bin",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "ncurses-examples",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          },
          {
            "binary_name": "ncurses-term",
            "binary_version": "5.9+20140118-1ubuntu1+esm2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:14.04:LTS",
        "name": "ncurses",
        "purl": "pkg:deb/ubuntu/ncurses@5.9+20140118-1ubuntu1+esm2?arch=source\u0026distro=trusty/esm"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.9+20140118-1ubuntu1+esm2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "5.9+20130608-1ubuntu1",
        "5.9+20131221-1ubuntu1",
        "5.9+20140118-1ubuntu1",
        "5.9+20140118-1ubuntu1+esm1"
      ]
    },
    {
      "database_specific": {
        "cves_map": {
          "cves": [
            {
              "id": "CVE-2017-16879",
              "severity": [
                {
                  "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "negligible",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            },
            {
              "id": "CVE-2018-19211",
              "severity": [
                {
                  "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "low",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            },
            {
              "id": "CVE-2019-17594",
              "severity": [
                {
                  "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "negligible",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            },
            {
              "id": "CVE-2019-17595",
              "severity": [
                {
                  "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "negligible",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            },
            {
              "id": "CVE-2021-39537",
              "severity": [
                {
                  "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "negligible",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            },
            {
              "id": "CVE-2022-29458",
              "severity": [
                {
                  "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H",
                  "type": "CVSS_V3"
                },
                {
                  "score": "negligible",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            }
          ],
          "ecosystem": "Ubuntu:Pro:16.04:LTS"
        }
      },
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "lib32ncurses5",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "lib32ncursesw5",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "lib32tinfo5",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "lib64ncurses5",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "lib64tinfo5",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "libncurses5",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "libncursesw5",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "libtinfo5",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "libx32ncurses5",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "libx32ncursesw5",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "libx32tinfo5",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "ncurses-base",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "ncurses-bin",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "ncurses-examples",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          },
          {
            "binary_name": "ncurses-term",
            "binary_version": "6.0+20160213-1ubuntu1+esm2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "ncurses",
        "purl": "pkg:deb/ubuntu/ncurses@6.0+20160213-1ubuntu1+esm2?arch=source\u0026distro=esm-infra/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.0+20160213-1ubuntu1+esm2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "5.9+20150516-2ubuntu1",
        "6.0+20151024-2ubuntu1",
        "6.0+20151024-2ubuntu2",
        "6.0+20160213-1ubuntu1",
        "6.0+20160213-1ubuntu1+esm1"
      ]
    }
  ],
  "aliases": [],
  "details": "Hosein Askari discovered that ncurses was incorrectly performing\nmemory management operations when dealing with long filenames while\nwriting structures into the file system. An attacker could possibly\nuse this issue to cause a denial of service or execute arbitrary\ncode. (CVE-2017-16879)\n\nChung-Yi Lin discovered that ncurses was incorrectly handling access\nto invalid memory areas when parsing terminfo or termcap entries where\nthe use-name had invalid syntax. An attacker could possibly use this\nissue to cause a denial of service. (CVE-2018-19211)\n\nIt was discovered that ncurses was incorrectly performing bounds\nchecks when processing invalid hashcodes. An attacker could possibly\nuse this issue to cause a denial of service or to expose sensitive\ninformation. (CVE-2019-17594)\n\nIt was discovered that ncurses was incorrectly handling\nend-of-string characters when processing terminfo and termcap files.\nAn attacker could possibly use this issue to cause a denial of\nservice or to expose sensitive information. (CVE-2019-17595)\n\nIt was discovered that ncurses was incorrectly handling\nend-of-string characters when converting between termcap and\nterminfo formats. An attacker could possibly use this issue to cause\na denial of service or execute arbitrary code. (CVE-2021-39537)\n\nIt was discovered that ncurses was incorrectly performing bounds\nchecks when dealing with corrupt terminfo data while reading a\nterminfo file. An attacker could possibly use this issue to cause a\ndenial of service or to expose sensitive information.\n(CVE-2022-29458)\n",
  "id": "USN-5477-1",
  "modified": "2026-11-24T09:37:21Z",
  "published": "2022-06-14T11:17:52Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-5477-1"
    },
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2017-16879"
    },
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2018-19211"
    },
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2019-17594"
    },
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2019-17595"
    },
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2021-39537"
    },
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2022-29458"
    }
  ],
  "related": [],
  "schema_version": "1.9.2",
  "summary": "ncurses vulnerabilities",
  "upstream": [
    "UBUNTU-CVE-2017-16879",
    "UBUNTU-CVE-2018-19211",
    "UBUNTU-CVE-2019-17594",
    "UBUNTU-CVE-2019-17595",
    "UBUNTU-CVE-2021-39537",
    "UBUNTU-CVE-2022-29458"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.