Skip to content
Heist/ feed
Back to feed
HighFix available

faad2 — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2018-20197

There is a stack-based buffer underflow in the third instance of the calculate_gain function in libfaad/sbr_hfadj.c in Freeware Advanced Audio Decoder 2 (FAAD2) 2.8.8. A crafted input will lead to a denial of service or possibly unspecified other impact because limiting the additional noise energy level is mishandled for the G_max > G case.

Products
faad2
Affected versions
Not specified
Fixed versions
2.9.0-r0
CVEs
CVE-2018-20197
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 22:15 UTC · Revision 1

Source evidence

ALPINE-CVE-2018-20197

core-osv · Original source

Published 18 Dec 2018, 01:29 UTC

There is a stack-based buffer underflow in the third instance of the calculate_gain function in libfaad/sbr_hfadj.c in Freeware Advanced Audio Decoder 2 (FAAD2) 2.8.8. A crafted input will lead to a denial of service or possibly unspecified other impact because limiting the additional noise energy level is mishandled for the G_max > G case.

osv:ALPINE-CVE-2018-20197

faad2

Fixed versions: 2.9.0-r0

faad2

Fixed versions: 2.9.0-r0

faad2

Fixed versions: 2.9.0-r0

faad2

Fixed versions: 2.9.0-r0

faad2

Fixed versions: 2.9.0-r0

Complete source record
{
  "id": "d66e7aabc0e5e8b8e7f0258e412ed269cfeec5619f123ca1a0d96a9785bf42cb",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2018-20197",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2018-20197",
    "summary": "There is a stack-based buffer underflow in the third instance of the calculate_gain function in libfaad/sbr_hfadj.c in Freeware Advanced Audio Decoder 2 (FAAD2) 2.8.8. A crafted input will lead to a denial of service or possibly unspecified other impact because limiting the additional noise energy level is mishandled for the G_max > G case.",
    "evidence": "osv:ALPINE-CVE-2018-20197",
    "products": [
      {
        "name": {
          "value": "faad2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.9.0-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "faad2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.9.0-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "faad2",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.9.0-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "faad2",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.9.0-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "faad2",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.9.0-r0",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "ALPINE-CVE-2018-20197",
      "aliases": [
        "ALPINE-CVE-2018-20197"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.9.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "faad2",
            "purl": "pkg:apk/alpine/faad2?arch=source",
            "ecosystem": "Alpine:v3.10"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20197.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.9.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "faad2",
            "purl": "pkg:apk/alpine/faad2?arch=source",
            "ecosystem": "Alpine:v3.11"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20197.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.9.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "faad2",
            "purl": "pkg:apk/alpine/faad2?arch=source",
            "ecosystem": "Alpine:v3.7"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20197.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.9.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "faad2",
            "purl": "pkg:apk/alpine/faad2?arch=source",
            "ecosystem": "Alpine:v3.8"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20197.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.9.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "faad2",
            "purl": "pkg:apk/alpine/faad2?arch=source",
            "ecosystem": "Alpine:v3.9"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20197.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-23T17:24:37.637722569Z",
      "provider": "osv",
      "upstream": [
        "CVE-2018-20197"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2018-20197"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2018-20197",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 416086,
  "published_at": "2018-12-18T01:29:00.41+00:00"
}