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 06363382397 for ; Thu, 25 Jun 2026 08:45:50 +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=1782377151; cv=none; b=RluADJKa66NF9G5M82GKmnXrykp96EexrxNAI8mSIGczjTjdc5cw55gQ68lWAR0zqbRzdoWAA2ms842vU0E035CS+nsNbDWeYiXlkCNY9Xjp8juk9o/bd4imvqvyoz44J8LrfJKiWu6mlWQMVj9rKkyGFelgNjXEzWdNM35uV2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377151; c=relaxed/simple; bh=NbX4zGXuxqPp99tV3Gp+V8y14cJ6YyCG4xFEtRa9tPA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IznS9vkxc1T1tYkkPaYvhIHUAJfcnPceW/urGeUSBA4hxgUVQ+cA/KALHZaDx2+n38O+pvfghGURTvyOeltlPOvMyWWY87W2AGVR/aa3sAX0EDGRqCmmf6K+z9XKoW/CJKAzUWJdkE6cv8Rn62YTva/5ahiJ37E4o1iDcQt3/aM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Yg1c0gCf; 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="Yg1c0gCf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 124FC1F000E9; Thu, 25 Jun 2026 08:45:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377149; bh=0/SpN1TSk5hSbnyLOze5t+JxFPU3pmMQFOhkIpWcU7s=; h=From:To:Cc:Subject:Date:Reply-To; b=Yg1c0gCfF5/XSJkH3j9toQBTwpXUs1+1veaHRc/RlSMDfxz1HhdA6c+in7z7cR3fe tM1/d21naaNkkEhGZkTBphBGivO0gykwNI0kSAJkdxYP5ecTmC42rcBFIZ5FF2zggT bKOB4exboEyLNGsgAba6fNXwFJJsZCAjmPuFIkTU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53174: ovl: keep err zero after successful ovl_cache_get() Date: Thu, 25 Jun 2026 09:40:22 +0100 Message-ID: <2026062553-CVE-2026-53174-1b7c@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=2310; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BHbk2y3w15bKf3d2Vx1XWW62MH4d6fxqH+v6bKSF7Qo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2LyM7u6XSltgxHbrB9LI88eKC7T6zD56vXMBTc3LuR /l9iU1cHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRNbEM85STV3Xu92o+f+L3 ggcVt1Kkdi95up5hwVl5uZjcloY4dVnl5Q8zTl/I3HhxHwA= 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: ovl: keep err zero after successful ovl_cache_get() ovl_iterate_merged() stores PTR_ERR(cache) in err before checking IS_ERR(cache). On success err holds the truncated cache pointer and can be returned as a bogus non-zero error. The syzbot reproducer reaches this through overlay-on-overlay readdir: getdents64 iterate_dir(outer overlay file) ovl_iterate_merged() ovl_cache_get() ovl_dir_read_merged() ovl_dir_read() iterate_dir(inner overlay file) ovl_iterate_merged() Only compute PTR_ERR(cache) on the error path. The Linux kernel CVE team has assigned CVE-2026-53174 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit d25e4b739f8378419f990983f2542160e79738c5 and fixed in 7.0.13 with commit e7051909a01bfb883bfa78b27514854068ac4b85 Issue introduced in 6.19 with commit d25e4b739f8378419f990983f2542160e79738c5 and fixed in 7.1 with commit 1711b6ed6953cee5940ca4c3a6e77f1b3798cee2 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-53174 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/overlayfs/readdir.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/e7051909a01bfb883bfa78b27514854068ac4b85 https://git.kernel.org/stable/c/1711b6ed6953cee5940ca4c3a6e77f1b3798cee2