{"id":"CVE-2026-53156","state":"PUBLISHED","title":"nvmem: core: fix use-after-free bugs in error paths","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmem: core: fix use-after-free bugs in error paths\n\nFix several instances of error paths in which we call\n__nvmem_device_put() - which may end up freeing the underlying memory\nand other resources - and then keep on using the nvmem structure. Always\nput the reference to the nvmem device as the last step before returning\nthe error code.","publishedAt":"2026-06-25T08:38:39.495Z","updatedAt":"2026-10-21T12:42:11.803Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e888d445ac33a5b0288d670ecd970908b13f07cd","status":"affected","lessThan":"6cdcf0d16c80900f42d60252480cd131c1a83d23","versionType":"git"},{"version":"e888d445ac33a5b0288d670ecd970908b13f07cd","status":"affected","lessThan":"e0d38bf47a72da2f02c9fa6f752cd66d977cd7f7","versionType":"git"},{"version":"e888d445ac33a5b0288d670ecd970908b13f07cd","status":"affected","lessThan":"cb85ef5a227b3662b88f4d849a1aad43bfe7f5ae","versionType":"git"},{"version":"e888d445ac33a5b0288d670ecd970908b13f07cd","status":"affected","lessThan":"40e2a459c0dd1333b2343831480a0ad80dc07614","versionType":"git"},{"version":"e888d445ac33a5b0288d670ecd970908b13f07cd","status":"affected","lessThan":"5b6b6fc491899d583eaa75344e094796ae9b530b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvmem/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.20","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.20","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.94","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.36","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.13","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvmem/core.c"]}],"references":["https://git.kernel.org/stable/c/6cdcf0d16c80900f42d60252480cd131c1a83d23","https://git.kernel.org/stable/c/e0d38bf47a72da2f02c9fa6f752cd66d977cd7f7","https://git.kernel.org/stable/c/cb85ef5a227b3662b88f4d849a1aad43bfe7f5ae","https://git.kernel.org/stable/c/40e2a459c0dd1333b2343831480a0ad80dc07614","https://git.kernel.org/stable/c/5b6b6fc491899d583eaa75344e094796ae9b530b"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/53xxx/CVE-2026-53156.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-53156","state":"PUBLISHED","datePublished":"2026-06-25T08:38:39.495Z","dateUpdated":"2026-10-21T12:42:11.803Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-06-09T07:44:35.388Z"},"containers":{"cna":{"title":"nvmem: core: fix use-after-free bugs in error paths","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmem: core: fix use-after-free bugs in error paths\n\nFix several instances of error paths in which we call\n__nvmem_device_put() - which may end up freeing the underlying memory\nand other resources - and then keep on using the nvmem structure. Always\nput the reference to the nvmem device as the last step before returning\nthe error code."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e888d445ac33a5b0288d670ecd970908b13f07cd","status":"affected","lessThan":"6cdcf0d16c80900f42d60252480cd131c1a83d23","versionType":"git"},{"version":"e888d445ac33a5b0288d670ecd970908b13f07cd","status":"affected","lessThan":"e0d38bf47a72da2f02c9fa6f752cd66d977cd7f7","versionType":"git"},{"version":"e888d445ac33a5b0288d670ecd970908b13f07cd","status":"affected","lessThan":"cb85ef5a227b3662b88f4d849a1aad43bfe7f5ae","versionType":"git"},{"version":"e888d445ac33a5b0288d670ecd970908b13f07cd","status":"affected","lessThan":"40e2a459c0dd1333b2343831480a0ad80dc07614","versionType":"git"},{"version":"e888d445ac33a5b0288d670ecd970908b13f07cd","status":"affected","lessThan":"5b6b6fc491899d583eaa75344e094796ae9b530b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvmem/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.20","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.20","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.94","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.36","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.13","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvmem/core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6cdcf0d16c80900f42d60252480cd131c1a83d23"},{"url":"https://git.kernel.org/stable/c/e0d38bf47a72da2f02c9fa6f752cd66d977cd7f7"},{"url":"https://git.kernel.org/stable/c/cb85ef5a227b3662b88f4d849a1aad43bfe7f5ae"},{"url":"https://git.kernel.org/stable/c/40e2a459c0dd1333b2343831480a0ad80dc07614"},{"url":"https://git.kernel.org/stable/c/5b6b6fc491899d583eaa75344e094796ae9b530b"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-21T12:42:11.803Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"6.12.94"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"6.18.36"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"7.0.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}