Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 C481A3F8893 for ; Wed, 27 May 2026 12:26:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884813; cv=none; b=IHz5tnjaBa/rIb5lCterJIK9TduETmFue9OnBjaVVlSZoX3yGhSWMY8FHOjkBEi3T1PDj28zTuCVkin4xwYLFX8RUKTjv48nXMeyeiNE/4VZHo+B1JVCz6oe1JcUgyAKb9/2PYQfA3I3ineELNirt2nrLJgvFhPR/PFwcUTMGww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884813; c=relaxed/simple; bh=FSA7CDSL/jewqQgYOBQpsfbLOEOHR6Bu+jIrWSur1A4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Pei1jE7AzppSoei3gEtcXy+eGnyM/NLHAp0jM+xe7znPNjz3tq2SFgivP4z+xAdEcqOWEk9jQmwhs2bmVFqw49FLhcqqYc4ec9fCBkiA3Hdax/1j+DD7h2vLZ+8i4yT1io6TOehkqC4So3+GzsK7s1h0A1T3xX7ByDerWfVxw+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f0HwstxB; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="f0HwstxB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 002011F000E9; Wed, 27 May 2026 12:26:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884812; bh=lXntxUAzeaJARpUAINWcne6dUfNjMCt1pQQfpcK3IHM=; h=From:To:Cc:Subject:Date:Reply-To; b=f0HwstxBHg8HJOjbL1HBd4HsR+1wyrtM4fHw1x12iww40Z/56vVyR0Q0Zgpwbtckz /OKk1tqubjW7vAuVQwtHMTV2CtDTBrG8o73+HCsO2vlex4VTVbQqsVU0HFG/w3gylz hR0D47Ctha0DEJaUlXd8Y9M/WQdiHkll1Bp223WY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45948: ext4: fix memory leak in ext4_ext_shift_extents() Date: Wed, 27 May 2026 14:19:50 +0200 Message-ID: <2026052731-CVE-2026-45948-ea2b@gregkh> X-Mailer: git-send-email 2.54.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=3397; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SH0dZo1muHGjh1DqtK3OOsRw7JG6WBRIHpq6dDnUKgo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD8Vtv/77O6lwduMJtVnTFteb/pNQ9+JcXW546eNkJ gHt3bbsHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR4R0M89SPixtrbLD4nWga xruOLafiE69jDMOCiTod3zelCuZr79od/SQ2WFvCKfQzAA== 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 memory leak in ext4_ext_shift_extents() In ext4_ext_shift_extents(), if the extent is NULL in the while loop, the function returns immediately without releasing the path obtained via ext4_find_extent(), leading to a memory leak. Fix this by jumping to the out label to ensure the path is properly released. The Linux kernel CVE team has assigned CVE-2026-45948 to this issue. Affected and fixed versions =========================== Issue introduced in 3.15 with commit a18ed359bdddcded4f97ff5e2f07793ff9336913 and fixed in 5.10.252 with commit 7e807cb8603b7664fa630a696cd891d9a03c248d Issue introduced in 3.15 with commit a18ed359bdddcded4f97ff5e2f07793ff9336913 and fixed in 5.15.202 with commit afc5e61e1a07b2b833bd72cbee36ecce9cd901e2 Issue introduced in 3.15 with commit a18ed359bdddcded4f97ff5e2f07793ff9336913 and fixed in 6.1.165 with commit 1bce219ee5512cf179ba40cf114945a14a16e21f Issue introduced in 3.15 with commit a18ed359bdddcded4f97ff5e2f07793ff9336913 and fixed in 6.6.128 with commit 4a79fde8db7eba7f1128d971ceba4e3c9ac84aec Issue introduced in 3.15 with commit a18ed359bdddcded4f97ff5e2f07793ff9336913 and fixed in 6.12.75 with commit 2f4b1052246ca646bb17bfe0f53df2fdf9729b58 Issue introduced in 3.15 with commit a18ed359bdddcded4f97ff5e2f07793ff9336913 and fixed in 6.18.14 with commit 12615ab4bfb69678e5d961b28bb70040299e51b1 Issue introduced in 3.15 with commit a18ed359bdddcded4f97ff5e2f07793ff9336913 and fixed in 6.19.4 with commit bd7b52557e4a3ccd7595fdb3a585f1257de57935 Issue introduced in 3.15 with commit a18ed359bdddcded4f97ff5e2f07793ff9336913 and fixed in 7.0 with commit ca81109d4a8f192dc1cbad4a1ee25246363c2833 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-2026-45948 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/extents.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/7e807cb8603b7664fa630a696cd891d9a03c248d https://git.kernel.org/stable/c/afc5e61e1a07b2b833bd72cbee36ecce9cd901e2 https://git.kernel.org/stable/c/1bce219ee5512cf179ba40cf114945a14a16e21f https://git.kernel.org/stable/c/4a79fde8db7eba7f1128d971ceba4e3c9ac84aec https://git.kernel.org/stable/c/2f4b1052246ca646bb17bfe0f53df2fdf9729b58 https://git.kernel.org/stable/c/12615ab4bfb69678e5d961b28bb70040299e51b1 https://git.kernel.org/stable/c/bd7b52557e4a3ccd7595fdb3a585f1257de57935 https://git.kernel.org/stable/c/ca81109d4a8f192dc1cbad4a1ee25246363c2833