udf: fix partition descriptor append bookkeeping
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ee4af50ca94f58afc3532662779b9cf80bbe27c8 · < 73df74544b55241dca5dd788523e6f5f10bd2b9b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
udf: fix partition descriptor append bookkeeping
Mounting a crafted UDF image with repeated partition descriptors can trigger a heap out-of-bounds write in part_descs_loc[].
handle_partition_descriptor() deduplicates entries by partition number, but appended slots never record partnum. As a result duplicate Partition Descriptors are appended repeatedly and num_part_descs keeps growing.
Once the table is full, the growth path still sizes the allocation from partnum even though inserts are indexed by num_part_descs. If partnum is already aligned to PART_DESC_ALLOC_STEP, ALIGN(partnum, step) can keep the old capacity and the next append writes past the end of the table.
Store partnum in the appended slot and size growth from the next append count so deduplication and capacity tracking follow the same model.
From the CVE record · Linux
The Linux kernel’s UDF code can write past a heap allocation when mounting a crafted UDF image with repeated partition descriptors. An attacker who can cause such an image to be mounted can trigger the write; the input does not specify authentication requirements.
Engineers running the Linux kernel should check whether their version includes the UDF fix; affected versions are not specified.