CVE-2026-143295: block: partitions: reject GPT entries with starting_lba > ending_lba
In the Linux kernel, the following vulnerability has been resolved:
block: partitions: reject GPT entries with startinglba > endinglba
A GPT entry whose startinglba is greater than its endinglba is accepted, and the kernel creates a partition with a bogus size. The bogus sector count defeats the end-of-device check, so I/O through that partition is not confined to it and can access sectors outside the partition on the same disk.
isptevalid() only rejects an entry when its type is NULL or when startinglba or endinglba is greater than lastlba; it never checks that startinglba <= endinglba. For a reversed entry both field checks still pass, but efipartition() computes size = endinglba - startinglba + 1 in u64, which underflows to a huge value. That value also wraps in the end-of-device check in blkaddpartition() (from + size) and does not fit the signed isize, which turns negative.
Reject entries with startinglba > endinglba in isptevalid(), matching the head-level check against lastusablelba < firstusablelba.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.276 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In the Linux kernel, reject GPT entries with starting_lba > ending_lba in is_pte_valid().
Event History
Frequently Asked Questions
What systems are exposed to this issue?
Systems running the Linux kernel are exposed when they process a GPT-partitioned disk containing an entry whose starting LBA is greater than its ending LBA. The affected behavior occurs during GPT partition parsing, which can create a partition with a bogus, oversized sector count.
What does an attacker need to exploit it?
An attacker needs to provide or cause the system to process a disk with a malformed GPT entry that reverses the starting and ending LBAs. The provided information does not establish whether this requires physical disk access, removable media, or another delivery path.
What is the impact of a malformed GPT entry?
I/O issued through the resulting bogus partition may access sectors outside that partition on the same disk. The size calculation underflows and can bypass the partition end-of-device check.
How can I determine whether a disk has the problematic partition entry?
Inspect its GPT entries and identify any entry with starting_lba greater than ending_lba. Such an entry can pass the described validation despite being invalid.
What mitigation is available if updating the kernel is not immediately possible?
Do not attach or process GPT disks with entries where starting_lba exceeds ending_lba. Validate GPT partition metadata before allowing disks to be used by affected systems.