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 29482FC0C for ; Thu, 20 Jun 2024 11:16:15 +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=1718882176; cv=none; b=I52YIxyv8SyZmXDJDdEkSuO4J7jcZ8x+lDOJQmv8agFchS514pT28c9b2ccHU3S14EBYGnsoewhWVl2PpPeAly51vdw6vGA9UW9EJ1Hqcv8ccXdTby/AJU2gnTSfvHRe6D2/JzC361hb/Q/+E8DabI9ObE7Qz0vMjUheJh4uDco= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718882176; c=relaxed/simple; bh=tuZJRoX4Qs2dJjHPqcU43o2baK2CBf19sXhlwtrRI9c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b4pq5Cd2eVfa5LBUDzff9wjK654m0s3S3DiuxwJaeQ6DF12vJSmhiXPkbUFcMIv3p7ypxJfP37pHvB0EueT87jWMnr+TMqEJzeJnh2B5GxlXDHsLv4GVcQ0yUp8m+nJUY3JQgmmLLqO20Pmi/TcK+3anhRlEZs3sO6PPPr6KmTs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V68qCgzP; 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="V68qCgzP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 446A7C2BD10; Thu, 20 Jun 2024 11:16:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718882175; bh=tuZJRoX4Qs2dJjHPqcU43o2baK2CBf19sXhlwtrRI9c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=V68qCgzPbM3iMAEhwAS+D1RXZWsW3ee0jXoHlqundXW42HkAUXBMKU95wQOZNP44l bQrLAh9T3fVJGjfjIfWaRNeSER4zDYkVVI+5hMQ+UF0j6njCPNAlCRJ1V1d7Jma3vp VLkwxvUSaVtcDC2FNV1ouyCil/MhowCFxE6qsMIc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48712: ext4: fix error handling in ext4_fc_record_modified_inode() Date: Thu, 20 Jun 2024 13:15:52 +0200 Message-ID: <2024062054-CVE-2022-48712-6289@gregkh> X-Mailer: git-send-email 2.45.2 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=2039; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tuZJRoX4Qs2dJjHPqcU43o2baK2CBf19sXhlwtrRI9c=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkl/FnXSxQmHN0iOy3Ky/Xtt3OfKzc7vu/xOr749fSoe n8T+70WHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRqU8Z5pevvcNsnx/EEXLJ +06BgPUU7xvtRxgW7PrNfU3v6jLu6iMfH8xp9fC9ZfAmAgA= 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: ext4: fix error handling in ext4_fc_record_modified_inode() Current code does not fully takes care of krealloc() error case, which could lead to silent memory corruption or a kernel bug. This patch fixes that. Also it cleans up some duplicated error handling logic from various functions in fast_commit.c file. The Linux kernel CVE team has assigned CVE-2022-48712 to this issue. Affected and fixed versions =========================== Fixed in 5.10.99 with commit 62e46e0ffc02 Fixed in 5.15.22 with commit 1b6762ecdf3c Fixed in 5.16.8 with commit 14aa3f49c7fc Fixed in 5.17 with commit cdce59a15491 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-48712 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/62e46e0ffc02daa8fcfc02f7a932cc8a19601b19 https://git.kernel.org/stable/c/1b6762ecdf3cf12113772427c904aa3c420a1802 https://git.kernel.org/stable/c/14aa3f49c7fc6424763f4323bfbc3a807b0727dc https://git.kernel.org/stable/c/cdce59a1549190b66f8e3fe465c2b2f714b98a94