CVE Catalog

CVE-2024-26878

MediumCVSS 4.7
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.19%

8th percentile - higher than 8% of all known CVEs

Summary

In the Linux kernel quota subsystem, a potential race leads to a NULL pointer dereference. The dquot_free_inode function may read the inode's quota pointer before quota_off sets it to NULL, and then use it after that change.

Risk Assessment

A kernel crash (NULL pointer dereference) and denial of service may occur. It requires local access and quota operations, limiting the attack vector to privileged users.

Recommendation

Update the Linux kernel to a version containing the fix that uses a temporary pointer. Monitor systems with active quota for unexpected reboots.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: quota: Fix potential NULL pointer dereference Below race may cause NULL pointer dereference P1 P2 dquot_free_inode quota_off drop_dquot_ref remove_dquot_ref dquots = i_dquot(inode) dquots = i_dquot(inode) srcu_read_lock dquots[cnt]) != NULL (1) dquots[type] = NULL (2) spin_lock(&dquots[cnt]->dq_dqb_lock) (3) .... If dquot_free_inode(or other routines) checks inode's quota pointers (1) before quota_off sets it to NULL(2) and use it (3) after that, NULL pointer dereference will be triggered. So let's fix it by using a temporary pointer to avoid this issue.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS