{"api_version":"1","generated_at":"2026-12-01T21:54:24+00:00","cve":"CVE-2026-139053","urls":{"html":"https://cve.report/CVE-2026-139053","api":"https://cve.report/api/cve/CVE-2026-139053.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139053","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139053"},"summary":{"title":"mtd: spi-nor: sfdp: check the length of the xSPI Profile 1.0 table","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: spi-nor: sfdp: check the length of the xSPI Profile 1.0 table\n\nThe spi_nor_parse_profile1() sizes its buffer from the table length the\nflash reports in the SFDP parameter header. But it then reads DWORD1,\nDWORD4 and DWORD5 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 DWORD4 and DWORD5 sit at byte offsets 12 and 16. With a length of\nzero kmalloc() returns ZERO_SIZE_PTR rather than an error, so the NULL\ncheck doesn't catch it and the first read dereferences it. And the value\ndoesn't just get thrown away. It ends up as the dummy cycle count for\n8D-8D-8D fast reads.\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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:11","updated_at":"2026-11-30 14:18:11"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/7d720359eeddb899cd551a08c153212eac836585","name":"https://git.kernel.org/stable/c/7d720359eeddb899cd551a08c153212eac836585","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b9f34a95a81021fa1f3c9cb8cfd458e66824cad6","name":"https://git.kernel.org/stable/c/b9f34a95a81021fa1f3c9cb8cfd458e66824cad6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c5525a1021c76856fb0c4f9d0dddfeef25d72b9c","name":"https://git.kernel.org/stable/c/c5525a1021c76856fb0c4f9d0dddfeef25d72b9c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8cbeaea4d325f0fc980736b44a06dd1a30e177ff","name":"https://git.kernel.org/stable/c/8cbeaea4d325f0fc980736b44a06dd1a30e177ff","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a5de200ac41bede9ef7f7f173e76f50fe6d5ca71","name":"https://git.kernel.org/stable/c/a5de200ac41bede9ef7f7f173e76f50fe6d5ca71","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4ab99807528307874f5b8ff3d9ad421d970d2fa5","name":"https://git.kernel.org/stable/c/4ab99807528307874f5b8ff3d9ad421d970d2fa5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8cc513aa794d25cd6cf4dfe054eba600d4f813a5","name":"https://git.kernel.org/stable/c/8cc513aa794d25cd6cf4dfe054eba600d4f813a5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139053","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139053","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fb27f198971a68fec59d5493b68e35e916fce62c 7d720359eeddb899cd551a08c153212eac836585 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fb27f198971a68fec59d5493b68e35e916fce62c 4ab99807528307874f5b8ff3d9ad421d970d2fa5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fb27f198971a68fec59d5493b68e35e916fce62c c5525a1021c76856fb0c4f9d0dddfeef25d72b9c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fb27f198971a68fec59d5493b68e35e916fce62c 8cc513aa794d25cd6cf4dfe054eba600d4f813a5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fb27f198971a68fec59d5493b68e35e916fce62c 8cbeaea4d325f0fc980736b44a06dd1a30e177ff git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fb27f198971a68fec59d5493b68e35e916fce62c a5de200ac41bede9ef7f7f173e76f50fe6d5ca71 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fb27f198971a68fec59d5493b68e35e916fce62c b9f34a95a81021fa1f3c9cb8cfd458e66824cad6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.11","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/mtd/spi-nor/sfdp.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"7d720359eeddb899cd551a08c153212eac836585","status":"affected","version":"fb27f198971a68fec59d5493b68e35e916fce62c","versionType":"git"},{"lessThan":"4ab99807528307874f5b8ff3d9ad421d970d2fa5","status":"affected","version":"fb27f198971a68fec59d5493b68e35e916fce62c","versionType":"git"},{"lessThan":"c5525a1021c76856fb0c4f9d0dddfeef25d72b9c","status":"affected","version":"fb27f198971a68fec59d5493b68e35e916fce62c","versionType":"git"},{"lessThan":"8cc513aa794d25cd6cf4dfe054eba600d4f813a5","status":"affected","version":"fb27f198971a68fec59d5493b68e35e916fce62c","versionType":"git"},{"lessThan":"8cbeaea4d325f0fc980736b44a06dd1a30e177ff","status":"affected","version":"fb27f198971a68fec59d5493b68e35e916fce62c","versionType":"git"},{"lessThan":"a5de200ac41bede9ef7f7f173e76f50fe6d5ca71","status":"affected","version":"fb27f198971a68fec59d5493b68e35e916fce62c","versionType":"git"},{"lessThan":"b9f34a95a81021fa1f3c9cb8cfd458e66824cad6","status":"affected","version":"fb27f198971a68fec59d5493b68e35e916fce62c","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/mtd/spi-nor/sfdp.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.11"},{"lessThan":"5.11","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.11","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: spi-nor: sfdp: check the length of the xSPI Profile 1.0 table\n\nThe spi_nor_parse_profile1() sizes its buffer from the table length the\nflash reports in the SFDP parameter header. But it then reads DWORD1,\nDWORD4 and DWORD5 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 DWORD4 and DWORD5 sit at byte offsets 12 and 16. With a length of\nzero kmalloc() returns ZERO_SIZE_PTR rather than an error, so the NULL\ncheck doesn't catch it and the first read dereferences it. And the value\ndoesn't just get thrown away. It ends up as the dummy cycle count for\n8D-8D-8D fast reads.\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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:27:25.833Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/7d720359eeddb899cd551a08c153212eac836585"},{"url":"https://git.kernel.org/stable/c/4ab99807528307874f5b8ff3d9ad421d970d2fa5"},{"url":"https://git.kernel.org/stable/c/c5525a1021c76856fb0c4f9d0dddfeef25d72b9c"},{"url":"https://git.kernel.org/stable/c/8cc513aa794d25cd6cf4dfe054eba600d4f813a5"},{"url":"https://git.kernel.org/stable/c/8cbeaea4d325f0fc980736b44a06dd1a30e177ff"},{"url":"https://git.kernel.org/stable/c/a5de200ac41bede9ef7f7f173e76f50fe6d5ca71"},{"url":"https://git.kernel.org/stable/c/b9f34a95a81021fa1f3c9cb8cfd458e66824cad6"}],"title":"mtd: spi-nor: sfdp: check the length of the xSPI Profile 1.0 table","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139053","datePublished":"2026-11-30T13:27:25.833Z","dateReserved":"2026-11-30T13:22:15.911Z","dateUpdated":"2026-11-30T13:27:25.833Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:11","lastModifiedDate":"2026-11-30 14:18:11","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139053","Ordinal":"1","Title":"mtd: spi-nor: sfdp: check the length of the xSPI Profile 1.0 tab","CVE":"CVE-2026-139053","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139053","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: spi-nor: sfdp: check the length of the xSPI Profile 1.0 table\n\nThe spi_nor_parse_profile1() sizes its buffer from the table length the\nflash reports in the SFDP parameter header. But it then reads DWORD1,\nDWORD4 and DWORD5 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 DWORD4 and DWORD5 sit at byte offsets 12 and 16. With a length of\nzero kmalloc() returns ZERO_SIZE_PTR rather than an error, so the NULL\ncheck doesn't catch it and the first read dereferences it. And the value\ndoesn't just get thrown away. It ends up as the dummy cycle count for\n8D-8D-8D fast reads.\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.","Type":"Description","Title":"mtd: spi-nor: sfdp: check the length of the xSPI Profile 1.0 tab"}]}}}