{"api_version":"1","generated_at":"2026-11-23T05:07:20+00:00","cve":"CVE-2026-99602","urls":{"html":"https://cve.report/CVE-2026-99602","api":"https://cve.report/api/cve/CVE-2026-99602.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99602","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99602"},"summary":{"title":"udf: don't let the extent type hide an exhausted free-space table extent","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:17:52","updated_at":"2026-11-22 11:16:58"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","data":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/78885b05188d3df733a9697d67bfcbb6d8330f76","name":"https://git.kernel.org/stable/c/78885b05188d3df733a9697d67bfcbb6d8330f76","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c4f8f503f2038269ffe9bca218bea65bbece9998","name":"https://git.kernel.org/stable/c/c4f8f503f2038269ffe9bca218bea65bbece9998","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a40b887f4b67cf969c23e19c28b650d6b5e8afeb","name":"https://git.kernel.org/stable/c/a40b887f4b67cf969c23e19c28b650d6b5e8afeb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/da582d84fcf5f2f0c1d7760e1a899ca7cedb80fc","name":"https://git.kernel.org/stable/c/da582d84fcf5f2f0c1d7760e1a899ca7cedb80fc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99602","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99602","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 a40b887f4b67cf969c23e19c28b650d6b5e8afeb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 78885b05188d3df733a9697d67bfcbb6d8330f76 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 c4f8f503f2038269ffe9bca218bea65bbece9998 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 da582d84fcf5f2f0c1d7760e1a899ca7cedb80fc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99602","cve":"CVE-2026-99602","epss":"0.001680000","percentile":"0.061700000","score_date":"2026-11-22","updated_at":"2026-11-23 00:03:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/udf/balloc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"a40b887f4b67cf969c23e19c28b650d6b5e8afeb","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"78885b05188d3df733a9697d67bfcbb6d8330f76","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"c4f8f503f2038269ffe9bca218bea65bbece9998","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"da582d84fcf5f2f0c1d7760e1a899ca7cedb80fc","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/udf/balloc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.12"},{"lessThan":"2.6.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"2.6.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","version":"3.1"},"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()."}]}],"providerMetadata":{"dateUpdated":"2026-11-22T11:09:13.340Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99602","datePublished":"2026-11-20T05:49:27.678Z","dateReserved":"2026-09-25T10:25:14.424Z","dateUpdated":"2026-11-22T11:09:13.340Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:17:52","lastModifiedDate":"2026-11-22 11:16:58","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.2}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99602","Ordinal":"1","Title":"udf: don't let the extent type hide an exhausted free-space tabl","CVE":"CVE-2026-99602","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99602","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"udf: don't let the extent type hide an exhausted free-space tabl"}]}}}