Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F60119CC0A for ; Thu, 27 Mar 2025 16:43:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093806; cv=none; b=t8BhFvDCIYCteJdDjDeiBFiAFx7WUzuxm6P+IGKlpsAdlca0ZKQUlliW6FRl6uQWQKzXt8EZflpbjgg5EcVB4ED3lqpGtf8ZxjWm9XfSVFcWAkK1uUO7kggC+oP0dTo3AQBCx19RrqUkl4u752sPGgo2RWKyXuDPRyaI7CwyngU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093806; c=relaxed/simple; bh=jsVCEnfbz4caR1FeT87rNJsEbZaAW5BROc4zQDZnUNo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p80uXak/FHvcNSwd/H4Qtu1hoo0CEHX1r8PM9ES+QJoj0sj6bEs9qdN+hovkmuETm8lmd7Vdz10oM73fC1F5JGvr5/1u+hlc5rKaAD+q5XNih2dkMdZTY055ZBaqWDlwMSOZeaWwBZ3cprqxJC2+OgsH5JWOiLbFoy/f7kQ+K9g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=r3Fd0Uhw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="r3Fd0Uhw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8413CC4CEDD; Thu, 27 Mar 2025 16:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093805; bh=jsVCEnfbz4caR1FeT87rNJsEbZaAW5BROc4zQDZnUNo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=r3Fd0Uhw5etu0WQy4aIWAYDrMOkR2n99sy1hY/UMlM97NDUgV7UR1aD0HY7z1FsME uBmKwdwhsjbZj4FhIchesXUtEzM80wlgDJomQbucmT5PrDcj7LJOSoKB6oD4uZpR4W WhZ3IgR8yxOgGDNT3cK32S4hSWeSO7mgLhOGrKfM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49739: gfs2: Always check inode size of inline inodes Date: Thu, 27 Mar 2025 17:42:57 +0100 Message-ID: <2025032756-CVE-2022-49739-a93e@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2568; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jsVCEnfbz4caR1FeT87rNJsEbZaAW5BROc4zQDZnUNo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPGwTnffK83zvj562NG5zd2r4ZZVenPNqQvXDuc+8tL BGr+7Jud8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE9v1jmO/UuPd/5I+E00cP bLu2Q1mm4di8FkaGBWt2BD49+O73/PlCkScXRCr8z5J+5wEA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: gfs2: Always check inode size of inline inodes Check if the inode size of stuffed (inline) inodes is within the allowed range when reading inodes from disk (gfs2_dinode_in()). This prevents us from on-disk corruption. The two checks in stuffed_readpage() and gfs2_unstuffer_page() that just truncate inline data to the maximum allowed size don't actually make sense, and they can be removed now as well. The Linux kernel CVE team has assigned CVE-2022-49739 to this issue. Affected and fixed versions =========================== Fixed in 4.19.280 with commit 45df749f827c286adbc951f2a4865b67f0442ba9 Fixed in 5.4.240 with commit 4d4cb76636134bf9a0c9c3432dae936f99954586 Fixed in 5.10.177 with commit 7c414f6f06e9a3934901b6edc3177ae5a1e07094 Fixed in 5.15.93 with commit 46c9088cabd4d0469fdb61ac2a9c5003057fe94d Fixed in 6.1.11 with commit d458a0984429c2d47e60254f5bc4119cbafe83a2 Fixed in 6.2 with commit 70376c7ff31221f1d21db5611d8209e677781d3a 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-2022-49739 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/gfs2/aops.c fs/gfs2/bmap.c fs/gfs2/glops.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/45df749f827c286adbc951f2a4865b67f0442ba9 https://git.kernel.org/stable/c/4d4cb76636134bf9a0c9c3432dae936f99954586 https://git.kernel.org/stable/c/7c414f6f06e9a3934901b6edc3177ae5a1e07094 https://git.kernel.org/stable/c/46c9088cabd4d0469fdb61ac2a9c5003057fe94d https://git.kernel.org/stable/c/d458a0984429c2d47e60254f5bc4119cbafe83a2 https://git.kernel.org/stable/c/70376c7ff31221f1d21db5611d8209e677781d3a