{"id":"CVE-2025-21671","state":"PUBLISHED","title":"zram: fix potential UAF of zram table","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nzram: fix potential UAF of zram table\n\nIf zram_meta_alloc failed early, it frees allocated zram->table without\nsetting it NULL.  Which will potentially cause zram_meta_free to access\nthe table if user reset an failed and uninitialized device.","publishedAt":"2025-01-31T11:25:34.546Z","updatedAt":"2026-05-11T21:04:11.691Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ac3b5366b9b7c9d97b606532ceab43d2329a22f3","status":"affected","lessThan":"fe3de867f94819ba0f28e035c0b0182150147d95","versionType":"git"},{"version":"0b5b0b65561b34e6e360de317e4bcd031bfabf42","status":"affected","lessThan":"571d3f6045cd3a6d9f6aec33b678f3ffe97582ef","versionType":"git"},{"version":"6fb92e9a52e3feae309a213950f21dfcd1eb0b40","status":"affected","lessThan":"902ef8f16d5ca77edc77c30656be54186c1e99b7","versionType":"git"},{"version":"74363ec674cb172d8856de25776c8f3103f05e2f","status":"affected","lessThan":"212fe1c0df4a150fb6298db2cfff267ceaba5402","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/block/zram/zram_drv.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6.1.122","status":"affected","lessThan":"6.1.127","versionType":"semver"},{"version":"6.6.68","status":"affected","lessThan":"6.6.74","versionType":"semver"},{"version":"6.12.7","status":"affected","lessThan":"6.12.11","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/block/zram/zram_drv.c"]}],"references":["https://git.kernel.org/stable/c/fe3de867f94819ba0f28e035c0b0182150147d95","https://git.kernel.org/stable/c/571d3f6045cd3a6d9f6aec33b678f3ffe97582ef","https://git.kernel.org/stable/c/902ef8f16d5ca77edc77c30656be54186c1e99b7","https://git.kernel.org/stable/c/212fe1c0df4a150fb6298db2cfff267ceaba5402","https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/21xxx/CVE-2025-21671.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-21671","state":"PUBLISHED","datePublished":"2025-01-31T11:25:34.546Z","dateUpdated":"2026-05-11T21:04:11.691Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.735Z"},"containers":{"cna":{"title":"zram: fix potential UAF of zram table","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nzram: fix potential UAF of zram table\n\nIf zram_meta_alloc failed early, it frees allocated zram->table without\nsetting it NULL.  Which will potentially cause zram_meta_free to access\nthe table if user reset an failed and uninitialized device."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ac3b5366b9b7c9d97b606532ceab43d2329a22f3","status":"affected","lessThan":"fe3de867f94819ba0f28e035c0b0182150147d95","versionType":"git"},{"version":"0b5b0b65561b34e6e360de317e4bcd031bfabf42","status":"affected","lessThan":"571d3f6045cd3a6d9f6aec33b678f3ffe97582ef","versionType":"git"},{"version":"6fb92e9a52e3feae309a213950f21dfcd1eb0b40","status":"affected","lessThan":"902ef8f16d5ca77edc77c30656be54186c1e99b7","versionType":"git"},{"version":"74363ec674cb172d8856de25776c8f3103f05e2f","status":"affected","lessThan":"212fe1c0df4a150fb6298db2cfff267ceaba5402","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/block/zram/zram_drv.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6.1.122","status":"affected","lessThan":"6.1.127","versionType":"semver"},{"version":"6.6.68","status":"affected","lessThan":"6.6.74","versionType":"semver"},{"version":"6.12.7","status":"affected","lessThan":"6.12.11","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/block/zram/zram_drv.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/fe3de867f94819ba0f28e035c0b0182150147d95"},{"url":"https://git.kernel.org/stable/c/571d3f6045cd3a6d9f6aec33b678f3ffe97582ef"},{"url":"https://git.kernel.org/stable/c/902ef8f16d5ca77edc77c30656be54186c1e99b7"},{"url":"https://git.kernel.org/stable/c/212fe1c0df4a150fb6298db2cfff267ceaba5402"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:04:11.691Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.122","versionEndExcluding":"6.1.127"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.68","versionEndExcluding":"6.6.74"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.7","versionEndExcluding":"6.12.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2025-21671","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-02-10T17:11:50.678589Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-10T17:21:05.639Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:58:51.664Z"}}]}}}