CVE-2023-54147 (GCVE-0-2023-54147)
Vulnerability from cvelistv5
Published
2025-12-24 13:06
Modified
2025-12-24 13:06
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: media: platform: mtk-mdp3: Add missing check and free for ida_alloc Add the check for the return value of the ida_alloc in order to avoid NULL pointer dereference. Moreover, free allocated "ctx->id" if mdp_m2m_open fails later in order to avoid memory leak.
Impacted products
Vendor Product Version
Linux Linux Version: 61890ccaefaff89f5babd2c8412fd222c3f5fe38
Version: 61890ccaefaff89f5babd2c8412fd222c3f5fe38
Version: 61890ccaefaff89f5babd2c8412fd222c3f5fe38
Version: 61890ccaefaff89f5babd2c8412fd222c3f5fe38
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/media/platform/mediatek/mdp3/mtk-mdp3-m2m.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "51fc1880e47421ee7b192372e8e86b7bbba40776",
              "status": "affected",
              "version": "61890ccaefaff89f5babd2c8412fd222c3f5fe38",
              "versionType": "git"
            },
            {
              "lessThan": "4c173a65a2b1cc0556c3f6f0bab82e4fdb449522",
              "status": "affected",
              "version": "61890ccaefaff89f5babd2c8412fd222c3f5fe38",
              "versionType": "git"
            },
            {
              "lessThan": "22b72cad501fb75500cc60af4d92de3066fb6fc2",
              "status": "affected",
              "version": "61890ccaefaff89f5babd2c8412fd222c3f5fe38",
              "versionType": "git"
            },
            {
              "lessThan": "d00f592250782538cda87745607695b0fe27dcd4",
              "status": "affected",
              "version": "61890ccaefaff89f5babd2c8412fd222c3f5fe38",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/media/platform/mediatek/mdp3/mtk-mdp3-m2m.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.1"
            },
            {
              "lessThan": "6.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.28",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.2.*",
              "status": "unaffected",
              "version": "6.2.15",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.3.*",
              "status": "unaffected",
              "version": "6.3.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.4",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.28",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2.15",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.3.2",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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-\u003eid\" if mdp_m2m_open fails later in order\nto avoid memory leak."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-24T13:06:59.566Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-54147",
    "datePublished": "2025-12-24T13:06:59.566Z",
    "dateReserved": "2025-12-24T13:02:52.523Z",
    "dateUpdated": "2025-12-24T13:06:59.566Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-54147\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-24T13:16:16.707\",\"lastModified\":\"2025-12-24T13:16:16.707\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"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-\u003eid\\\" if mdp_m2m_open fails later in order\\nto avoid memory leak.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/22b72cad501fb75500cc60af4d92de3066fb6fc2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/4c173a65a2b1cc0556c3f6f0bab82e4fdb449522\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/51fc1880e47421ee7b192372e8e86b7bbba40776\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d00f592250782538cda87745607695b0fe27dcd4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…