quota: initialize dquot cache before mounting rootfs
- CVE-2026-142936
- GHSA-ggwh-7mv6-q9mh
- EUVD-2026-142345
Description
In 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.
Text from the CVE.org record.
Recommendation
Linux
- If you run 6.12.xupdate to 6.12.119 or laterPatch update: breaking changes are unlikely
- If you run 6.6.xupdate to 6.6.163 or laterPatch update: breaking changes are unlikely
- If you run a version from 6.1.157 to before 6.2update to 6.2 or laterMinor version change: check the release notes
- If you run a version from 5.15.195 to before 5.16update to 5.16 or laterMinor version change: check the release notes
- If you run a version from 5.10.246 to before 5.11update to 5.11 or laterMinor version change: check the release notes
- If you run a version from 5.4.301 to before 5.5update to 5.5 or laterMinor version change: check the release notes
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 6.12.54 to before 6.12.119 6.12.119 from 6.6.113 to before 6.6.163 6.6.163 from 6.1.157 to before 6.2 6.2 from 5.15.195 to before 5.16 5.16 from 5.10.246 to before 5.11 5.11 from 5.4.301 to before 5.5 5.5 from 6.17.4 to before 6.18 none stated 6.18 none stated and 6 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.