CVE-2026-99602
published high CVSS 3.1 · 7.1udf: don't let the extent type hide an exhausted free-space table extent
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 816a6df00e9637a438668da849ee00bf0cf7efe0 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 762315609f9695d983c43a6031a487693b5cb780 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 30aac8fc4f24b1b065b59a7b07e26030b22c4c69 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < ed79c0538e1e42c706409f4799c6145bf2d02365 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a40b887f4b67cf969c23e19c28b650d6b5e8afeb · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 78885b05188d3df733a9697d67bfcbb6d8330f76 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < c4f8f503f2038269ffe9bca218bea65bbece9998 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < da582d84fcf5f2f0c1d7760e1a899ca7cedb80fc · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (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: don't let the extent type hide an exhausted free-space table extent udf_table_new_block() takes the first block of the free-space table extent closest to the goal. It keeps that extent's type and length together in goal_elen, subtracts one block, and deletes the extent only if goal_elen then reaches zero. UDF 2.60 section 2.3.7.1 requires the free-space extents of an Unallocated Space Entry to be of type 1 (allocated but not recorded), and mkudffs writes them that way. For such an extent the type bits keep goal_elen non-zero, so taking its last block leaves a type-1 extent of length zero behind, starting at the block after the extent, which is in use. The next allocation that picks this empty extent returns that in-use block. Subtracting a block from 0x40000000 then borrows from the type bits, and the extent becomes type 0 with a length of 2^30 - blocksize: about a gigabyte of "free" space overlapping live metadata, the other table extents and whatever lies behind the partition. From then on blocks are handed out twice, or past the end of the partition. Extents that udf_table_free_blocks() adds are type 0, where the check works, so only tables written by mkudffs or by another implementation are affected. Nothing more than filling such a filesystem is needed: on a fresh 1 MiB "mkudffs --space=unalloctable" image, creating empty files until the partition is full writes file entries over the reserve volume descriptor sequence and the backup anchor, and df then reports a negative amount of used space. On syzbot's images the same double allocation is what the two reports below trip over. In the first, ftruncate() extends a new file with enough hole extents to need a chain of allocation extent descriptors; one AED is placed on another inode's file entry, and a later one is placed on the block of the AED currently being filled, which udf_setup_indirect_aext() zeroes, so __udf_add_aext() finds lengthAllocDescs out of step with its cursor. In the second, an AED is placed past the end of the device, sb_getblk() fails, and the error path of udf_do_extend_file() calls udf_truncate_extents() on an extent list that no longer covers i_size. Keep the type separately from the length, as udf_table_prealloc_blocks() already does.
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.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- Scenarios
- en: 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. AC: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. PR: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(). UI: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. S: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. C: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. I: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. A: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().
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 816a6df00e9637a438668da849ee00bf0cf7efe0 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 762315609f9695d983c43a6031a487693b5cb780 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 30aac8fc4f24b1b065b59a7b07e26030b22c4c69 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < ed79c0538e1e42c706409f4799c6145bf2d02365 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a40b887f4b67cf969c23e19c28b650d6b5e8afeb (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 78885b05188d3df733a9697d67bfcbb6d8330f76 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < c4f8f503f2038269ffe9bca218bea65bbece9998 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < da582d84fcf5f2f0c1d7760e1a899ca7cedb80fc (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (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
8- https://git.kernel.org/stable/c/30aac8fc4f24b1b065b59a7b07e26030b22c4c69
- https://git.kernel.org/stable/c/762315609f9695d983c43a6031a487693b5cb780
- https://git.kernel.org/stable/c/78885b05188d3df733a9697d67bfcbb6d8330f76
- https://git.kernel.org/stable/c/816a6df00e9637a438668da849ee00bf0cf7efe0
- https://git.kernel.org/stable/c/a40b887f4b67cf969c23e19c28b650d6b5e8afeb
- https://git.kernel.org/stable/c/c4f8f503f2038269ffe9bca218bea65bbece9998
- https://git.kernel.org/stable/c/da582d84fcf5f2f0c1d7760e1a899ca7cedb80fc
- https://git.kernel.org/stable/c/ed79c0538e1e42c706409f4799c6145bf2d02365
Provider assertions
1Linux · cna
udf: don't let the extent type hide an exhausted free-space table extent
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b50b275d0322d8ec1b6aa60aeea143cd6e5903e940fa56f8f60a4ea530790e27
- Ingested
- 23 Nov 2026, 14:37:13 UTC
- Source record
- Official CVE record