partitions: mac: fix handling of bogus partition table
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 02e2a5bfebe99edcf9d694575a75032d53fe1b73 · < 6578717ebca91678131d2b1f4ba4258e60536e9f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
partitions: mac: fix handling of bogus partition table
Fix several issues in partition probing:
- The bailout for a bad partoffset must use put_dev_sector(), since the preceding read_part_sector() succeeded. - If the partition table claims a silly sector size like 0xfff bytes (which results in partition table entries straddling sector boundaries), bail out instead of accessing out-of-bounds memory. - We must not assume that the partition table contains proper NUL termination - use strnlen() and strncmp() instead of strlen() and strcmp().
From the CVE record · Linux
The Linux kernel's Macintosh partition probing mishandles bogus partition tables, including entries that straddle sector boundaries or lack NUL termination. Processing such a table can cause out-of-bounds memory access; the input does not specify whether exploitation requires local access, authentication, or user interaction.
Anyone running the Linux kernel should check their kernel version against the vendor advisory; affected versions are not specified.