{"id":"CVE-2026-46190","aliases":["CVE-2026-46190"],"related":[],"kind":"vulnerability","state":"published","title":"mtd: spi-nor: debugfs: fix out-of-bounds read in spi_nor_params_show()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: spi-nor: debugfs: fix out-of-bounds read in spi_nor_params_show()\n\nSashiko noticed an out-of-bounds read [1].\n\nIn spi_nor_params_show(), the snor_f_names array is passed to\nspi_nor_print_flags() using sizeof(snor_f_names).\n\nSince snor_f_names is an array of pointers, sizeof() returns the total\nnumber of bytes occupied by the pointers\n\t(element_count * sizeof(void *))\nrather than the element count itself. On 64-bit systems, this makes the\npassed length 8x larger than intended.\n\nInside spi_nor_print_flags(), the 'names_len' argument is used to\nbounds-check the 'names' array access. An out-of-bounds read occurs\nif a flag bit is set that exceeds the array's actual element count\nbut is within the inflated byte-size count.\n\nCorrect this by using ARRAY_SIZE() to pass the actual number of\nstring pointers in the array.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: spi-nor: debugfs: fix out-of-bounds read in spi_nor_params_show()\n\nSashiko noticed an out-of-bounds read [1].\n\nIn spi_nor_params_show(), the snor_f_names array is passed to\nspi_nor_print_flags() using sizeof(snor_f_names).\n\nSince snor_f_names is an array of pointers, sizeof() returns the total\nnumber of bytes occupied by the pointers\n\t(element_count * sizeof(void *))\nrather than the element count itself. On 64-bit systems, this makes the\npassed length 8x larger than intended.\n\nInside spi_nor_print_flags(), the 'names_len' argument is used to\nbounds-check the 'names' array access. An out-of-bounds read occurs\nif a flag bit is set that exceeds the array's actual element count\nbut is within the inflated byte-size count.\n\nCorrect this by using ARRAY_SIZE() to pass the actual number of\nstring pointers in the array.","source":"cvelist"}],"published":"2026-05-28T09:36:44.017Z","modified":"2026-10-15T02:19:49.310Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"0257be79fc4a16a3252ce80aa13b3640f728c425","fixed":"231b8e1f604f6e0a7e100536f506cdf482e2c5f5","status":"affected"},{"type":"git","introduced":"0257be79fc4a16a3252ce80aa13b3640f728c425","fixed":"9a80c458320e0514e11945402dd6e48fcee05524","status":"affected"},{"type":"git","introduced":"0257be79fc4a16a3252ce80aa13b3640f728c425","fixed":"ca18c180b053f6ce80394322b314ac721c316af7","status":"affected"},{"type":"git","introduced":"0257be79fc4a16a3252ce80aa13b3640f728c425","fixed":"34bdcfb496b29f9a52431194f94473b37fb8c162","status":"affected"},{"type":"git","introduced":"0257be79fc4a16a3252ce80aa13b3640f728c425","fixed":"c0b654bc0b76a1da102d9138be1ed1223bd99310","status":"affected"},{"type":"git","introduced":"0257be79fc4a16a3252ce80aa13b3640f728c425","fixed":"e47029b977e747cb3a9174308fd55762cce70147","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.19","status":"unaffected"},{"type":"semver","introduced":"6.1.176","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.140","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.88","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.30","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.7","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.19","fixed":"6.6.140"},{"status":"affected","introduced":"6.7","fixed":"6.12.88"},{"status":"affected","introduced":"6.13","fixed":"6.18.30"},{"status":"affected","introduced":"6.19","fixed":"7.0.7"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/231b8e1f604f6e0a7e100536f506cdf482e2c5f5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a80c458320e0514e11945402dd6e48fcee05524","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ca18c180b053f6ce80394322b314ac721c316af7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/34bdcfb496b29f9a52431194f94473b37fb8c162","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c0b654bc0b76a1da102d9138be1ed1223bd99310","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e47029b977e747cb3a9174308fd55762cce70147","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46190","url":"https://www.cve.org/CVERecord?id=CVE-2026-46190","licence":"CVE Terms of Use","modified":"2026-10-15T01:21:11.983Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46190","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46190","licence":"Public domain","modified":"2026-10-15T02:19:49.310Z"}],"updatedAt":"2026-11-25T22:59:22.855Z","epss":{"score":0.00131,"percentile":0.02925,"date":"2026-12-01T12:00:22.000Z"}}