# CVE-2026-99741: tmpfs: keep the quota soft limits of an unused id

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2026-11-20T05:51:13.712Z
- Modified: 2026-11-23T08:18:14.393Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

tmpfs: keep the quota soft limits of an unused id

When the last reference to a dquot goes away, shmem_release_dquot()
stores its limits in the rb tree of the mount, unless
shmem_is_empty_dquot() says that there is nothing worth storing. That
function looks at the usage and at the two hard limits only.

So if the administrator sets nothing but soft limits for an id that owns
no file yet, the entry is thrown away as soon as the dquot that
Q_SETQUOTA used is released, and the id never gets to see a limit.

To fix it, compare the soft limits as well: an entry can be empty only if
both soft limits are zero as well, which is exactly what
shmem_acquire_dquot() sets for a new entry.

Fix generated by an LLM and sent by Josef Bacik in private.

[ david: slightly adjusted description ]

(As written by CVE List.)

## Affected

- Linux Linux: from de4c0e7ca8b526a82ff7e5ee5533787bb6d01724 before 473c522e8230ace167ededa2cef61a9c890e8144; from de4c0e7ca8b526a82ff7e5ee5533787bb6d01724 before b66796d176dfc107ec7fd2d6b4e9b6fa8b160dd6; from de4c0e7ca8b526a82ff7e5ee5533787bb6d01724 before e6158f1736ebc3681ee164e8d5b5c1607ac60138; from de4c0e7ca8b526a82ff7e5ee5533787bb6d01724 before 3aa51c92711896c86da9fcef01b1155e8caa7e74; from de4c0e7ca8b526a82ff7e5ee5533787bb6d01724 before 968d73463059156e1b89bfa6b189acd7d27197b2; 6.6 (not affected: before 6.6; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/473c522e8230ace167ededa2cef61a9c890e8144>
- <https://git.kernel.org/stable/c/b66796d176dfc107ec7fd2d6b4e9b6fa8b160dd6>
- <https://git.kernel.org/stable/c/e6158f1736ebc3681ee164e8d5b5c1607ac60138>
- <https://git.kernel.org/stable/c/3aa51c92711896c86da9fcef01b1155e8caa7e74>
- <https://git.kernel.org/stable/c/968d73463059156e1b89bfa6b189acd7d27197b2>

## Sources

- CVE List: [CVE-2026-99741](https://www.cve.org/CVERecord?id=CVE-2026-99741), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99741](https://nvd.nist.gov/vuln/detail/CVE-2026-99741), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99741 · Whole record: https://cve.day/CVE-2026-99741.json · Rebuilt by cve.day 2026-11-25T22:59:52.327Z
