{"id":"CVE-2026-89485","revision":"a52f41a2a5c540da9edd3bb4ae99b841","records":[{"revision":"a52f41a2a5c540da9edd3bb4ae99b841","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-89485","aliases":[],"title":"lockd: pin next file across nlm_inspect_file lock-drop","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nlockd: pin next file across nlm_inspect_file lock-drop\n\nnlm_traverse_files() pins the current file with f_count++ across\na mutex_unlock for nlm_inspect_file(), but nothing pins the saved\nnext pointer.  A concurrent nlm_release_file() can kfree the next\nfile during the unlock window, and the iterator dereferences freed\nmemory on the next loop step.\n\nPin both current and next before the lock-drop.  Advance by\nswapping the pinned cursors at the end of each iteration so next\nis always held alive across the unlock.\n\nAlways call nlm_file_release() after dropping the iteration pin,\nregardless of whether the file matched the predicate.  Use\nnlm_file_inuse(), which does a live walk of the inode lock list,\nrather than the cached f_locks field, so skipped files that never\nran nlm_inspect_file() are evaluated correctly.\n\nBecause every file in a hash bucket is now pinned and released,\nfiles skipped by the is_failover_file predicate that have no\nlocks, blocks, shares, or external references are deleted during\ntraversal.  The old code never evaluated skipped files for\ncleanup.  The new behavior is intentional: such files are stale\nand should not persist in the table.","state":0,"publishedAt":"2026-09-11T19:43:39.403+00:00","modifiedAt":"2026-10-19T08:47:35.868+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/lockd/svcsubs.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"01df9c5e918ae5559f2d96da0143f8bfbb9e6171\",\n                            \"lessThan\": \"e3c413f789eaf0170275c7eba523ead73d963f30\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"01df9c5e918ae5559f2d96da0143f8bfbb9e6171\",\n                            \"lessThan\": \"08a455f87b14c7ff22ae3fdadda62a796a3a5572\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"01df9c5e918ae5559f2d96da0143f8bfbb9e6171\",\n                            \"lessThan\": \"550c19222c7132c888e23c9d89079ba1c9bc4cca\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"01df9c5e918ae5559f2d96da0143f8bfbb9e6171\",\n                            \"lessThan\": \"350087f231c11efcd288c310707c40eab63ca583\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"01df9c5e918ae5559f2d96da0143f8bfbb9e6171\",\n                            \"lessThan\": \"c24bdb7df2f34bdc38ca8a73796f5acb40f1830c\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"01df9c5e918ae5559f2d96da0143f8bfbb9e6171\",\n                            \"lessThan\": \"41f0a6d31615fcae261bf28a0aa50050dc93a401\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"01df9c5e918ae5559f2d96da0143f8bfbb9e6171\",\n                            \"lessThan\": \"e999a88133654c6dfc68487fb49da5f20dfa2d4f\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"01df9c5e918ae5559f2d96da0143f8bfbb9e6171\",\n                            \"lessThan\": \"526c49cff3f72c3ec74752016380c7567040581b\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/lockd/svcsubs.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"2.6.18\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"2.6.18\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.10.270\",\n                            \"lessThanOrEqual\": \"5.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.221\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.188\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.157\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.109\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.50\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.4\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":"CRITICAL"}],"references":["https://git.kernel.org/stable/c/e3c413f789eaf0170275c7eba523ead73d963f30","https://git.kernel.org/stable/c/08a455f87b14c7ff22ae3fdadda62a796a3a5572","https://git.kernel.org/stable/c/550c19222c7132c888e23c9d89079ba1c9bc4cca","https://git.kernel.org/stable/c/350087f231c11efcd288c310707c40eab63ca583","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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-89485","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-89485","identifiers":["CVE-2026-89485"]},"retained":false,"historicalAffected":[]}],"coverage":[]}