CVE-2026-53213 (GCVE-0-2026-53213)

Vulnerability from cvelistv5 – Published: 2026-06-25 08:39 – Updated: 2026-06-25 08:39
VLAI
Title
drm/vc4: fix krealloc() memory leak
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/vc4: fix krealloc() memory leak Don't just overwrite the original pointer passed to krealloc() with its return value without checking latter: MEM = krealloc(MEM, SZ, GFP); If krealloc() returns NULL, that erases the pointer to the still allocated memory, hence leaks this memory. Instead, use a temporary variable, check it's not NULL and only then assign it to the original pointer: TMP = krealloc(MEM, SZ, GFP); if (!TMP) return; MEM = TMP; While on it, use krealloc_array().
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 6d45c81d229d71da54d374143e7d6abad4c0cf31 , < 30165a09f76eaf34951c818eb5d9d6e4771d76f6 (git)
Affected: 6d45c81d229d71da54d374143e7d6abad4c0cf31 , < fd87d6966041e33ef7d2e5dc59f9a52b71c6ae5f (git)
Affected: 6d45c81d229d71da54d374143e7d6abad4c0cf31 , < e0ce103e89d61eef70edc1d1ae3bfd4c0aacbc2e (git)
Affected: 6d45c81d229d71da54d374143e7d6abad4c0cf31 , < c034aa0b1ba5f49cbdf8ef193d6ec714d74aac27 (git)
Affected: 6d45c81d229d71da54d374143e7d6abad4c0cf31 , < 02f5e4db57c0cdd7bac89d503b301a093a0fa95c (git)
Affected: 6d45c81d229d71da54d374143e7d6abad4c0cf31 , < 4fc692dc6df5bc777cc1bcebf95179e28594875f (git)
Affected: 6d45c81d229d71da54d374143e7d6abad4c0cf31 , < 5d563a5da8717629ae72f9eadf1e0e340bd1658b (git)
Create a notification for this product.
Linux Linux Affected: 4.8
Unaffected: 0 , < 4.8 (semver)
Unaffected: 5.15.210 , ≤ 5.15.* (semver)
Unaffected: 6.1.176 , ≤ 6.1.* (semver)
Unaffected: 6.6.143 , ≤ 6.6.* (semver)
Unaffected: 6.12.94 , ≤ 6.12.* (semver)
Unaffected: 6.18.36 , ≤ 6.18.* (semver)
Unaffected: 7.0.13 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/vc4/vc4_validate_shaders.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "30165a09f76eaf34951c818eb5d9d6e4771d76f6",
              "status": "affected",
              "version": "6d45c81d229d71da54d374143e7d6abad4c0cf31",
              "versionType": "git"
            },
            {
              "lessThan": "fd87d6966041e33ef7d2e5dc59f9a52b71c6ae5f",
              "status": "affected",
              "version": "6d45c81d229d71da54d374143e7d6abad4c0cf31",
              "versionType": "git"
            },
            {
              "lessThan": "e0ce103e89d61eef70edc1d1ae3bfd4c0aacbc2e",
              "status": "affected",
              "version": "6d45c81d229d71da54d374143e7d6abad4c0cf31",
              "versionType": "git"
            },
            {
              "lessThan": "c034aa0b1ba5f49cbdf8ef193d6ec714d74aac27",
              "status": "affected",
              "version": "6d45c81d229d71da54d374143e7d6abad4c0cf31",
              "versionType": "git"
            },
            {
              "lessThan": "02f5e4db57c0cdd7bac89d503b301a093a0fa95c",
              "status": "affected",
              "version": "6d45c81d229d71da54d374143e7d6abad4c0cf31",
              "versionType": "git"
            },
            {
              "lessThan": "4fc692dc6df5bc777cc1bcebf95179e28594875f",
              "status": "affected",
              "version": "6d45c81d229d71da54d374143e7d6abad4c0cf31",
              "versionType": "git"
            },
            {
              "lessThan": "5d563a5da8717629ae72f9eadf1e0e340bd1658b",
              "status": "affected",
              "version": "6d45c81d229d71da54d374143e7d6abad4c0cf31",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/vc4/vc4_validate_shaders.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.8"
            },
            {
              "lessThan": "4.8",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.210",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.176",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.143",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.94",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.36",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.210",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.176",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.143",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.94",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.36",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.13",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "4.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/vc4: fix krealloc() memory leak\n\nDon\u0027t just overwrite the original pointer passed to krealloc()\nwith its return value without checking latter:\n\n    MEM = krealloc(MEM, SZ, GFP);\n\nIf krealloc() returns NULL, that erases the pointer\nto the still allocated memory, hence leaks this memory.\nInstead, use a temporary variable, check it\u0027s not NULL\nand only then assign it to the original pointer:\n\n    TMP = krealloc(MEM, SZ, GFP);\n    if (!TMP) return;\n    MEM = TMP;\n\nWhile on it, use krealloc_array()."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-06-25T08:39:17.552Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/30165a09f76eaf34951c818eb5d9d6e4771d76f6"
        },
        {
          "url": "https://git.kernel.org/stable/c/fd87d6966041e33ef7d2e5dc59f9a52b71c6ae5f"
        },
        {
          "url": "https://git.kernel.org/stable/c/e0ce103e89d61eef70edc1d1ae3bfd4c0aacbc2e"
        },
        {
          "url": "https://git.kernel.org/stable/c/c034aa0b1ba5f49cbdf8ef193d6ec714d74aac27"
        },
        {
          "url": "https://git.kernel.org/stable/c/02f5e4db57c0cdd7bac89d503b301a093a0fa95c"
        },
        {
          "url": "https://git.kernel.org/stable/c/4fc692dc6df5bc777cc1bcebf95179e28594875f"
        },
        {
          "url": "https://git.kernel.org/stable/c/5d563a5da8717629ae72f9eadf1e0e340bd1658b"
        }
      ],
      "title": "drm/vc4: fix krealloc() memory leak",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-53213",
    "datePublished": "2026-06-25T08:39:17.552Z",
    "dateReserved": "2026-06-09T07:44:35.392Z",
    "dateUpdated": "2026-06-25T08:39:17.552Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-53213",
      "date": "2026-07-01",
      "epss": "0.0018",
      "percentile": "0.07798"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-53213\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-06-25T09:16:38.930\",\"lastModified\":\"2026-06-30T14:44:27.313\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ndrm/vc4: fix krealloc() memory leak\\n\\nDon\u0027t just overwrite the original pointer passed to krealloc()\\nwith its return value without checking latter:\\n\\n    MEM = krealloc(MEM, SZ, GFP);\\n\\nIf krealloc() returns NULL, that erases the pointer\\nto the still allocated memory, hence leaks this memory.\\nInstead, use a temporary variable, check it\u0027s not NULL\\nand only then assign it to the original pointer:\\n\\n    TMP = krealloc(MEM, SZ, GFP);\\n    if (!TMP) return;\\n    MEM = TMP;\\n\\nWhile on it, use krealloc_array().\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/gpu/drm/vc4/vc4_validate_shaders.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6d45c81d229d71da54d374143e7d6abad4c0cf31\",\"lessThan\":\"30165a09f76eaf34951c818eb5d9d6e4771d76f6\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6d45c81d229d71da54d374143e7d6abad4c0cf31\",\"lessThan\":\"fd87d6966041e33ef7d2e5dc59f9a52b71c6ae5f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6d45c81d229d71da54d374143e7d6abad4c0cf31\",\"lessThan\":\"e0ce103e89d61eef70edc1d1ae3bfd4c0aacbc2e\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6d45c81d229d71da54d374143e7d6abad4c0cf31\",\"lessThan\":\"c034aa0b1ba5f49cbdf8ef193d6ec714d74aac27\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6d45c81d229d71da54d374143e7d6abad4c0cf31\",\"lessThan\":\"02f5e4db57c0cdd7bac89d503b301a093a0fa95c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6d45c81d229d71da54d374143e7d6abad4c0cf31\",\"lessThan\":\"4fc692dc6df5bc777cc1bcebf95179e28594875f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6d45c81d229d71da54d374143e7d6abad4c0cf31\",\"lessThan\":\"5d563a5da8717629ae72f9eadf1e0e340bd1658b\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/gpu/drm/vc4/vc4_validate_shaders.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"4.8\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"4.8\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.210\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.176\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.143\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.94\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.36\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.13\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/02f5e4db57c0cdd7bac89d503b301a093a0fa95c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/30165a09f76eaf34951c818eb5d9d6e4771d76f6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/4fc692dc6df5bc777cc1bcebf95179e28594875f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5d563a5da8717629ae72f9eadf1e0e340bd1658b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c034aa0b1ba5f49cbdf8ef193d6ec714d74aac27\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e0ce103e89d61eef70edc1d1ae3bfd4c0aacbc2e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fd87d6966041e33ef7d2e5dc59f9a52b71c6ae5f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…