From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796379545; b=5Dnc9/MaxYcsRst6zXYrj1Rc6FD9OLIR+5IVGrNh5iaTWdxoOu6qIhXRl+JTB9e4N0BD DbXjZZRrDgBOu8dPFT1WQeBqcSQ60WS2VVQG1LsUP/uTmjVq6Z5GnuMpnBR80pJfWuc+7 GWMdUM+ce5bTbwpfuOFtey4LmW89scnZyVmI9AR+IIZqPvxWsMybXx92jp+DpmyG/iR6M 9lP2aaCo6Q4dKRvm7jzwspatVDgpuOTTy5nD1xhh53PrHIappqgW0Uj+6zE6+/NECVzkb A8zd+3B1Gvz+mHqnaZQOtqsA+qp4Ioj9yHpz4qnYo8591oR8KhU0GBPoU/ej71oE8ng== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379545; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=byoo0EY3cNNXc/3253w/mASNi13GTsPilLqr76fVwBI=; b=EMvt1vW9JSSOg6yKpjdZiS6S4CcKc03OKmU+XWllAe2Sl57LxLs+rokkjK/9ktJ4m4Of Saz2JoRWA5fgAhnO0sB6TTBmw5qozB+x6yUqPrTVQ7wWzFvEK2dgzxgDxJsVCedLXTBfQ luxmnyna3TVqS5eSN7hc0tol8tw7i0WvT9hn0lk3xeSnJ/s+wBVxK13bXFKixXEO06I7z f6Eyo1Z1Nhpog9P3YBnYoJkMjP7nbkmpwMk2UsEZ9aFZ0DvgLrf+5Qc11XV6DT81yu6Sx cPDyn8VF4yZMisb+vFbBoEMY2wB0Py/rFcd4/9VwolRHm/6qUu2DpPSga3FAe3SudWA== 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=jrWQHM76; 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 3539B606A32D; Fri, 4 Dec 2026 10:19:05 +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=jrWQHM76 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A339D1F000CE; Fri, 4 Dec 2026 10:19:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379545; bh=byoo0EY3cNNXc/3253w/mASNi13GTsPilLqr76fVwBI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jrWQHM76AlxbV/mi6YTtAJvAIF9+hy3spR3Vyqt1oo0q/PMhcbhvwijFYTUwrepfU JQpGN6hHgV/e5Flt9IA+ioD7edHrwxZJoCVEg4bx+cx08fnjYfP10GBvXgn3fnI9PX lClwQzcke1J3lahWnIsfhZMUhCNTwu0wd+91Z3UI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jan Kara , Sasha Levin Subject: [PATCH 6.6 0014/1167] udf: validate VAT inode size for old VAT format Date: Fri, 4 Dec 2026 18:50:41 +0900 Message-ID: <20261204100702.419685210@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jan Kara [ Upstream commit 5163e6ee1ea744d412fe516235bfd9cab15141dc ] Validate VAT inode is large enough to contain at least the header for pre-2.00 UDF media format. Signed-off-by: Jan Kara Signed-off-by: Sasha Levin --- fs/udf/super.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fs/udf/super.c b/fs/udf/super.c index 7f71ce6b9b491..9f2b319a754b5 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -1288,6 +1288,11 @@ static int udf_load_vat(struct super_block *sb, int p_index, int type1_index) if (map->s_partition_type == UDF_VIRTUAL_MAP15) { map->s_type_specific.s_virtual.s_start_offset = 0; + if (sbi->s_vat_inode->i_size < 36) { + udf_err(sb, "Too short VAT inode size %lld\n", + sbi->s_vat_inode->i_size); + return -EFSCORRUPTED; + } map->s_type_specific.s_virtual.s_num_entries = (sbi->s_vat_inode->i_size - 36) >> 2; } else if (map->s_partition_type == UDF_VIRTUAL_MAP20) { -- 2.53.0