All reports
Low

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-72316

Probability of exploitation in the next 30 days: 0.22%

FIRST EPSS · 2026-11-24

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.

A flaw was found in the Linux kernel's device mapper (dm) era target. When the metadata_open() function fails to allocate memory, it returns a NULL pointer. The calling function, era_ctr(), does not correctly validate this return, leading to a NULL pointer dereference when the metadata is accessed. This issue can be triggered by a local attacker, potentially causing a system crash and resulting in a Denial of Service (DoS).