CVE-2026-89559
libnvdimm/labels: Prevent integer overflow in __nd_label_validate()
Reported by linux · Published September 11, 2026
In the Linux kernel, the following vulnerability has been resolved: libnvdimm/labels: Prevent integer overflow in __nd_label_validate() The on-media namespace index field nslot is a u32 read from the DIMM label storage area. __nd_label_validate() bounds it against the config area size, but sizeof_namespace_label() returns unsigned, so the product nslot * label_size is evaluated in 32-bit and wraps modulo 2^32 before the comparison. A crafted nslot passes the bound and is then used as the loop trip count in nd_label_data_init(), whose memset() walks off the end of the config_size buffer: an out-of-bounds write. The field is not trusted -- it comes from the medium, or from userspace via ND_CMD_SET_CONFIG_DATA. Evaluate the product in 64-bit so the bound check is exact; conforming labels are unaffected. The check was safe when introduced by commit 4a826c83db4e ("libnvdimm: namespace indices: read and validate"): it multiplied by sizeof(struct nd_namespace_label), a size_t, so on a 64-bit build the product did not wrap. Commit 564e871aa66f ("libnvdimm, label: add v1.2 nvdimm label definitions") narrowed it to 32 bits when the label size became a runtime value read via sizeof_namespace_label().
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf | Amazon Linux | 1:6.1.188-233.385.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.110-135.201.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.110-135.201.amzn2023 |
| kernel-tools | Amazon Linux | 1:6.1.188-233.385.amzn2023 |
| kernel6.18-tools | Amazon Linux | 1:6.18.51-120.162.amzn2023 |
| Linux | Linux | b4975f2ff6c82adc24ae547f029f82530ba43cfe, 93967bfb17dab66642c57e609c99e1a91fe11278, 6030597ec683d1e5b46445f888bb5c7776b5a0c4, 4.13, 1c391696d2791f82ae462e11da9a0d96f90b240c |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 564e871aa66f548a947b23808d3140f326381f0c, 564e871aa66f548a947b23808d3140f326381f0c, 564e871aa66f548a947b23808d3140f326381f0c |
| Linux | Linux | 4.13, 0, 5.10.270 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| Linux | Linux | 564e871aa66f548a947b23808d3140f326381f0c, 7.3, 6.6.157 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.18.51-120.162 | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-livepatch-6.12.110-135.201 | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
…and 18 more
Timeline
- Sep 11, 2026 CVE Published
- Sep 12, 2026 EPSS Score (10 in total, the first dated here)
- Sep 12, 2026 Coalition ESS Score
- Oct 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-89559
vulnetix vdb fixes CVE-2026-89559
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-89559/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart