CVE-2021-40566

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-40566
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-40566.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-40566
Downstream
Published
2022-01-12T22:15:07Z
Modified
2025-10-15T13:17:05.885987Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

A Segmentation fault casued by heap use after free vulnerability exists in Gpac through 1.0.1 via the mpgviddmxprocess function in reframempgvid.c when using mp4box, which causes a denial of service.

References

Affected packages

Git / github.com/gpac/gpac

Affected ranges

Type
GIT
Repo
https://github.com/gpac/gpac
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.5.2
v0.6.0
v0.6.1
v0.7.0
v0.7.1
v0.8.0
v0.9.0
v0.9.0-preview

v1.*

v1.0.0
v1.0.1

Database specific

vanir_signatures

[
    {
        "digest": {
            "function_hash": "305625114589442320355981792635002388920",
            "length": 11396.0
        },
        "target": {
            "file": "src/filters/reframe_mpgvid.c",
            "function": "mpgviddmx_process"
        },
        "id": "CVE-2021-40566-16fd738c",
        "source": "https://github.com/gpac/gpac/commit/96047e0e6166407c40cc19f4e94fb35cd7624391",
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Function"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "142280585278956617665387756210879740676",
                "309955364860874559081365588692130465606",
                "319703081384836031728711344227518151867",
                "132175666893138713923828993571759094939",
                "219797106537938709166819118999313962213",
                "177739104687371892988919439237520125235",
                "309457119218059962258650711748561420964",
                "153648196953304188186569535124420753986",
                "26889089776504112179443594280174170776",
                "72127980592832060232464495774616836053",
                "31585927435235774083642036324626797114",
                "90318461109913242838715139466237489602",
                "331574364385427865901560108678239943714",
                "220943766762355409706527633548157077924",
                "177739104687371892988919439237520125235",
                "309457119218059962258650711748561420964",
                "153648196953304188186569535124420753986",
                "26889089776504112179443594280174170776"
            ]
        },
        "target": {
            "file": "src/filters/reframe_mpgvid.c"
        },
        "id": "CVE-2021-40566-2b29b787",
        "source": "https://github.com/gpac/gpac/commit/96047e0e6166407c40cc19f4e94fb35cd7624391",
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Line"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "269966444420398294272664563764939806933",
                "144984144068439176208980274542536662297",
                "209682731660002428161403518721492660025",
                "143647077360532050751765031233056589362"
            ]
        },
        "target": {
            "file": "src/filters/dec_xvid.c"
        },
        "id": "CVE-2021-40566-7f3cb7f1",
        "source": "https://github.com/gpac/gpac/commit/96047e0e6166407c40cc19f4e94fb35cd7624391",
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Line"
    },
    {
        "digest": {
            "function_hash": "283974345856270385246024446578108681975",
            "length": 2820.0
        },
        "target": {
            "file": "src/filters/dec_xvid.c",
            "function": "xviddec_configure_pid"
        },
        "id": "CVE-2021-40566-d0557a92",
        "source": "https://github.com/gpac/gpac/commit/96047e0e6166407c40cc19f4e94fb35cd7624391",
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Function"
    }
]