CVE-2026-99601
published high CVSS 3.1 · 7.8udf: check the unallocated space table when it is loaded
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 3ed23daf545953a7a1f03bad511f9fe742874f43 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9f3df19234d2c180b9a99b0d3c2472e8fade5043 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 88401035fbfcad7067793455326262ac30633586 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 302eb1fa5be5e476a633d8ed0fd56ea5efa57374 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < e614c3e35a6699ed691b4d17e1ec4230e34aa3eb · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Debian | trixie | linux | Advisory build | 6.12.118-1 | DSA-6652-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: udf: check the unallocated space table when it is loaded udf_table_new_block() hands out the first block of the extent closest to its goal and trusts that the extent covers at least one whole block inside the partition. Nothing checks that. A zero-length extent makes it return the block the extent points at, which need not be free, and the subtraction of one block then underflows the length into the type bits, turning the entry into a bogus continuation. An extent running past the end of the partition makes it return blocks behind the partition. Such tables are not only found on crafted images: until the previous commit, udf_table_new_block() itself left zero-length extents behind in tables written by mkudffs, and then converted them into extents running past the partition. Check every extent once when the table is loaded, and refuse read-write access if one is empty, is not a whole number of blocks, or does not lie inside the partition, in the same way as for other allocation information the kernel cannot use. Check first that the table is an Unallocated Space Entry at all: the walk starts at the offset of the allocation descriptors in one, and for a file entry that offset lies before the inode's in-memory copy of the descriptors. Treat a chain of allocation extent descriptors that leads back to itself the same way: the walk would otherwise return the same extents forever, and the mount would never finish. Let a fatal signal interrupt the walk and fail the mount. Refusing read-write access to an empty extent is deliberate. It shows that an old kernel took the last block but left the entry behind. If consumed again, the entry returns an in-use block and turns into a huge bogus extent. Refusing the table before that happens avoids this second allocation; the filesystem can still be mounted read-only. The check cannot detect every overlap that may already exist in a damaged table. This patch should be backported together with the previous one: that patch stops creating new empty extents, and this one rejects existing ones before they are consumed again.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The unchecked extents are the on-disk unallocated space table named by partitionHeaderDesc.unallocSpaceTable. udf_fill_partdesc_info() loads that inode from udf_fill_super(), and udf_table_new_block() consumes it via udf_new_block() from udf_file_write_iter() on write(2). Those bytes are image metadata, not a network protocol field. AC:L - The image sets the table: a zero-length extent, a logicalBlockNum past s_partition_len, a cyclic allocation-extent chain, or a fileEntry where a USE is required. The next udf_new_block() hits that state directly; there is no race and UDF is not a rare config. PR:N - udf_fstype.fs_flags is FS_REQUIRES_DEV and not FS_USERNS_MOUNT, so mount_capable() requires CAP_SYS_ADMIN in the initial namespace. The attacker does not hold that capability; supplying the image is unprivileged and the mount is the victim action scored as UI. UI:R - udf_fill_partdesc_info() reads the table only as part of mount (udf_fill_super), and udf_table_new_block() runs only on a later allocation. A victim must mount the crafted image; an already-exported share does not remove that step. S:U - The mis-allocation and the udf_current_aext() access before i_data both occur in the kernel that mounted the volume. This is not a KVM guest-to-host escape or an IOMMU/DMA boundary crossing. C:H - If the table block is a fileEntry (176 bytes) or extendedFileEntry (216) rather than a USE (40), udf_table_new_block() starts at sizeof(unallocSpaceEntry) and udf_current_aext() sets ptr = i_data + offset - udf_file_entry_alloc_offset(), which is i_data-136 or i_data-176, then walks that preceding heap as short_ad or long_ad descriptors. I:H - Once udf_get_fileshortad() or udf_get_filelongad() accepts a descriptor in that before-i_data window (extLength != 0), udf_write_aext() stores the updated extent there: 8 bytes (short_ad) or 16 (long_ad). A zero-length USE extent separately underflows goal_elen by s_blocksize into a bogus continuation that returns in-use and past-partition blocks. A:H - A cyclic allocation-extent chain makes udf_table_new_block()'s while (spread) loop call udf_next_aext() forever: UDF_MAX_INDIR_EXTS resets on each call, and the loop does not check signals or cond_resched() while holding s_alloc_mutex. The before-i_data write can also fault.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 3ed23daf545953a7a1f03bad511f9fe742874f43 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9f3df19234d2c180b9a99b0d3c2472e8fade5043 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 88401035fbfcad7067793455326262ac30633586 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 302eb1fa5be5e476a633d8ed0fd56ea5efa57374 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < e614c3e35a6699ed691b4d17e1ec4230e34aa3eb (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/302eb1fa5be5e476a633d8ed0fd56ea5efa57374
- https://git.kernel.org/stable/c/3ed23daf545953a7a1f03bad511f9fe742874f43
- https://git.kernel.org/stable/c/88401035fbfcad7067793455326262ac30633586
- https://git.kernel.org/stable/c/9f3df19234d2c180b9a99b0d3c2472e8fade5043
- https://git.kernel.org/stable/c/e614c3e35a6699ed691b4d17e1ec4230e34aa3eb
Provider assertions
1Linux · cna
udf: check the unallocated space table when it is loaded
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5e7e391314cd1dfa96a701a74a3303c0adedc5758b9950d6e9ba93f1750656d1
- Ingested
- 23 Nov 2026, 14:37:13 UTC
- Source record
- Official CVE record