AZL-118520: CVE-2026-143295 affecting package kernel 6.6.161.1-1
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.
- Compensating control
Reject GPT entries with starting_lba > ending_lba in the kernel's is_pte_valid() function.
Event History
Frequently Asked Questions
What conditions are required to exploit this issue?
An attacker needs a disk with a crafted GPT partition entry whose starting_lba is greater than its ending_lba. The malformed entry must still have both values at or below the device's last LBA so it passes the existing bounds checks.
What is the security impact of a malformed GPT entry?
The kernel can create a partition with an underflowed, oversized sector count. I/O issued through that partition may reach sectors outside the intended partition on the same disk.
How can I tell whether a disk is affected by the malformed-entry condition?
Inspect its GPT entries for any partition where starting_lba is greater than ending_lba. Such an entry is the condition the fix rejects.