A vulnerability in the Linux kernel tmpfs subsystem causes quota soft limits for an unused ID to be discarded incorrectly. When only soft limits are set for an ID that owns no files, the quota entry is removed prematurely, preventing the ID from enforcing its limits. The flaw is due to the function shmem_is_empty_dquot() not considering soft limits when deciding to discard quota entries. The fix involves modifying the check to include soft limits, ensuring entries with non-zero soft limits are retained.