{"schema_version":"1.9.0","id":"CVE-2024-26878","published":"2024-04-17T10:27:35.838Z","modified":"2026-08-12T03:51:30.906980638Z","related":["ALSA-2024:5101","ALSA-2024:5102","SUSE-SU-2024:1643-1","SUSE-SU-2024:1644-1","SUSE-SU-2024:1646-1","SUSE-SU-2024:1659-1","SUSE-SU-2024:1663-1","SUSE-SU-2024:1870-1","SUSE-SU-2024:2135-1","SUSE-SU-2024:2203-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"summary":"quota: Fix potential NULL pointer dereference","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nquota: Fix potential NULL pointer dereference\n\nBelow race may cause NULL pointer dereference\n\nP1\t\t\t\t\tP2\ndquot_free_inode\t\t\tquota_off\n\t\t\t\t\t  drop_dquot_ref\n\t\t\t\t\t   remove_dquot_ref\n\t\t\t\t\t   dquots = i_dquot(inode)\n  dquots = i_dquot(inode)\n  srcu_read_lock\n  dquots[cnt]) != NULL (1)\n\t\t\t\t\t     dquots[type] = NULL (2)\n  spin_lock(&dquots[cnt]->dq_dqb_lock) (3)\n   ....\n\nIf dquot_free_inode(or other routines) checks inode's quota pointers (1)\nbefore quota_off sets it to NULL(2) and use it (3) after that, NULL pointer\ndereference will be triggered.\n\nSo let's fix it by using a temporary pointer to avoid this issue.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac"},{"fixed":"8514899c1a4edf802f03c408db901063aa3f05a1"},{"fixed":"49669f8e7eb053f91d239df7b1bfb4500255a9d0"},{"fixed":"61380537aa6dd32d8a723d98b8f1bd1b11d8fee0"},{"fixed":"1ca72a3de915f87232c9a4cb9bebbd3af8ed3e25"},{"fixed":"7f9e833fc0f9b47be503af012eb5903086939754"},{"fixed":"40a673b4b07efd6f74ff3ab60f38b26aa91ee5d5"},{"fixed":"f2649d98aa9ca8623149b3cb8df00c944f5655c7"},{"fixed":"6afc9f4434fa8063aa768c2bf5bf98583aee0877"},{"fixed":"d0aa72604fbd80c8aabb46eda00535ed35570f1f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26878.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.14.0"},{"fixed":"4.19.311"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.273"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.214"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.153"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.83"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.23"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.7.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.8.0"},{"fixed":"6.8.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26878.json"}}],"references":[{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1ca72a3de915f87232c9a4cb9bebbd3af8ed3e25"},{"type":"WEB","url":"https://git.kernel.org/stable/c/40a673b4b07efd6f74ff3ab60f38b26aa91ee5d5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/49669f8e7eb053f91d239df7b1bfb4500255a9d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/61380537aa6dd32d8a723d98b8f1bd1b11d8fee0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6afc9f4434fa8063aa768c2bf5bf98583aee0877"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7f9e833fc0f9b47be503af012eb5903086939754"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8514899c1a4edf802f03c408db901063aa3f05a1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d0aa72604fbd80c8aabb46eda00535ed35570f1f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f2649d98aa9ca8623149b3cb8df00c944f5655c7"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26878.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26878"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26878.json"}}