Skip to content
Heist/ feed
Back to feed
Critical

zangband — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2021-40589

ZAngband zangband-data 2.7.5 is affected by an integer underflow vulnerability in src/tk/plat.c through the variable fileheader.bfOffBits.

Products
zangband
Affected versions
1:2.7.5pre1-10, 1:2.7.5pre1-11, 1:2.7.5pre1-11build1, 1:2.7.5pre1-12, 1:2.7.5pre1-13, 1:2.7.5pre1-14, 1:2.7.5pre1-14build1, 1:2.7.5pre1-14build2, 1:2.7.5pre1-15, 1:2.7.5pre1-15build1, 1:2.7.5pre1-16, 1:2.7.5pre1-17, 1:2.7.5pre1-9.1
Fixed versions
Not specified
CVEs
CVE-2021-40589
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:00 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-40589

core-osv · Original source

Published 8 Jun 2022, 18:15 UTC

ZAngband zangband-data 2.7.5 is affected by an integer underflow vulnerability in src/tk/plat.c through the variable fileheader.bfOffBits.

osv:UBUNTU-CVE-2021-40589

zangband

Fixed versions: Not specified

zangband

Fixed versions: Not specified

zangband

Fixed versions: Not specified

zangband

Fixed versions: Not specified

zangband

Fixed versions: Not specified

zangband

Fixed versions: Not specified

zangband

Fixed versions: Not specified

zangband

Fixed versions: Not specified

Complete source record
{
  "id": "57fa691ec2179fb1ee3f47fdb65a20fa9902d8046561a5c34674f716377aeb7e",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-40589",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-40589",
    "summary": "ZAngband zangband-data 2.7.5 is affected by an integer underflow vulnerability in src/tk/plat.c through the variable fileheader.bfOffBits.",
    "evidence": "osv:UBUNTU-CVE-2021-40589",
    "products": [
      {
        "name": {
          "value": "zangband",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:2.7.5pre1-9.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.7.5pre1-10",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.7.5pre1-11",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.7.5pre1-11build1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "zangband",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:2.7.5pre1-11build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "zangband",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:2.7.5pre1-12",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "zangband",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:2.7.5pre1-13",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "zangband",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:2.7.5pre1-14",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1:2.7.5pre1-14build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1:2.7.5pre1-14build2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "zangband",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:2.7.5pre1-15",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "zangband",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:2.7.5pre1-15build1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1:2.7.5pre1-16",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1:2.7.5pre1-17",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "zangband",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:2.7.5pre1-15",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1:2.7.5pre1-15build1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2021-40589",
      "aliases": [
        "UBUNTU-CVE-2021-40589"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "zangband",
            "purl": "pkg:deb/ubuntu/zangband?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1:2.7.5pre1-9.1",
            "1:2.7.5pre1-10",
            "1:2.7.5pre1-11",
            "1:2.7.5pre1-11build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40589.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "zangband",
                "binary_version": "1:2.7.5pre1-11build1"
              },
              {
                "binary_name": "zangband-data",
                "binary_version": "1:2.7.5pre1-11build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "zangband",
            "purl": "pkg:deb/ubuntu/zangband?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1:2.7.5pre1-11build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40589.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "zangband",
                "binary_version": "1:2.7.5pre1-11build1"
              },
              {
                "binary_name": "zangband-data",
                "binary_version": "1:2.7.5pre1-11build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "zangband",
            "purl": "pkg:deb/ubuntu/zangband?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1:2.7.5pre1-12"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40589.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "zangband",
                "binary_version": "1:2.7.5pre1-12"
              },
              {
                "binary_name": "zangband-data",
                "binary_version": "1:2.7.5pre1-12"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "zangband",
            "purl": "pkg:deb/ubuntu/zangband?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1:2.7.5pre1-13"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40589.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "zangband",
                "binary_version": "1:2.7.5pre1-13"
              },
              {
                "binary_name": "zangband-data",
                "binary_version": "1:2.7.5pre1-13"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "zangband",
            "purl": "pkg:deb/ubuntu/zangband?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1:2.7.5pre1-14",
            "1:2.7.5pre1-14build1",
            "1:2.7.5pre1-14build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40589.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "zangband",
                "binary_version": "1:2.7.5pre1-14build2"
              },
              {
                "binary_name": "zangband-data",
                "binary_version": "1:2.7.5pre1-14build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "zangband",
            "purl": "pkg:deb/ubuntu/zangband?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1:2.7.5pre1-15"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40589.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "zangband",
                "binary_version": "1:2.7.5pre1-15"
              },
              {
                "binary_name": "zangband-data",
                "binary_version": "1:2.7.5pre1-15"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "zangband",
            "purl": "pkg:deb/ubuntu/zangband?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1:2.7.5pre1-15build1",
            "1:2.7.5pre1-16",
            "1:2.7.5pre1-17"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40589.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "zangband",
                "binary_version": "1:2.7.5pre1-17"
              },
              {
                "binary_name": "zangband-data",
                "binary_version": "1:2.7.5pre1-17"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "zangband",
            "purl": "pkg:deb/ubuntu/zangband?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1:2.7.5pre1-15",
            "1:2.7.5pre1-15build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40589.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "zangband",
                "binary_version": "1:2.7.5pre1-15build1"
              },
              {
                "binary_name": "zangband-data",
                "binary_version": "1:2.7.5pre1-15build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:20.838197452Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-40589"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-40589",
        "https://sourceforge.net/p/zangband/bugs/671/",
        "https://www.cve.org/CVERecord?id=CVE-2021-40589"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-40589",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355361,
  "published_at": "2022-06-08T18:15:00+00:00"
}