CVE-2024-26878

Summary

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.

Affected Software

VendorProductVersion RangeStatus
LinuxLinux7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac < 8514899c1a4edf802f03c408db901063aa3f05a1affected
LinuxLinux7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac < 49669f8e7eb053f91d239df7b1bfb4500255a9d0affected
LinuxLinux7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac < 61380537aa6dd32d8a723d98b8f1bd1b11d8fee0affected
LinuxLinux7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac < 1ca72a3de915f87232c9a4cb9bebbd3af8ed3e25affected
LinuxLinux7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac < 7f9e833fc0f9b47be503af012eb5903086939754affected
LinuxLinux7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac < 40a673b4b07efd6f74ff3ab60f38b26aa91ee5d5affected
LinuxLinux7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac < f2649d98aa9ca8623149b3cb8df00c944f5655c7affected
LinuxLinux7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac < 6afc9f4434fa8063aa768c2bf5bf98583aee0877affected
LinuxLinux7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac < d0aa72604fbd80c8aabb46eda00535ed35570f1faffected
LinuxLinux4.14affected
LinuxLinux0 < 4.14unaffected
LinuxLinux4.19.311 <= 4.19.*unaffected
LinuxLinux5.4.273 <= 5.4.*unaffected
LinuxLinux5.10.214 <= 5.10.*unaffected
LinuxLinux5.15.153 <= 5.15.*unaffected
LinuxLinux6.1.83 <= 6.1.*unaffected
LinuxLinux6.6.23 <= 6.6.*unaffected
LinuxLinux6.7.11 <= 6.7.*unaffected
LinuxLinux6.8.2 <= 6.8.*unaffected
LinuxLinux6.9 <= *unaffected

Weaknesses

ADP Enrichment

CVE Program Container

Additional References

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: partial

Additional References

References