{"id":"AZL-116842","summary":"CVE-2026-139052 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: spi-nor: sfdp: check the length of the SCCR map\n\nThe spi_nor_parse_sccr() sizes its buffer from the table length the\nflash reports in the SFDP parameter header. But it then reads DWORD1\nand DWORD22 without ever checking the table is that long.\n\nSo if a flash reports a length of one, the buffer is only four bytes\nwhile DWORD22 sits at byte offset 84. With a length of zero kmalloc()\nreturns ZERO_SIZE_PTR rather than an error, so the NULL check doesn't\ncatch it and the first read dereferences it.\n\nTo fix this, reject a table that's too short for the highest DWORD the\nparser reads, the way spi_nor_parse_4bait() already does. The table is\noptional, so this isn't fatal. The spi_nor_parse_sfdp() warns and\ncarries on.\n\nThe spi_nor_parse_sccr_mc() doesn't need the same check. It works out\nthe number of dice from the length it allocated with, so its highest\nindex stays inside the buffer.","modified":"2026-12-01T14:17:41.091296601Z","published":"2026-11-30T14:18:10Z","upstream":["CVE-2026-139052"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139052"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-116842.json"}}],"schema_version":"1.9.2"}