{"id":"CVE-2026-46190","revision":"316b0268c14640e79685e5710f778154","records":[{"revision":"316b0268c14640e79685e5710f778154","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-46190","aliases":[],"title":"mtd: spi-nor: debugfs: fix out-of-bounds read in spi_nor_params_show()","description":"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.","state":0,"publishedAt":"2026-05-28T09:36:44.017+00:00","modifiedAt":"2026-10-15T01:21:11.983+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/mtd/spi-nor/debugfs.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"0257be79fc4a16a3252ce80aa13b3640f728c425\",\n                            \"lessThan\": \"231b8e1f604f6e0a7e100536f506cdf482e2c5f5\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"0257be79fc4a16a3252ce80aa13b3640f728c425\",\n                            \"lessThan\": \"9a80c458320e0514e11945402dd6e48fcee05524\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"0257be79fc4a16a3252ce80aa13b3640f728c425\",\n                            \"lessThan\": \"ca18c180b053f6ce80394322b314ac721c316af7\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"0257be79fc4a16a3252ce80aa13b3640f728c425\",\n                            \"lessThan\": \"34bdcfb496b29f9a52431194f94473b37fb8c162\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"0257be79fc4a16a3252ce80aa13b3640f728c425\",\n                            \"lessThan\": \"c0b654bc0b76a1da102d9138be1ed1223bd99310\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"0257be79fc4a16a3252ce80aa13b3640f728c425\",\n                            \"lessThan\": \"e47029b977e747cb3a9174308fd55762cce70147\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/mtd/spi-nor/debugfs.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5.19\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"5.19\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.176\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.140\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.88\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.30\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.0.7\",\n                            \"lessThanOrEqual\": \"7.0.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.1\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"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,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/231b8e1f604f6e0a7e100536f506cdf482e2c5f5","https://git.kernel.org/stable/c/9a80c458320e0514e11945402dd6e48fcee05524","https://git.kernel.org/stable/c/ca18c180b053f6ce80394322b314ac721c316af7","https://git.kernel.org/stable/c/34bdcfb496b29f9a52431194f94473b37fb8c162","https://git.kernel.org/stable/c/c0b654bc0b76a1da102d9138be1ed1223bd99310","https://git.kernel.org/stable/c/e47029b977e747cb3a9174308fd55762cce70147"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-46190","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-46190","identifiers":["CVE-2026-46190"]},"retained":false,"historicalAffected":[]}],"coverage":[]}