{"id":"CVE-2026-143295","state":"PUBLISHED","title":"block: partitions: reject GPT entries with starting_lba > ending_lba","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: partitions: reject GPT entries with starting_lba > ending_lba\n\nA GPT entry whose starting_lba is greater than its ending_lba is accepted,\nand the kernel creates a partition with a bogus size. The bogus sector\ncount defeats the end-of-device check, so I/O through that partition is not\nconfined to it and can access sectors outside the partition on the same\ndisk.\n\nis_pte_valid() only rejects an entry when its type is NULL or when\nstarting_lba or ending_lba is greater than lastlba; it never checks that\nstarting_lba <= ending_lba. For a reversed entry both field checks still\npass, but efi_partition() computes size = ending_lba - starting_lba + 1 in\nu64, which underflows to a huge value. That value also wraps in the\nend-of-device check in blk_add_partition() (from + size) and does not fit\nthe signed i_size, which turns negative.\n\nReject entries with starting_lba > ending_lba in is_pte_valid(), matching\nthe head-level check against last_usable_lba < first_usable_lba.","publishedAt":"2026-12-03T09:21:29.162Z","updatedAt":"2026-12-03T09:21:29.162Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"8dd4d1f8f052ae5156c19c552285aaec92557626","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"c39f4ac239381969140fc4e115c9ede418846ebe","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"4e8faf6e16e77854ff6c594565387d5ed1ff3fb2","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"01a81e1de660c69e8ec699c5cce16984ce8bc940","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"c48b839c32a3f45e1cdfe86ab21be2585f3420bd","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"7e3801d12ebabaa3db6e2685ccc80b6e6f6d1ff7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/partitions/efi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/partitions/efi.c"]}],"references":["https://git.kernel.org/stable/c/8dd4d1f8f052ae5156c19c552285aaec92557626","https://git.kernel.org/stable/c/c39f4ac239381969140fc4e115c9ede418846ebe","https://git.kernel.org/stable/c/4e8faf6e16e77854ff6c594565387d5ed1ff3fb2","https://git.kernel.org/stable/c/01a81e1de660c69e8ec699c5cce16984ce8bc940","https://git.kernel.org/stable/c/c48b839c32a3f45e1cdfe86ab21be2585f3420bd","https://git.kernel.org/stable/c/7e3801d12ebabaa3db6e2685ccc80b6e6f6d1ff7"],"weaknesses":[],"ingestedAt":"2026-12-03T09:42:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143295.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143295","state":"PUBLISHED","datePublished":"2026-12-03T09:21:29.162Z","dateUpdated":"2026-12-03T09:21:29.162Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.365Z"},"containers":{"cna":{"title":"block: partitions: reject GPT entries with starting_lba > ending_lba","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: partitions: reject GPT entries with starting_lba > ending_lba\n\nA GPT entry whose starting_lba is greater than its ending_lba is accepted,\nand the kernel creates a partition with a bogus size. The bogus sector\ncount defeats the end-of-device check, so I/O through that partition is not\nconfined to it and can access sectors outside the partition on the same\ndisk.\n\nis_pte_valid() only rejects an entry when its type is NULL or when\nstarting_lba or ending_lba is greater than lastlba; it never checks that\nstarting_lba <= ending_lba. For a reversed entry both field checks still\npass, but efi_partition() computes size = ending_lba - starting_lba + 1 in\nu64, which underflows to a huge value. That value also wraps in the\nend-of-device check in blk_add_partition() (from + size) and does not fit\nthe signed i_size, which turns negative.\n\nReject entries with starting_lba > ending_lba in is_pte_valid(), matching\nthe head-level check against last_usable_lba < first_usable_lba."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"8dd4d1f8f052ae5156c19c552285aaec92557626","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"c39f4ac239381969140fc4e115c9ede418846ebe","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"4e8faf6e16e77854ff6c594565387d5ed1ff3fb2","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"01a81e1de660c69e8ec699c5cce16984ce8bc940","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"c48b839c32a3f45e1cdfe86ab21be2585f3420bd","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"7e3801d12ebabaa3db6e2685ccc80b6e6f6d1ff7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/partitions/efi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/partitions/efi.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8dd4d1f8f052ae5156c19c552285aaec92557626"},{"url":"https://git.kernel.org/stable/c/c39f4ac239381969140fc4e115c9ede418846ebe"},{"url":"https://git.kernel.org/stable/c/4e8faf6e16e77854ff6c594565387d5ed1ff3fb2"},{"url":"https://git.kernel.org/stable/c/01a81e1de660c69e8ec699c5cce16984ce8bc940"},{"url":"https://git.kernel.org/stable/c/c48b839c32a3f45e1cdfe86ab21be2585f3420bd"},{"url":"https://git.kernel.org/stable/c/7e3801d12ebabaa3db6e2685ccc80b6e6f6d1ff7"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:21:29.162Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}