Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154136; b=Z8rzaPO7r7tco2tXf1u4o8JAqjPjI1UNRaee7fKWRtdwt+0ayLx8Tw/kNZnjhRvYuyow rIFYanoPob4ZU3N6VqbR/u2sC2OIch8kBSz8FDSDS12TXKbq8ypyMJ4GHBHeMJsdVraD8 Ih/2V78GRSDZ99MVpDcPKQnN+ErbTrhD6jJ6TXcomODH5TG7paR/O3k1mWOgAPNp+d1eG uHWHEcoWa088V1Xp0/TTuH5Ue7FacCK/Tie0jBdKjp9XpX6uX0LzL3ulMkauMKaZUq0A3 5g7tIBGCAQ3+bhVcSAy30IxearzhWHGQCcJjhtPK//2tyHLxxkJCJDUmHPe9QUMp3+g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154136; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=s6uHGQIjpiVfbdqGldEQOt6mYhwQqLfLg50SrJASIfs=; b=xyl2ly9AgBIm+PltWRSA+cH0jHgzCkfayXcbSuJ+XpuH72hWAlAuhSCb9WUZdCxtSudk KmuMEzn7fB6KMuYYw0nokZujBt3jnbX6U+F0RXpscQUbWh7iUGzDfi9qJRImHieHqBVNV 2LyH9Mdb1XBsp1ulyHZnTqtVuPq24exiCJpik3k3wGhZWyVyASLXY6tezaLYpM1CndG2o 2NbT3RJh+LlmfwpH7yKEEOSTUg4uPNIZ7VR8fE+M5+9AYpOIcAUKgGmnpotPjtvrSfQrs Ve31WVfZuiWqzLL3PKdqg4WK1KQ7ik0DQZcYSzDtyhEMenBBLpU9N8e5tcb6yBoFGhg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=fAyKixPm; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8AF63606A320 for ; Fri, 20 Nov 2026 05:55:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=fAyKixPm Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBF1F1F000C4; Fri, 20 Nov 2026 05:55:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154136; bh=s6uHGQIjpiVfbdqGldEQOt6mYhwQqLfLg50SrJASIfs=; h=From:To:Cc:Subject:Date:Reply-To; b=fAyKixPmh1pLOlEZQlNCAsC4CRdnJPp4vKNqs69vSnoQL8cpOSLLx9pL9LebI1rxv FnUPrt9/clGuA7sIPxkIwhug20RPaO8QPxn06fl5fh5UIp9CyiNpfbRvTUo6Rj7J3b SV8ngd5OpMigDBEzdD/SHp5QAE6f2YL9p6aZWEoM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99602: udf: don't let the extent type hide an exhausted free-space table extent Date: Fri, 20 Nov 2026 06:49:48 +0100 Message-ID: <2026112026-CVE-2026-99602-8ff6@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4471; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XXlLsamPkF807vv5HM5f3qMiEDSeDltO2+WhkH8Hfpo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/76eFxRabffY7NyN1wRrVe7/M42dVSQterWeU5XTaq b5sr9fXjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgI/3KGBRfXipz50nZiCdP2 g8/OdT74n37B15lhwaR7yUxx1z9rcmptCPNtVJb8//T6KQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-99602 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.118 with commit a40b887f4b67cf969c23e19c28b650d6b5e8afeb Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.64 with commit 78885b05188d3df733a9697d67bfcbb6d8330f76 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3.5 with commit c4f8f503f2038269ffe9bca218bea65bbece9998 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.4-rc2 with commit da582d84fcf5f2f0c1d7760e1a899ca7cedb80fc Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99602 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/udf/balloc.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/a40b887f4b67cf969c23e19c28b650d6b5e8afeb https://git.kernel.org/stable/c/78885b05188d3df733a9697d67bfcbb6d8330f76 https://git.kernel.org/stable/c/c4f8f503f2038269ffe9bca218bea65bbece9998 https://git.kernel.org/stable/c/da582d84fcf5f2f0c1d7760e1a899ca7cedb80fc