dm era: fix NULL pointer dereference in metadata_open()

Summary

CVECVE-2026-72316
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-08-15 06:22:04 UTC
Updated2026-08-17 06:18:34 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: dm era: fix NULL pointer dereference in metadata_open() metadata_open() returns NULL when kzalloc_obj() fails, but the caller era_ctr() only checks IS_ERR(md). Since IS_ERR(NULL) returns false, the NULL pointer is treated as a valid result and later assigned to era->md, leading to a NULL pointer dereference when the metadata is accessed. Fix this by returning ERR_PTR(-ENOMEM) on allocation failure, consistent with dm-cache-metadata.c, dm-thin-metadata.c, and dm-clone-metadata.c which all use ERR_PTR(-ENOMEM) for the same pattern.

Risk And Classification

EPSS: 0.002200000 probability, percentile 0.127050000 (date 2026-08-17)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected eec40579d84873dfb7021eb24c50360f073237c5 a705e056c2f3dd067fb2ff414f0537530baa090b git Not specified
CNA Linux Linux affected eec40579d84873dfb7021eb24c50360f073237c5 bd5a80128bdfc93b1cae935a70da000b8c483e6e git Not specified
CNA Linux Linux affected eec40579d84873dfb7021eb24c50360f073237c5 17eb2ab13edd0b06ce6f996c5fd450d7efabb2e8 git Not specified
CNA Linux Linux affected eec40579d84873dfb7021eb24c50360f073237c5 889374b8e4a60d13fe4a5a8ae3a311ca93d1a2c3 git Not specified
CNA Linux Linux affected eec40579d84873dfb7021eb24c50360f073237c5 01c49eae7c6256f2d8cc08210a2bac3ee070e43a git Not specified
CNA Linux Linux affected eec40579d84873dfb7021eb24c50360f073237c5 14e03ecd3b1b5fc03c082b27a2f8889f8290c30e git Not specified
CNA Linux Linux affected eec40579d84873dfb7021eb24c50360f073237c5 b69ea153d30ce19ca8997eeeca1e2219fae5a29b git Not specified
CNA Linux Linux affected eec40579d84873dfb7021eb24c50360f073237c5 9ae672606c17891d90b282e3490b817620549599 git Not specified
CNA Linux Linux affected 3.15 Not specified
CNA Linux Linux unaffected 3.15 semver Not specified
CNA Linux Linux unaffected 5.10.261 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.212 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.178 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.145 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.97 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.40 6.18.* semver Not specified
CNA Linux Linux unaffected 7.1.5 7.1.* semver Not specified
CNA Linux Linux unaffected 7.2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/889374b8e4a60d13fe4a5a8ae3a311ca93d1a2c3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b69ea153d30ce19ca8997eeeca1e2219fae5a29b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9ae672606c17891d90b282e3490b817620549599 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/bd5a80128bdfc93b1cae935a70da000b8c483e6e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/01c49eae7c6256f2d8cc08210a2bac3ee070e43a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/14e03ecd3b1b5fc03c082b27a2f8889f8290c30e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a705e056c2f3dd067fb2ff414f0537530baa090b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/17eb2ab13edd0b06ce6f996c5fd450d7efabb2e8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report