CVE-2025-38072

libnvdimm/labels: Fix divide error in nd_label_data_init()

No CVSS score yet EPSS 0.23%

Published 18 Jun 2025 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2025-38072

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38072 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

libnvdimm/labels: Fix divide error in nd_label_data_init()

If a faulty CXL memory device returns a broken zero LSA size in its memory device information (Identify Memory Device (Opcode 4000h), CXL spec. 3.1, 8.2.9.9.1.1), a divide error occurs in the libnvdimm driver:

Oops: divide error: 0000 [#1] PREEMPT SMP NOPTI RIP: 0010:nd_label_data_init+0x10e/0x800 [libnvdimm]

Code and flow:

1) CXL Command 4000h returns LSA size = 0 2) config_size is assigned to zero LSA size (CXL pmem driver):

drivers/cxl/pmem.c: .config_size = mds->lsa_size,

3) max_xfer is set to zero (nvdimm driver):

drivers/nvdimm/label.c: max_xfer = min_t(size_t, ndd->nsarea.max_xfer, config_size);

4) A subsequent DIV_ROUND_UP() causes a division by zero:

drivers/nvdimm/label.c: /* Make our initial read size a multiple of max_xfer size */ drivers/nvdimm/label.c: read_size = min(DIV_ROUND_UP(read_size, max_xfer) * max_xfer, drivers/nvdimm/label.c- config_size);

Fix this by checking the config size parameter by extending an existing check.

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7d47aad4570e5e6e9a8162bb417ca9b74132f27c, before 2bd4a938d2eda96ab7288b8fa5aae84a1de8c4ca
affected from 7d47aad4570e5e6e9a8162bb417ca9b74132f27c, before 396c46d3f59a18ebcc500640e749f16e197d472b
affected from 7d47aad4570e5e6e9a8162bb417ca9b74132f27c, before f49c337037df029440a8390380dd35d2cf5924d3
affected from 7d47aad4570e5e6e9a8162bb417ca9b74132f27c, before db1aef51b8e66a77f76b1250b914589c31a0a0ed
affected from 7d47aad4570e5e6e9a8162bb417ca9b74132f27c, before ea3d95e05e97ea20fd6513f647393add16fce3b2
affected from 7d47aad4570e5e6e9a8162bb417ca9b74132f27c, before 1d1e1efad1cf049e888bf175a5c6be85d792620c
affected from 7d47aad4570e5e6e9a8162bb417ca9b74132f27c, before e14347f647ca6d76fe1509b6703e340f2d5e2716
affected from 7d47aad4570e5e6e9a8162bb417ca9b74132f27c, before ef1d3455bbc1922f94a91ed58d3d7db440652959
Other versions: unaffected
Linux
affected 4.20
unaffected before 4.20
unaffected from 5.4.294 up to and including 5.4.*
unaffected from 5.10.238 up to and including 5.10.*
unaffected from 5.15.185 up to and including 5.15.*
unaffected from 6.1.141 up to and including 6.1.*
unaffected from 6.6.93 up to and including 6.6.*
unaffected from 6.12.31 up to and including 6.12.*
unaffected from 6.14.9 up to and including 6.14.*
unaffected 6.15 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38072 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38072

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38072
trivy image --scanners vuln IMAGE | grep CVE-2025-38072

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38072 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.