Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 8eea99a81c6f67c08fedd7db2ccd09aa93db69a7 before f060f43a67635dbb393bf5dcbfc3e8b9a44942cb; affected 8eea99a81c6f67c08fedd7db2ccd09aa93db69a7 before b57bd8cb739cb3cf88bdb1a5903a42a707a5c282; affected 8eea99a81c6f67c08fedd7db2ccd09aa93db69a7 before 431c70ca5163c98c746f22f16cd58ca5aefec6dc; affected 8eea99a81c6f67c08fedd7db2ccd09aa93db69a7 before b0c58934f5cc4f05b63ef6605dd10c1d0d489e88 |
| Linux / Linux | affected 6.7; unaffected 0 before 6.7; unaffected 6.12.109 through 6.12.*; unaffected 6.18.50 through 6.18.*; unaffected 7.2.4 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.