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 4849657D233 for ; Fri, 11 Sep 2026 19:54:04 +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=1789156452; cv=none; b=hj6LkxXQ6vJDKEigt2pHp844Kbk3TiRDSikmPFGaPrshBxbep0qfGiH77JAVH/GApwWMXVtcs179LnagjcJK5ZVYZ40e/Q8/Kmw9DUWYZE6UmUbpXceyU34+H0Usv0COrmLdBGhpyeJXULajw5BKl8xo/6VEDeyxsBaDjHP7ffg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156452; c=relaxed/simple; bh=lP0xi5Cu5MYGVpZ7kRy+IO/CRsSqADLbhXfsYx7qtC0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uThvvQqzdm2fjNYVSGr5jAnz9KKht8uUzF9eyqH+Rn6U1DkZamy0P52GKJQ5Ey9x1C4jpDyMmuRR7EN7JQqO6JZW7FSujBPmFHVntOWtxr35FNVky9Yn8dQBtbJyGZbdY6vVWc+n2RCmcjxTvvvC/PCJXkO5AhJKfNJxEi8947w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wMRiVVBE; 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="wMRiVVBE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FBCC1F00893; Fri, 11 Sep 2026 19:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156443; bh=qCDKYSqtRfASixAxdQsUI6kEIm9nOrRs1mJvSyYhGiA=; h=From:To:Cc:Subject:Date:Reply-To; b=wMRiVVBExnBloGvuGF+85GcYg7J+Os+ut+fWTBevexm8M1LsBNZGccJzVENifbZDS pJJizDmfzijrq8j2xib0DgNJNstaYQIQbvRQyZq9UHp8akTVEhgQBzQIAiaJ77ABFf OLF7Z/ws8PRKr1Dc3ogl2NE4ZUDYlaNBttyeQi38= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89485: lockd: pin next file across nlm_inspect_file lock-drop Date: Fri, 11 Sep 2026 21:42:54 +0200 Message-ID: <2026091106-CVE-2026-89485-a374@gregkh> X-Mailer: git-send-email 2.55.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=3360; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OPJoRh+6AIAEQ29XrLWg3VpoLz+NSafeUEVU8XqVfN8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIoNe3Xk7+ZZVSeiy49NCGo+FyWl6NgqsefDqTMvsW 8K7n24I6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJLPvMMFfoa+3Xn8FSGeq/ 1r/q3Zdz1epKwX+GBbOu7JF7/6F85Wnf00r5tWGS/82nmgMA 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: lockd: pin next file across nlm_inspect_file lock-drop nlm_traverse_files() pins the current file with f_count++ across a mutex_unlock for nlm_inspect_file(), but nothing pins the saved next pointer. A concurrent nlm_release_file() can kfree the next file during the unlock window, and the iterator dereferences freed memory on the next loop step. Pin both current and next before the lock-drop. Advance by swapping the pinned cursors at the end of each iteration so next is always held alive across the unlock. Always call nlm_file_release() after dropping the iteration pin, regardless of whether the file matched the predicate. Use nlm_file_inuse(), which does a live walk of the inode lock list, rather than the cached f_locks field, so skipped files that never ran nlm_inspect_file() are evaluated correctly. Because every file in a hash bucket is now pinned and released, files skipped by the is_failover_file predicate that have no locks, blocks, shares, or external references are deleted during traversal. The old code never evaluated skipped files for cleanup. The new behavior is intentional: such files are stale and should not persist in the table. The Linux kernel CVE team has assigned CVE-2026-89485 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.18 with commit 01df9c5e918ae5559f2d96da0143f8bfbb9e6171 and fixed in 6.12.109 with commit c24bdb7df2f34bdc38ca8a73796f5acb40f1830c Issue introduced in 2.6.18 with commit 01df9c5e918ae5559f2d96da0143f8bfbb9e6171 and fixed in 6.18.50 with commit 41f0a6d31615fcae261bf28a0aa50050dc93a401 Issue introduced in 2.6.18 with commit 01df9c5e918ae5559f2d96da0143f8bfbb9e6171 and fixed in 7.2.4 with commit e999a88133654c6dfc68487fb49da5f20dfa2d4f Issue introduced in 2.6.18 with commit 01df9c5e918ae5559f2d96da0143f8bfbb9e6171 and fixed in 7.3-rc1 with commit 526c49cff3f72c3ec74752016380c7567040581b 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-89485 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/lockd/svcsubs.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/c24bdb7df2f34bdc38ca8a73796f5acb40f1830c https://git.kernel.org/stable/c/41f0a6d31615fcae261bf28a0aa50050dc93a401 https://git.kernel.org/stable/c/e999a88133654c6dfc68487fb49da5f20dfa2d4f https://git.kernel.org/stable/c/526c49cff3f72c3ec74752016380c7567040581b