CVE-2026-93211: nfsd: initialize DRC hash table before registering shrinker
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nfsd: initialize DRC hash table before registering shrinker
shrinker_register() precedes the INIT_LIST_HEAD loop and the drc_hashsize store. On weakly-ordered architectures (arm64, ppc), a shrinker scan can observe drc_hashsize before the bucket list heads are initialized, causing a NULL deref in the DRC shrinker callback.
Move bucket initialization and the drc_hashsize store before shrinker_register() so the hash table is fully initialized before it becomes visible to the shrinker.
The Linux kernel CVE team has assigned CVE-2026-93211 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.7 with commit 8eea99a81c6f67c08fedd7db2ccd09aa93db69a7 and fixed in 6.12.109 with commit f060f43a67635dbb393bf5dcbfc3e8b9a44942cb Issue introduced in 6.7 with commit 8eea99a81c6f67c08fedd7db2ccd09aa93db69a7 and fixed in 6.18.50 with commit b57bd8cb739cb3cf88bdb1a5903a42a707a5c282 Issue introduced in 6.7 with commit 8eea99a81c6f67c08fedd7db2ccd09aa93db69a7 and fixed in 7.2.4 with commit 431c70ca5163c98c746f22f16cd58ca5aefec6dc Issue introduced in 6.7 with commit 8eea99a81c6f67c08fedd7db2ccd09aa93db69a7 and fixed in 7.3-rc1 with commit b0c58934f5cc4f05b63ef6605dd10c1d0d489e88
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-93211
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/nfsd/nfscache.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/f060f43a67635dbb393bf5dcbfc3e8b9a44942cb https://git.kernel.org/stable/c/b57bd8cb739cb3cf88bdb1a5903a42a707a5c282 https://git.kernel.org/stable/c/431c70ca5163c98c746f22f16cd58ca5aefec6dc https://git.kernel.org/stable/c/b0c58934f5cc4f05b63ef6605dd10c1d0d489e88