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 E34862DE719 for ; Tue, 7 Oct 2025 15:19:51 +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=1759850392; cv=none; b=no8OLiMbLSRHHR9WRbRlUeWaKcFyFboBKUZIRz4uop7Oa2dBgOoJjNxBhndDcztQpajgt5LnbRMfJVY1PwNsCV4RBRTixAAHXAaDLLkqR3yZJS11jewQQGNbCweFEVpVjMgIc685yhIrlLyKNSDay3k1frkOi2tmbah594QdO48= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850392; c=relaxed/simple; bh=ofIQA65VkE90XgDFvQaQjzsu7sMT0jdgswDnNah9TUY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SrUyP8zcQVxDAXh0pfVFPc2k4t41mqW6LI6LK3zgOaAF0jx3SlsPTjUv2RvF15zFKL6uFWPsXooZn+Uy9sRTwIil8CXYTLX2J3jC+Yr4ykxL/1c88lNDd/roNBMPPwGb+iJIky/fL9CeCja1OVI3+rk5S35jexdlw0GE2izRhhU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KI3OzJHm; 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="KI3OzJHm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9CA6C4CEF1; Tue, 7 Oct 2025 15:19:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850391; bh=ofIQA65VkE90XgDFvQaQjzsu7sMT0jdgswDnNah9TUY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KI3OzJHmIYp/s5IJtyvExWhnmnyeXhlBWD0AhMIUJ6LT8t/WJdeLCKKlcfeKIwcZl lFeC20LHqMs8WpASErEiB1hiQ/CgJkkYfX+5z1YTafAF9N3nTRsL6Pbke9o9UMTO3x 2+clCdLWfU/zBsHOiBEDpS8MtGYuzTiqvjAbPo1U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50512: ext4: fix potential memory leak in ext4_fc_record_regions() Date: Tue, 7 Oct 2025 17:18:59 +0200 Message-ID: <2025100701-CVE-2022-50512-f95b@gregkh> X-Mailer: git-send-email 2.51.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=2226; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bmH0jsyCx07vV1KftFj2NuXcyBZxsQaY62p7ndnxNVg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9VN598f4v7vzi/eUFEf27Nd31rGX/XhzKfGef1sP0 /E2yYKGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIaAvDgmmB7JuqDnySTTO6 tci0jfvpiXOpCgwLDhy+0DE/z88gyizWp+uZk3rPn1wPAA== 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_regions() As krealloc may return NULL, in this case 'state->fc_regions' may not be freed by krealloc, but 'state->fc_regions' already set NULL. Then will lead to 'state->fc_regions' memory leak. The Linux kernel CVE team has assigned CVE-2022-50512 to this issue. Affected and fixed versions =========================== Fixed in 5.10.150 with commit 2cfb769d60a2a57eb3566765428b6131cd16dcfe Fixed in 5.15.75 with commit 417b0455a0b6d0f60a2930592731d1f8340e24be Fixed in 5.19.17 with commit a4058b869e6c5e517c79e30532a350d0f3115c3e Fixed in 6.0.3 with commit 518566e71ad86b7c2f1bf6d9caee9588bb7ac158 Fixed in 6.1 with commit 7069d105c1f15c442b68af43f7fde784f3126739 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-50512 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/2cfb769d60a2a57eb3566765428b6131cd16dcfe https://git.kernel.org/stable/c/417b0455a0b6d0f60a2930592731d1f8340e24be https://git.kernel.org/stable/c/a4058b869e6c5e517c79e30532a350d0f3115c3e https://git.kernel.org/stable/c/518566e71ad86b7c2f1bf6d9caee9588bb7ac158 https://git.kernel.org/stable/c/7069d105c1f15c442b68af43f7fde784f3126739