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 EEA861D86FF for ; Mon, 8 Dec 2025 01:17:42 +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=1765156663; cv=none; b=Hi5JpYAtky1J+pmEULh9aI4vNgkW48J0bhBbyGNrZf2DugQCCAnHC7ksneM2z5gnNMJEMwTHCB2FFL23MkDdFRqizav/VN+UWPPBe7sb83uOWnc4gAPR5NdSJC9JSSmckIbnZxb8tsE0/0dvDc7GPU3aoR5HD5OuPN0LH1l3Hi0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765156663; c=relaxed/simple; bh=LIHxTGzbYdlktEThD8HD20m3im91o2LtgKQqaViU+S0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HzT++w/N61twe4/bHGbv0eNoUjuf15YDn7qf+P+FHamFqjnaDfy2C70Ref/mya6tFqD64vvITRYhwAYsmrxkPdToBfVbAJdZtJFeHc2FdbPoW8ZwztwOreXwYsZgjWd/OFXSvNGYsnCpY68RhnovjG5pesa4y3xxI2ffmxmfK7s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KXM/o81e; 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="KXM/o81e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E59AEC4CEFB; Mon, 8 Dec 2025 01:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765156662; bh=LIHxTGzbYdlktEThD8HD20m3im91o2LtgKQqaViU+S0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=KXM/o81eKJJPXZjZTS3Q/gKFoGnvF7vWJYEob2jlPut7sAgKL+3ua+ntaE+U1d6yd Hj+fjr86+S8CvsXhQxfkqHa2qSC+g4J9AYDDhutpKaUiZnDhnpynEaad+JCf/QPc8N w+V3ueShmd454SZ7quvRZ0gEEHs8F3btkTYojBzY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50622: ext4: fix potential memory leak in ext4_fc_record_modified_inode() Date: Mon, 8 Dec 2025 10:16:59 +0900 Message-ID: <2025120852-CVE-2022-50622-9f34@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2257; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZcB/gVlaSEw8d3IDp8a5Dh70BTBH1Ybx2ZsLNEsZC40=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlm6ix3tOeUsoRb2svuEdrjPTmcPX9P+5Y+01tZQVxXt crDz+3tiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIm8E2aYn+P8tlHm+9ewhZKn xSUOB2rrHEkNYpintHLPzvspKVc0JnT1aszc8sDoO+t2AA== 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: ext4: fix potential memory leak in ext4_fc_record_modified_inode() As krealloc may return NULL, in this case 'state->fc_modified_inodes' may not be freed by krealloc, but 'state->fc_modified_inodes' already set NULL. Then will lead to 'state->fc_modified_inodes' memory leak. The Linux kernel CVE team has assigned CVE-2022-50622 to this issue. Affected and fixed versions =========================== Fixed in 5.10.150 with commit c9ce7766dc4e88e624c62a68221a3bbe8f06e856 Fixed in 5.15.75 with commit 9b5eb368a86f97eb9831f5b53b8e43ec69bc7cd4 Fixed in 5.19.17 with commit c0be17635f039f864b1108efec0015c73736e414 Fixed in 6.0.3 with commit 24d39affc6be1acf6df86a8c3e2413b8a73749c7 Fixed in 6.1 with commit 9305721a309fa1bd7c194e0d4a2335bf3b29dca4 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-50622 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/ext4/fast_commit.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/c9ce7766dc4e88e624c62a68221a3bbe8f06e856 https://git.kernel.org/stable/c/9b5eb368a86f97eb9831f5b53b8e43ec69bc7cd4 https://git.kernel.org/stable/c/c0be17635f039f864b1108efec0015c73736e414 https://git.kernel.org/stable/c/24d39affc6be1acf6df86a8c3e2413b8a73749c7 https://git.kernel.org/stable/c/9305721a309fa1bd7c194e0d4a2335bf3b29dca4