mtd: intel-dg: Fix accessing regions before setting nregions
In the Linux kernel, the following vulnerability has been resolved: mtd: intel-dg: Fix accessing regions before setting nregions The regions array is counted by nregions, but it's set only after accessing it: [] UBSAN: array-index-out-of-bounds in drivers/mtd/devices/mtd_intel_dg.c:750:15 [] index 0 is out of range for type ' [*]' Fix it by also fixing an undesired behavior: the loop silently ignores ENOMEM and continues setting the other entries.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.18.14, 6.19.4
- CVEs
- CVE-2026-45896
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 16:12 UTC · Revision 1
Source evidence
mtd: intel-dg: Fix accessing regions before setting nregions
core-osv · Original sourcePublished 27 May 2026, 12:17 UTC
In the Linux kernel, the following vulnerability has been resolved: mtd: intel-dg: Fix accessing regions before setting nregions The regions array is counted by nregions, but it's set only after accessing it: [] UBSAN: array-index-out-of-bounds in drivers/mtd/devices/mtd_intel_dg.c:750:15 [] index 0 is out of range for type ' [*]' Fix it by also fixing an undesired behavior: the loop silently ignores ENOMEM and continues setting the other entries.
osv:CVE-2026-45896
Kernel
Fixed versions: 6.18.14, 6.19.4
Complete source record
{
"id": "472dd004347d41af6179a0d25cc8c0bf96918296f64417fa0ff11890579a7a92",
"url": "https://osv.dev/vulnerability/CVE-2026-45896",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "mtd: intel-dg: Fix accessing regions before setting nregions",
"summary": "In the Linux kernel, the following vulnerability has been resolved: mtd: intel-dg: Fix accessing regions before setting nregions The regions array is counted by nregions, but it's set only after accessing it: [] UBSAN: array-index-out-of-bounds in drivers/mtd/devices/mtd_intel_dg.c:750:15 [] index 0 is out of range for type ' [*]' Fix it by also fixing an undesired behavior: the loop silently ignores ENOMEM and continues setting the other entries.",
"evidence": "osv:CVE-2026-45896",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.18.14",
"evidence": "/affected/1/ranges"
},
{
"value": "6.19.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-45896",
"aliases": [
"CVE-2026-45896"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.17.0"
},
{
"fixed": "6.18.14"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "6.19.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45896.json"
}
}
],
"modified": "2026-10-28T02:30:21.077127765Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/721bd22bcf45a63ebd9bd0f478ef721b45cc5383",
"https://git.kernel.org/stable/c/779c59274d03cc5c07237a2c845dfb71cff77705",
"https://git.kernel.org/stable/c/d58fca8513414b15387460b14a7a0a30405b9c9e",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45896.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-45896",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45896.json"
}
},
"related_cves": [
{
"value": "CVE-2026-45896",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 486972,
"published_at": "2026-05-27T12:17:06.332+00:00"
}