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 6BC442ECD0A for ; Fri, 25 Jul 2025 13:20:41 +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=1753449641; cv=none; b=XAgIvjYedD2+BxSq3WvlCUzp8L3remZCuEfNVK1O4DUerRhrrsYfdK+hqAH96dd2Dzuj3C7Y2/+Qnh94xJvYRQuBnC5tZ5Q4hKW3iDtUZwJlfY1/a6oyXDdTlWsxZVXsNH+2IP9MgVYmSXkmTnK3OL58ziaa/E2KG7ebq+79Q6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753449641; c=relaxed/simple; bh=HREOVzcF4VXXkfLImvaEYoxxsR1DgkKMzUVc0/rFfCc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Su5JolIXeM6uMxdqSK1Gjn7hIGYSsTnrCV0FQ3nOqEmUJfscX+HaD0FGeWqm8C996ItN90KpWLjCUQ7PwSJFx0COn2MvCO0eJnMcA0lGy5bm4qp5dJpHo2RscA2ovbl88pEyYsXRNPS14PbNwmZZECx45HyZe1Xd5/Pgq9fPOv4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jvz8qAwE; 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="jvz8qAwE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DA52C4CEE7; Fri, 25 Jul 2025 13:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753449641; bh=HREOVzcF4VXXkfLImvaEYoxxsR1DgkKMzUVc0/rFfCc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jvz8qAwEbMvrvhepovxn166FOQ5qpnfInwdByFAN8EgOpuNUXH0LHfWKus5q6wcAH WVEgVpaBRdc45g7FIlva45q9dlmJPiCMcdZ1jkH7eh7IatsJBQYilyhsUL7lKl6cok DjJBsj13UGeZk/Zq3JkE6NIRH9DnYU6hwgR51i5Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38411: netfs: Fix double put of request Date: Fri, 25 Jul 2025 15:20:25 +0200 Message-ID: <2025072521-CVE-2025-38411-0ca7@gregkh> X-Mailer: git-send-email 2.50.1 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=2368; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aeSDMCINUoXqKK4YsVYApAPo1G88RV4YENGDf8dqSlM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNLVM7ds7U3vH3/LWDzDl/jbQ674Rvnv3nws+W7zLsk npH/9UrdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEznExzOGtPuL7TCnH+eWJ Sa8TRB5qcJReucMwTzF/whPpEz9nWjkKZT+83VdkenzPXQA= 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: netfs: Fix double put of request If a netfs request finishes during the pause loop, it will have the ref that belongs to the IN_PROGRESS flag removed at that point - however, if it then goes to the final wait loop, that will *also* put the ref because it sees that the IN_PROGRESS flag is clear and incorrectly assumes that this happened when it called the collector. In fact, since IN_PROGRESS is clear, we shouldn't call the collector again since it's done all the cleanup, such as calling ->ki_complete(). Fix this by making netfs_collect_in_app() just return, indicating that we're done if IN_PROGRESS is removed. The Linux kernel CVE team has assigned CVE-2025-38411 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15.3 with commit 329ba1cb402ac328224965b8fc7a554a5150908e and fixed in 6.15.6 with commit d18facba5a5795ad44b2a00a052e3db2fa77ab12 Issue introduced in 6.16-rc1 with commit 2b1424cd131cfaba4cf7040473133d26cddac088 and fixed in 6.16-rc5 with commit 9df7b5ebead649b00bf9a53a798e4bf83a1318fd 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-2025-38411 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/netfs/misc.c include/trace/events/netfs.h 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/d18facba5a5795ad44b2a00a052e3db2fa77ab12 https://git.kernel.org/stable/c/9df7b5ebead649b00bf9a53a798e4bf83a1318fd