{"id":"CVE-2026-45896","summary":"mtd: intel-dg: Fix accessing regions before setting nregions","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: intel-dg: Fix accessing regions before setting nregions\n\nThe regions array is counted by nregions, but it's set only after\naccessing it:\n\n[] UBSAN: array-index-out-of-bounds in drivers/mtd/devices/mtd_intel_dg.c:750:15\n[] index 0 is out of range for type '\u003cunknown\u003e [*]'\n\nFix it by also fixing an undesired behavior: the loop silently ignores\nENOMEM and continues setting the other entries.","modified":"2026-07-08T08:09:39.524043654Z","published":"2026-05-27T12:17:06.332Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45896.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/721bd22bcf45a63ebd9bd0f478ef721b45cc5383"},{"type":"WEB","url":"https://git.kernel.org/stable/c/779c59274d03cc5c07237a2c845dfb71cff77705"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d58fca8513414b15387460b14a7a0a30405b9c9e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45896.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45896"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ceb5ab3cb64637952657be23d347e1c79dd02212"},{"fixed":"721bd22bcf45a63ebd9bd0f478ef721b45cc5383"},{"fixed":"d58fca8513414b15387460b14a7a0a30405b9c9e"},{"fixed":"779c59274d03cc5c07237a2c845dfb71cff77705"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45896.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.17.0"},{"fixed":"6.18.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45896.json"}}],"schema_version":"1.7.5"}