CVE-2026-142936
Received Received - Intake

Kernel NULL Pointer Dereference in Linux Kernel Quota System

Vulnerability report for CVE-2026-142936, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-03

Last updated on: 2026-12-03

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-03
Last Modified
2026-12-03
Generated
2026-12-03
AI Q&A
2026-12-03
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a kernel panic during boot when using a tmpfs-backed root filesystem with quotas enabled. The issue occurs because the dquot cache is initialized after the root filesystem is mounted, leading to a NULL pointer dereference in the dqget function. The fix renames dquot_init() to dquot_cache_init() and calls it earlier in the boot process to ensure the dquot cache is ready before mounting the root filesystem.

The panic happens specifically when booting with CONFIG_TMPFS_QUOTA=y, an initramfs, no root= kernel parameter, and initramfs_options=usrquota set.

Detection Guidance

This vulnerability causes a kernel panic during boot when specific conditions are met (tmpfs quotas enabled, initramfs used, no root= parameter, and usrquota option set). Detection requires checking kernel logs for NULL pointer dereference errors during boot, specifically referencing dqget or dquot_initialize functions.

Impact Analysis

This vulnerability causes a system crash (kernel panic) during boot, preventing the system from starting up properly. Users relying on tmpfs quotas for root filesystem usage limits would experience boot failures, leading to unavailability of the system until patched.

Mitigation Strategies

Apply the kernel patch that renames dquot_init() to dquot_cache_init() and calls it earlier in the boot process. Ensure your Linux kernel version includes this fix. If using a custom kernel, rebuild with the patch applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-142936. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...