{"api_version":"1","generated_at":"2026-09-12T02:38:36+00:00","cve":"CVE-2026-89559","urls":{"html":"https://cve.report/CVE-2026-89559","api":"https://cve.report/api/cve/CVE-2026-89559.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-89559","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-89559"},"summary":{"title":"libnvdimm/labels: Prevent integer overflow in __nd_label_validate()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibnvdimm/labels: Prevent integer overflow in __nd_label_validate()\n\nThe on-media namespace index field nslot is a u32 read from the DIMM\nlabel storage area.  __nd_label_validate() bounds it against the config\narea size, but sizeof_namespace_label() returns unsigned, so the product\nnslot * label_size is evaluated in 32-bit and wraps modulo 2^32 before\nthe comparison.  A crafted nslot passes the bound and is then used as the\nloop trip count in nd_label_data_init(), whose memset() walks off the end\nof the config_size buffer: an out-of-bounds write.\n\nThe field is not trusted -- it comes from the medium, or from userspace\nvia ND_CMD_SET_CONFIG_DATA.  Evaluate the product in 64-bit so the bound\ncheck is exact; conforming labels are unaffected.\n\nThe check was safe when introduced by commit 4a826c83db4e (\"libnvdimm:\nnamespace indices: read and validate\"): it multiplied by sizeof(struct\nnd_namespace_label), a size_t, so on a 64-bit build the product did not\nwrap.  Commit 564e871aa66f (\"libnvdimm, label: add v1.2 nvdimm label\ndefinitions\") narrowed it to 32 bits when the label size became a runtime\nvalue read via sizeof_namespace_label().","state":"PUBLISHED","assigner":"Linux","published_at":"2026-09-11 20:19:39","updated_at":"2026-09-11 20:19:39"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/69a734359639fca16a0dd73ab17a34943e76c68b","name":"https://git.kernel.org/stable/c/69a734359639fca16a0dd73ab17a34943e76c68b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/037770686126155eafc44501312989e2837b9659","name":"https://git.kernel.org/stable/c/037770686126155eafc44501312989e2837b9659","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e057efcc9c71d90099d9ee00bed0748d0e9fd586","name":"https://git.kernel.org/stable/c/e057efcc9c71d90099d9ee00bed0748d0e9fd586","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/09e649117c54b7e1c004f22eaa19efbadd9ac856","name":"https://git.kernel.org/stable/c/09e649117c54b7e1c004f22eaa19efbadd9ac856","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-89559","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89559","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 564e871aa66f548a947b23808d3140f326381f0c e057efcc9c71d90099d9ee00bed0748d0e9fd586 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 564e871aa66f548a947b23808d3140f326381f0c 09e649117c54b7e1c004f22eaa19efbadd9ac856 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 564e871aa66f548a947b23808d3140f326381f0c 69a734359639fca16a0dd73ab17a34943e76c68b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 564e871aa66f548a947b23808d3140f326381f0c 037770686126155eafc44501312989e2837b9659 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.13","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.109 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.50 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.4 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/nvdimm/label.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"e057efcc9c71d90099d9ee00bed0748d0e9fd586","status":"affected","version":"564e871aa66f548a947b23808d3140f326381f0c","versionType":"git"},{"lessThan":"09e649117c54b7e1c004f22eaa19efbadd9ac856","status":"affected","version":"564e871aa66f548a947b23808d3140f326381f0c","versionType":"git"},{"lessThan":"69a734359639fca16a0dd73ab17a34943e76c68b","status":"affected","version":"564e871aa66f548a947b23808d3140f326381f0c","versionType":"git"},{"lessThan":"037770686126155eafc44501312989e2837b9659","status":"affected","version":"564e871aa66f548a947b23808d3140f326381f0c","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/nvdimm/label.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.13"},{"lessThan":"4.13","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.109","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.50","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.109","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.50","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.4","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3-rc1","versionStartIncluding":"4.13","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibnvdimm/labels: Prevent integer overflow in __nd_label_validate()\n\nThe on-media namespace index field nslot is a u32 read from the DIMM\nlabel storage area.  __nd_label_validate() bounds it against the config\narea size, but sizeof_namespace_label() returns unsigned, so the product\nnslot * label_size is evaluated in 32-bit and wraps modulo 2^32 before\nthe comparison.  A crafted nslot passes the bound and is then used as the\nloop trip count in nd_label_data_init(), whose memset() walks off the end\nof the config_size buffer: an out-of-bounds write.\n\nThe field is not trusted -- it comes from the medium, or from userspace\nvia ND_CMD_SET_CONFIG_DATA.  Evaluate the product in 64-bit so the bound\ncheck is exact; conforming labels are unaffected.\n\nThe check was safe when introduced by commit 4a826c83db4e (\"libnvdimm:\nnamespace indices: read and validate\"): it multiplied by sizeof(struct\nnd_namespace_label), a size_t, so on a 64-bit build the product did not\nwrap.  Commit 564e871aa66f (\"libnvdimm, label: add v1.2 nvdimm label\ndefinitions\") narrowed it to 32 bits when the label size became a runtime\nvalue read via sizeof_namespace_label()."}],"providerMetadata":{"dateUpdated":"2026-09-11T19:44:31.337Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/e057efcc9c71d90099d9ee00bed0748d0e9fd586"},{"url":"https://git.kernel.org/stable/c/09e649117c54b7e1c004f22eaa19efbadd9ac856"},{"url":"https://git.kernel.org/stable/c/69a734359639fca16a0dd73ab17a34943e76c68b"},{"url":"https://git.kernel.org/stable/c/037770686126155eafc44501312989e2837b9659"}],"title":"libnvdimm/labels: Prevent integer overflow in __nd_label_validate()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-89559","datePublished":"2026-09-11T19:44:31.337Z","dateReserved":"2026-09-11T19:38:34.724Z","dateUpdated":"2026-09-11T19:44:31.337Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-11 20:19:39","lastModifiedDate":"2026-09-11 20:19:39","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"89559","Ordinal":"1","Title":"libnvdimm/labels: Prevent integer overflow in __nd_label_validat","CVE":"CVE-2026-89559","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"89559","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibnvdimm/labels: Prevent integer overflow in __nd_label_validate()\n\nThe on-media namespace index field nslot is a u32 read from the DIMM\nlabel storage area.  __nd_label_validate() bounds it against the config\narea size, but sizeof_namespace_label() returns unsigned, so the product\nnslot * label_size is evaluated in 32-bit and wraps modulo 2^32 before\nthe comparison.  A crafted nslot passes the bound and is then used as the\nloop trip count in nd_label_data_init(), whose memset() walks off the end\nof the config_size buffer: an out-of-bounds write.\n\nThe field is not trusted -- it comes from the medium, or from userspace\nvia ND_CMD_SET_CONFIG_DATA.  Evaluate the product in 64-bit so the bound\ncheck is exact; conforming labels are unaffected.\n\nThe check was safe when introduced by commit 4a826c83db4e (\"libnvdimm:\nnamespace indices: read and validate\"): it multiplied by sizeof(struct\nnd_namespace_label), a size_t, so on a 64-bit build the product did not\nwrap.  Commit 564e871aa66f (\"libnvdimm, label: add v1.2 nvdimm label\ndefinitions\") narrowed it to 32 bits when the label size became a runtime\nvalue read via sizeof_namespace_label().","Type":"Description","Title":"libnvdimm/labels: Prevent integer overflow in __nd_label_validat"}]}}}