Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-40564

A Segmentation fault caused by null pointer dereference vulnerability eists in Gpac through 1.0.2 via the avc_parse_slice function in av_parsers.c when using mp4box, which causes a denial of service.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-40564
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:38 UTC · Revision 1

Source evidence

CVE-2021-40564

core-osv · Original source

Published 12 Jan 2022, 22:15 UTC

A Segmentation fault caused by null pointer dereference vulnerability eists in Gpac through 1.0.2 via the avc_parse_slice function in av_parsers.c when using mp4box, which causes a denial of service.

osv:CVE-2021-40564
Complete source record
{
  "id": "8575bca170037445d72c89aaec7e74957e71ea825bdb65895e7747a574b34865",
  "url": "https://osv.dev/vulnerability/CVE-2021-40564",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-40564",
    "summary": "A Segmentation fault caused by null pointer dereference vulnerability eists in Gpac through 1.0.2 via the avc_parse_slice function in av_parsers.c when using mp4box, which causes a denial of service.",
    "evidence": "osv:CVE-2021-40564",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-40564",
      "aliases": [
        "CVE-2021-40564"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gpac/gpac",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "cf6771c857eb9a290e2c19ddacfdd3ed98b27618"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "cf6771c857eb9a290e2c19ddacfdd3ed98b27618"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.0.0",
            "v0.9.0",
            "v0.9.0-preview",
            "v0.6.0",
            "v0.5.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40564.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-40564-021e478c",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "33139317742673087143301621788696875760",
                    "40067023463941325579072277044494246212",
                    "6858436001336251329503023834040476408",
                    "215858056015409008606797735826477519635",
                    "280664615792475706385971753107292148226",
                    "285671375156926123525445493399398643339",
                    "223018829820854772209840817076401493095",
                    "218324005861058336068488887534003891768",
                    "277825195111491555614094537885684252686",
                    "256195421321412857773894656983395858737"
                  ]
                },
                "source": "https://github.com/gpac/gpac/commit/cf6771c857eb9a290e2c19ddacfdd3ed98b27618",
                "target": {
                  "file": "src/media_tools/av_parsers.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-40564-27059077",
                "digest": {
                  "length": 733,
                  "function_hash": "242501853663965271778312182443974469698"
                },
                "source": "https://github.com/gpac/gpac/commit/cf6771c857eb9a290e2c19ddacfdd3ed98b27618",
                "target": {
                  "file": "src/media_tools/av_parsers.c",
                  "function": "gf_bs_read_ue_log_idx3"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-40564-a254b421",
                "digest": {
                  "length": 4231,
                  "function_hash": "116652901503841662658803101052099390509"
                },
                "source": "https://github.com/gpac/gpac/commit/cf6771c857eb9a290e2c19ddacfdd3ed98b27618",
                "target": {
                  "file": "src/media_tools/av_parsers.c",
                  "function": "avc_parse_slice"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:08:48Z"
          }
        }
      ],
      "modified": "2026-10-20T14:08:48.800628928Z",
      "provider": "osv",
      "references": [
        "https://github.com/gpac/gpac/issues/1898",
        "https://www.debian.org/security/2023/dsa-5411",
        "https://github.com/gpac/gpac/commit/cf6771c857eb9a290e2c19ddacfdd3ed98b27618"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:gpac:gpac:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "gpac:gpac",
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "1.0.2"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "1.0.2"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-40564",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388577,
  "published_at": "2022-01-12T22:15:07.847+00:00"
}