dm era: fix NULL pointer dereference in metadata_open() (Linux Linux)

CVE-2026-72316
Not available

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

In 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.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected eec40579d84873dfb7021eb24c50360f073237c5 < a705e056c2f3dd067fb2ff414f0537530baa090b ; affected eec40579d84873dfb7021eb24c50360f073237c5 < bd5a80128bdfc93b1cae935a70da000b8c483e6e ; affected eec40579d84873dfb7021eb24c50360f073237c5 < 17eb2ab13edd0b06ce6f996c5fd450d7efabb2e8 ; affected eec40579d84873dfb7021eb24c50360f073237c5 < 889374b8e4a60d13fe4a5a8ae3a311ca93d1a2c3 ; affected eec40579d84873dfb7021eb24c50360f073237c5 < 01c49eae7c6256f2d8cc08210a2bac3ee070e43a ; affected eec40579d84873dfb7021eb24c50360f073237c5 < 14e03ecd3b1b5fc03c082b27a2f8889f8290c30e
Linux · Linuxaffected 3.15 ; unaffected 0 < 3.15 ; unaffected 5.10.261 ≤ 5.10.* ; unaffected 5.15.212 ≤ 5.15.* ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD