dm-stats: fix a crash if allocation of per-cpu data fails (Linux Linux)

CVE-2026-80963
Not available

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: dm-stats: fix a crash if allocation of per-cpu data fails If "dm_kvzalloc(percpu_alloc_size, cpu_to_node(cpu))" fails, the code jumps to the "out" label and calls dm_stat_free. dm_stat_free does "for_each_possible_cpu(cpu) { dm_kvfree(s->stat_percpu[cpu][0].histogram, s->histogram_alloc_size);", which crashes with NULL pointer dereference if s->stat_percpu[cpu] is NULL. This commit fixes the bug by testing s->stat_percpu[cpu] for NULL before using it.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected fd2ed4d252701d3bbed4cd3e3d267ad469bb832a < e45f0b0c41139810ff395ba2f3cfca1460a5b8a6 ; affected fd2ed4d252701d3bbed4cd3e3d267ad469bb832a < 9805d87d0e26c68ee69da3928e665214d2e2851a ; affected fd2ed4d252701d3bbed4cd3e3d267ad469bb832a < 564d17573ef643c13cf6e9015124a205fa65e704 ; affected fd2ed4d252701d3bbed4cd3e3d267ad469bb832a < 389a50d094e13724f5f45e6d9d6ef734c98ba291 ; affected fd2ed4d252701d3bbed4cd3e3d267ad469bb832a < c3f211b7a277dd404b4e7d23095be964b5b46a27 ; affected fd2ed4d252701d3bbed4cd3e3d267ad469bb832a < 74210fa072960a18bb0eead487585452af722e4f
Linux · Linuxaffected 3.12 ; unaffected 0 < 3.12 ; unaffected 5.10.270 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 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