# CVE-2024-26878: quota: Fix potential NULL pointer dereference

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-362, CWE-476
- **Published:** 2024-04-17T10:27:35.838Z
- **Modified:** 2026-10-15T01:17:27.880Z

## Who should check

- Anyone running Linux \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 8514899c1a4edf802f03c408db901063aa3f05a1; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 49669f8e7eb053f91d239df7b1bfb4500255a9d0; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 61380537aa6dd32d8a723d98b8f1bd1b11d8fee0; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 1ca72a3de915f87232c9a4cb9bebbd3af8ed3e25; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 7f9e833fc0f9b47be503af012eb5903086939754; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 40a673b4b07efd6f74ff3ab60f38b26aa91ee5d5; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< f2649d98aa9ca8623149b3cb8df00c944f5655c7; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 6afc9f4434fa8063aa768c2bf5bf98583aee0877; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< d0aa72604fbd80c8aabb46eda00535ed35570f1f
- Anyone running Linux 4.14

## Description

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 and fixed versions

- Linux: \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 8514899c1a4edf802f03c408db901063aa3f05a1; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 49669f8e7eb053f91d239df7b1bfb4500255a9d0; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 61380537aa6dd32d8a723d98b8f1bd1b11d8fee0; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 1ca72a3de915f87232c9a4cb9bebbd3af8ed3e25; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 7f9e833fc0f9b47be503af012eb5903086939754; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 40a673b4b07efd6f74ff3ab60f38b26aa91ee5d5; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< f2649d98aa9ca8623149b3cb8df00c944f5655c7; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 6afc9f4434fa8063aa768c2bf5bf98583aee0877; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< d0aa72604fbd80c8aabb46eda00535ed35570f1f (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26878. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26878.md
Affected: Linux >= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, < 8514899c1a4edf802f03c408db901063aa3f05a1; >= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, < 49669f8e7eb053f91d239df7b1bfb4500255a9d0; >= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, < 61380537aa6dd32d8a723d98b8f1bd1b11d8fee0; >= 7b9ca4c61bc278b771fb57d…
Fixed in: Linux 8514899c1a4edf802f03c408db901063aa3f05a1, Linux 49669f8e7eb053f91d239df7b1bfb4500255a9d0, Linux 61380537aa6dd32d8a723d98b8f1bd1b11d8fee0, Linux 1ca72a3de915f87232c9a4cb9bebbd3af8ed3e25, Linux 7f9e833fc0f9b47be503af012eb5903086939754, Linux 40a673b4b07efd6f74ff3ab60f38b26aa91ee5d5, Linux 6afc9…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26878 being exploited?

There is no confirmed exploitation: CVE-2024-26878 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26878?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-26878?

Linux \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 8514899c1a4edf802f03c408db901063aa3f05a1; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 49669f8e7eb053f91d239df7b1bfb4500255a9d0; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 61380537aa6dd32d8a723d98b8f1bd1b11d8fee0; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 1ca72a3de915f87232c9a4cb9bebbd3af8ed3e25; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 7f9e833fc0f9b47be503af012eb5903086939754; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 40a673b4b07efd6f74ff3ab60f38b26aa91ee5d5; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< f2649d98aa9ca8623149b3cb8df00c944f5655c7; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< 6afc9f4434fa8063aa768c2bf5bf98583aee0877; \>= 7b9ca4c61bc278b771fb57d6290a31ab1fc7fdac, \< d0aa72604fbd80c8aabb46eda00535ed35570f1f; Linux 4.14.

### Is there a fix for CVE-2024-26878?

Yes. Fixed in Linux 8514899c1a4edf802f03c408db901063aa3f05a1, Linux 49669f8e7eb053f91d239df7b1bfb4500255a9d0, Linux 61380537aa6dd32d8a723d98b8f1bd1b11d8fee0, Linux 1ca72a3de915f87232c9a4cb9bebbd3af8ed3e25, Linux 7f9e833fc0f9b47be503af012eb5903086939754, Linux 40a673b4b07efd6f74ff3ab60f38b26aa91ee5d5, Linux 6afc9f4434fa8063aa768c2bf5bf98583aee0877. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-26878?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8514899c1a4edf802f03c408db901063aa3f05a1>
- patch: <https://git.kernel.org/stable/c/49669f8e7eb053f91d239df7b1bfb4500255a9d0>
- patch: <https://git.kernel.org/stable/c/61380537aa6dd32d8a723d98b8f1bd1b11d8fee0>
- patch: <https://git.kernel.org/stable/c/1ca72a3de915f87232c9a4cb9bebbd3af8ed3e25>
- patch: <https://git.kernel.org/stable/c/7f9e833fc0f9b47be503af012eb5903086939754>
- patch: <https://git.kernel.org/stable/c/40a673b4b07efd6f74ff3ab60f38b26aa91ee5d5>
- patch: <https://git.kernel.org/stable/c/f2649d98aa9ca8623149b3cb8df00c944f5655c7>
- patch: <https://git.kernel.org/stable/c/6afc9f4434fa8063aa768c2bf5bf98583aee0877>
- patch: <https://git.kernel.org/stable/c/d0aa72604fbd80c8aabb46eda00535ed35570f1f>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26878>

HTML: <https://flawdb.com/CVE-2024-26878> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26878>
