quota: initialize dquot cache before mounting rootfs

Summary

CVECVE-2026-142936
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 04:18:34 UTC
Updated2026-12-03 04:18:34 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: quota: initialize dquot cache before mounting rootfs On some systems, a tmpfs backed rootfs is extensively used throughout system's lifecycle. tmpfs quotas are needed to limit per user rootfs usage. However, booting with CONFIG_TMPFS_QUOTA=y, an initramfs, no root= and "initramfs_options=usrquota" panics at boot: BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: 0010:dqget+0x1ac/0x490 Call Trace: __dquot_initialize dquot_initialize shmem_get_inode shmem_fill_super ... mnt_init vfs_caches_init start_kernel The rootfs is mounted from mnt_init(), but the dquot hash table and cache are only set up later by dquot_init(), an fs_initcall. Creating the root inode of a quota enabled rootfs thus dereferences the NULL dquot_hash in dqget(). Rename dquot_init() to dquot_cache_init() and call it from vfs_caches_init() before mnt_init(). The slab, percpu and early workqueue code it relies on is available there, and the workqueue rescuer and shrinker debugfs entries are set up later by their own subsystems. Keep the sysctl registration in an fs_initcall, as done for the dcache, inode and mount sysctls. This only moves existing allocations earlier in boot.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 5a7602d64e1c2124925eff3ab0e065f0b62382f8 53d92abd2be74e5475b853591044f2b97226fcad git Not specified
CNA Linux Linux affected a05855302b508d62119c6a41429eb3ee9e36c9ce 3ebb52ce6aaf8b14fd301c84a0fdfd1919041c11 git Not specified
CNA Linux Linux affected 278033a225e13ec21900f0a92b8351658f5377f2 fbf982faa11289cf258a5f786a4eadcb6c74159c git Not specified
CNA Linux Linux affected 278033a225e13ec21900f0a92b8351658f5377f2 a62cd0e3741535b650ace9f96f82992d4e447956 git Not specified
CNA Linux Linux affected 278033a225e13ec21900f0a92b8351658f5377f2 e21a6f39aa6d0336ffbf5f34e5fa20ff8de36773 git Not specified
CNA Linux Linux affected 6ad65ae94d0b5f8418f9474d59b16720e106baa6 git Not specified
CNA Linux Linux affected 1c543509044dda450c85034eab158a0d3ae58a61 git Not specified
CNA Linux Linux affected 5c64e8be2a7ef47203ac5aded4baabbc5b64e5e5 git Not specified
CNA Linux Linux affected 5895d78ee7fa67348a44718d71b0c4bc3ff459d5 git Not specified
CNA Linux Linux affected 3b72a03bf5fe3b2cc1a7b9ca3d4a47f73d1189d1 git Not specified
CNA Linux Linux affected 6.6.113 6.6.163 semver Not specified
CNA Linux Linux affected 6.12.54 6.12.119 semver Not specified
CNA Linux Linux affected 5.4.301 5.5 semver Not specified
CNA Linux Linux affected 5.10.246 5.11 semver Not specified
CNA Linux Linux affected 5.15.195 5.16 semver Not specified
CNA Linux Linux affected 6.1.157 6.2 semver Not specified
CNA Linux Linux affected 6.17.4 6.18 semver Not specified
CNA Linux Linux affected 6.18 Not specified
CNA Linux Linux unaffected 6.18 semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/a62cd0e3741535b650ace9f96f82992d4e447956 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/53d92abd2be74e5475b853591044f2b97226fcad 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3ebb52ce6aaf8b14fd301c84a0fdfd1919041c11 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/fbf982faa11289cf258a5f786a4eadcb6c74159c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e21a6f39aa6d0336ffbf5f34e5fa20ff8de36773 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report