{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2023-54147",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-12-24T13:02:52.523Z",
        "datePublished": "2025-12-24T13:06:59.566Z",
        "dateUpdated": "2026-05-11T19:56:23.810Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-05-11T19:56:23.810Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: platform: mtk-mdp3: Add missing check and free for ida_alloc\n\nAdd the check for the return value of the ida_alloc in order to avoid\nNULL pointer dereference.\nMoreover, free allocated \"ctx->id\" if mdp_m2m_open fails later in order\nto avoid memory leak."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/media/platform/mediatek/mdp3/mtk-mdp3-m2m.c"
                    ],
                    "versions": [
                        {
                            "version": "61890ccaefaff89f5babd2c8412fd222c3f5fe38",
                            "lessThan": "51fc1880e47421ee7b192372e8e86b7bbba40776",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "61890ccaefaff89f5babd2c8412fd222c3f5fe38",
                            "lessThan": "4c173a65a2b1cc0556c3f6f0bab82e4fdb449522",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "61890ccaefaff89f5babd2c8412fd222c3f5fe38",
                            "lessThan": "22b72cad501fb75500cc60af4d92de3066fb6fc2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "61890ccaefaff89f5babd2c8412fd222c3f5fe38",
                            "lessThan": "d00f592250782538cda87745607695b0fe27dcd4",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/media/platform/mediatek/mdp3/mtk-mdp3-m2m.c"
                    ],
                    "versions": [
                        {
                            "version": "6.1",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.1",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.28",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.2.15",
                            "lessThanOrEqual": "6.2.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.3.2",
                            "lessThanOrEqual": "6.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.4",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1",
                                    "versionEndExcluding": "6.1.28"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1",
                                    "versionEndExcluding": "6.2.15"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1",
                                    "versionEndExcluding": "6.3.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1",
                                    "versionEndExcluding": "6.4"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/51fc1880e47421ee7b192372e8e86b7bbba40776"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4c173a65a2b1cc0556c3f6f0bab82e4fdb449522"
                },
                {
                    "url": "https://git.kernel.org/stable/c/22b72cad501fb75500cc60af4d92de3066fb6fc2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d00f592250782538cda87745607695b0fe27dcd4"
                }
            ],
            "title": "media: platform: mtk-mdp3: Add missing check and free for ida_alloc",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}