Acknowledged
Created: Jun 19, 2025
Updated: Jun 20, 2025
Found In Version: 10.22.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Kernel
In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]libnvdimm/labels: Fix divide error in nd_label_data_init()[EOL][EOL]If a faulty CXL memory device returns a broken zero LSA size in its[EOL]memory device information (Identify Memory Device (Opcode 4000h), CXL[EOL]spec. 3.1, 8.2.9.9.1.1), a divide error occurs in the libnvdimm[EOL]driver:[EOL][EOL] Oops: divide error: 0000 [#1] PREEMPT SMP NOPTI[EOL] RIP: 0010:nd_label_data_init+0x10e/0x800 [libnvdimm][EOL][EOL]Code and flow:[EOL][EOL]1) CXL Command 4000h returns LSA size = 0[EOL]2) config_size is assigned to zero LSA size (CXL pmem driver):[EOL][EOL]drivers/cxl/pmem.c: .config_size = mds->lsa_size,[EOL][EOL]3) max_xfer is set to zero (nvdimm driver):[EOL][EOL]drivers/nvdimm/label.c: max_xfer = min_t(size_t, ndd->nsarea.max_xfer, config_size);[EOL][EOL]4) A subsequent DIV_ROUND_UP() causes a division by zero:[EOL][EOL]drivers/nvdimm/label.c: /* Make our initial read size a multiple of max_xfer size */[EOL]drivers/nvdimm/label.c: read_size = min(DIV_ROUND_UP(read_size, max_xfer) * max_xfer,[EOL]drivers/nvdimm/label.c- config_size);[EOL][EOL]Fix this by checking the config size parameter by extending an[EOL]existing check.
CREATE(Triage):(User=lchen-cn) [CVE-2025-38072 (https://nvd.nist.gov/vuln/detail/CVE-2025-38072)