Skip to content
Heist/ feed
Back to feed
UnratedFix available

nvmem: core: fix use-after-free bugs in error paths

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: nvmem: core: fix use-after-free bugs in error paths Fix several instances of error paths in which we call __nvmem_device_put() - which may end up freeing the underlying memory and other resources - and then keep on using the nvmem structure. Always put the reference to the nvmem device as the last step before returning the error code.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.94, 6.18.36, 6.6.160, 7.0.13
CVEs
CVE-2026-53156
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 01:33 UTC · Revision 1

Source evidence

nvmem: core: fix use-after-free bugs in error paths

core-osv · Original source

Published 25 Jun 2026, 08:38 UTC

In the Linux kernel, the following vulnerability has been resolved: nvmem: core: fix use-after-free bugs in error paths Fix several instances of error paths in which we call __nvmem_device_put() - which may end up freeing the underlying memory and other resources - and then keep on using the nvmem structure. Always put the reference to the nvmem device as the last step before returning the error code.

osv:CVE-2026-53156

Kernel

Fixed versions: 6.6.160, 6.12.94, 6.18.36, 7.0.13

Complete source record
{
  "id": "c522992bfd6b6f107c79fe8a81b80b340bf4e734fbdf0116cde78c8c38980c17",
  "url": "https://osv.dev/vulnerability/CVE-2026-53156",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "nvmem: core: fix use-after-free bugs in error paths",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: nvmem: core: fix use-after-free bugs in error paths Fix several instances of error paths in which we call __nvmem_device_put() - which may end up freeing the underlying memory and other resources - and then keep on using the nvmem structure. Always put the reference to the nvmem device as the last step before returning the error code.",
    "evidence": "osv:CVE-2026-53156",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.160",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.94",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.36",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.0.13",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-53156",
      "aliases": [
        "CVE-2026-53156"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e888d445ac33a5b0288d670ecd970908b13f07cd"
                },
                {
                  "fixed": "6cdcf0d16c80900f42d60252480cd131c1a83d23"
                },
                {
                  "fixed": "e0d38bf47a72da2f02c9fa6f752cd66d977cd7f7"
                },
                {
                  "fixed": "cb85ef5a227b3662b88f4d849a1aad43bfe7f5ae"
                },
                {
                  "fixed": "40e2a459c0dd1333b2343831480a0ad80dc07614"
                },
                {
                  "fixed": "5b6b6fc491899d583eaa75344e094796ae9b530b"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53156.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "6.6.160"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.94"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.36"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.0.13"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53156.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.220667162Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/40e2a459c0dd1333b2343831480a0ad80dc07614",
        "https://git.kernel.org/stable/c/5b6b6fc491899d583eaa75344e094796ae9b530b",
        "https://git.kernel.org/stable/c/6cdcf0d16c80900f42d60252480cd131c1a83d23",
        "https://git.kernel.org/stable/c/cb85ef5a227b3662b88f4d849a1aad43bfe7f5ae",
        "https://git.kernel.org/stable/c/e0d38bf47a72da2f02c9fa6f752cd66d977cd7f7",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53156.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-53156",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53156.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-53156",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 509125,
  "published_at": "2026-06-25T08:38:39.495+00:00"
}