{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99601","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.424Z","datePublished":"2026-11-20T05:49:26.980Z","dateUpdated":"2026-11-22T11:09:12.126Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:09:12.126Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nudf: check the unallocated space table when it is loaded\n\nudf_table_new_block() hands out the first block of the extent closest\nto its goal and trusts that the extent covers at least one whole block\ninside the partition.  Nothing checks that.  A zero-length extent makes\nit return the block the extent points at, which need not be free, and\nthe subtraction of one block then underflows the length into the type\nbits, turning the entry into a bogus continuation.  An extent running\npast the end of the partition makes it return blocks behind the\npartition.\n\nSuch tables are not only found on crafted images: until the previous\ncommit, udf_table_new_block() itself left zero-length extents behind\nin tables written by mkudffs, and then converted them into extents\nrunning past the partition.\n\nCheck every extent once when the table is loaded, and refuse\nread-write access if one is empty, is not a whole number of blocks, or\ndoes not lie inside the partition, in the same way as for other\nallocation information the kernel cannot use.  Check first that the\ntable is an Unallocated Space Entry at all: the walk starts at the\noffset of the allocation descriptors in one, and for a file entry that\noffset lies before the inode's in-memory copy of the descriptors.\nTreat a chain of allocation extent descriptors that leads back to\nitself the same way: the walk would otherwise return the same extents\nforever, and the mount would never finish.  Let a fatal signal\ninterrupt the walk and fail the mount.\n\nRefusing read-write access to an empty extent is deliberate.  It shows\nthat an old kernel took the last block but left the entry behind.  If\nconsumed again, the entry returns an in-use block and turns into a huge\nbogus extent.  Refusing the table before that\nhappens avoids this second allocation; the filesystem can still be\nmounted read-only.  The check cannot detect every overlap that may\nalready exist in a damaged table.\n\nThis patch should be backported together with the previous one: that\npatch stops creating new empty extents, and this one rejects existing\nones before they are consumed again."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/udf/super.c"],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"9f3df19234d2c180b9a99b0d3c2472e8fade5043","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"88401035fbfcad7067793455326262ac30633586","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"302eb1fa5be5e476a633d8ed0fd56ea5efa57374","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"e614c3e35a6699ed691b4d17e1ec4230e34aa3eb","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/udf/super.c"],"versions":[{"version":"2.6.12","status":"affected"},{"version":"0","lessThan":"2.6.12","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/9f3df19234d2c180b9a99b0d3c2472e8fade5043"},{"url":"https://git.kernel.org/stable/c/88401035fbfcad7067793455326262ac30633586"},{"url":"https://git.kernel.org/stable/c/302eb1fa5be5e476a633d8ed0fd56ea5efa57374"},{"url":"https://git.kernel.org/stable/c/e614c3e35a6699ed691b4d17e1ec4230e34aa3eb"}],"title":"udf: check the unallocated space table when it is loaded","x_generator":{"engine":"bippy-1.2.0"}}}}