{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99602","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.424Z","datePublished":"2026-11-20T05:49:27.678Z","dateUpdated":"2026-11-22T11:09:13.340Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:09:13.340Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nudf: don't let the extent type hide an exhausted free-space table extent\n\nudf_table_new_block() takes the first block of the free-space table\nextent closest to the goal.  It keeps that extent's type and length\ntogether in goal_elen, subtracts one block, and deletes the extent only\nif goal_elen then reaches zero.  UDF 2.60 section 2.3.7.1 requires the\nfree-space extents of an Unallocated Space Entry to be of type 1\n(allocated but not recorded), and mkudffs writes them that way.  For\nsuch an extent the type bits keep goal_elen non-zero, so taking its last\nblock leaves a type-1 extent of length zero behind, starting at the\nblock after the extent, which is in use.\n\nThe next allocation that picks this empty extent returns that in-use\nblock.  Subtracting a block from 0x40000000 then borrows from the type\nbits, and the extent becomes type 0 with a length of 2^30 - blocksize:\nabout a gigabyte of \"free\" space overlapping live metadata, the other\ntable extents and whatever lies behind the partition.  From then on\nblocks are handed out twice, or past the end of the partition.\n\nExtents that udf_table_free_blocks() adds are type 0, where the check\nworks, so only tables written by mkudffs or by another implementation\nare affected.  Nothing more than filling such a filesystem is needed:\non a fresh 1 MiB \"mkudffs --space=unalloctable\" image, creating empty\nfiles until the partition is full writes file entries over the reserve\nvolume descriptor sequence and the backup anchor, and df then reports a\nnegative amount of used space.\n\nOn syzbot's images the same double allocation is what the two reports\nbelow trip over.  In the first, ftruncate() extends a new file with\nenough hole extents to need a chain of allocation extent descriptors;\none AED is placed on another inode's file entry, and a later one is\nplaced on the block of the AED currently being filled, which\nudf_setup_indirect_aext() zeroes, so __udf_add_aext() finds\nlengthAllocDescs out of step with its cursor.  In the second, an AED\nis placed past the end of the device, sb_getblk() fails, and the error\npath of udf_do_extend_file() calls udf_truncate_extents() on an extent\nlist that no longer covers i_size.\n\nKeep the type separately from the length, as udf_table_prealloc_blocks()\nalready does."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - udf_table_new_block() mis-handles the type field of an on-disk unallocated-space-table extent. It is reached when udf_create() -> udf_new_inode() or udf_file_write_iter() -> udf_write_begin() -> inode_getblk() -> udf_add_aext() calls udf_new_block() on a mounted UDF volume; that extent is not a field of any remote protocol message.\nAC:L - The attacker builds the image with an unallocated space table whose free extents are type 1 (EXT_NOT_RECORDED_ALLOCATED), which mkudffs --space=unalloctable writes. Taking the last block in udf_table_new_block() then always leaves goal_elen non-zero because the type bits survive the subtraction, and the next allocation expands that empty extent. No race or external failure is required.\nPR:N - udf_fstype.fs_flags is only FS_REQUIRES_DEV, so mount_capable() demands capable(CAP_SYS_ADMIN) and a user namespace cannot mount UDF. The attacker never needs that capability: the image is supplied to a victim, and the victim's create or pwrite is what enters udf_table_new_block().\nUI:R - udf_fill_super() only loads the unallocated space table; it does not allocate. The victim must mount the image and create or write a file so udf_new_block() consumes the last block of a type-1 extent. Mount alone does not trip the bug.\nS:U - udf_get_pblock() turns the bogus logical blocks into sectors of the same block device that was mounted, which is where the reserve volume descriptor sequence and backup anchor live. The damage does not cross a guest/host or other security boundary.\nC:N - __block_write_begin_int() does not bh_read a buffer_new block: it zeroes the unwritten edges and the write replaces the middle. udf_bread() memsets UDF_BLK_NEW buffers, and udf_write_inode() memsets the file-entry block. The alias overwrites prior blocks; it does not return them to userspace.\nI:H - After the last block of a type-1 extent, udf_table_new_block() stores a length-zero extent and the next goal_elen subtraction from 0x40000000 records a type-0 run of 2^30-blocksize bytes. Following udf_new_inode() and udf_file_write_iter() writes then cover in-use blocks, other file entries, and the reserve volume descriptor sequence.\nA:H - Creating files until that extent is exhausted writes file entries over the reserve volume descriptor sequence and the backup anchor, so the volume is no longer usable. The same alias makes udf_file_write_iter() WARN in __udf_add_aext() after udf_setup_indirect_aext() zeroes the allocation-extent block it is filling, and udf_do_extend_file() WARN_ONs in udf_truncate_extents()."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/udf/balloc.c"],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"a40b887f4b67cf969c23e19c28b650d6b5e8afeb","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"78885b05188d3df733a9697d67bfcbb6d8330f76","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"c4f8f503f2038269ffe9bca218bea65bbece9998","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"da582d84fcf5f2f0c1d7760e1a899ca7cedb80fc","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/balloc.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/a40b887f4b67cf969c23e19c28b650d6b5e8afeb"},{"url":"https://git.kernel.org/stable/c/78885b05188d3df733a9697d67bfcbb6d8330f76"},{"url":"https://git.kernel.org/stable/c/c4f8f503f2038269ffe9bca218bea65bbece9998"},{"url":"https://git.kernel.org/stable/c/da582d84fcf5f2f0c1d7760e1a899ca7cedb80fc"}],"title":"udf: don't let the extent type hide an exhausted free-space table extent","x_generator":{"engine":"bippy-1.2.0"}}}}