CVE-2026-46190
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
28/05/2026
Last modified:
30/05/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
mtd: spi-nor: debugfs: fix out-of-bounds read in spi_nor_params_show()<br />
<br />
Sashiko noticed an out-of-bounds read [1].<br />
<br />
In spi_nor_params_show(), the snor_f_names array is passed to<br />
spi_nor_print_flags() using sizeof(snor_f_names).<br />
<br />
Since snor_f_names is an array of pointers, sizeof() returns the total<br />
number of bytes occupied by the pointers<br />
(element_count * sizeof(void *))<br />
rather than the element count itself. On 64-bit systems, this makes the<br />
passed length 8x larger than intended.<br />
<br />
Inside spi_nor_print_flags(), the &#39;names_len&#39; argument is used to<br />
bounds-check the &#39;names&#39; array access. An out-of-bounds read occurs<br />
if a flag bit is set that exceeds the array&#39;s actual element count<br />
but is within the inflated byte-size count.<br />
<br />
Correct this by using ARRAY_SIZE() to pass the actual number of<br />
string pointers in the array.
Impact
Base Score 3.x
7.10
Severity 3.x
HIGH
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/34bdcfb496b29f9a52431194f94473b37fb8c162
- https://git.kernel.org/stable/c/9a80c458320e0514e11945402dd6e48fcee05524
- https://git.kernel.org/stable/c/c0b654bc0b76a1da102d9138be1ed1223bd99310
- https://git.kernel.org/stable/c/ca18c180b053f6ce80394322b314ac721c316af7
- https://git.kernel.org/stable/c/e47029b977e747cb3a9174308fd55762cce70147



