FKIE_CVE-2026-99741

Vulnerability from fkie_nvd - Published: 2026-11-20 06:18 - Updated: 2026-11-23 08:18
Severity
Summary
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 ]
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "mm/shmem_quota.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "473c522e8230ace167ededa2cef61a9c890e8144",
              "status": "affected",
              "version": "de4c0e7ca8b526a82ff7e5ee5533787bb6d01724",
              "versionType": "git"
            },
            {
              "lessThan": "b66796d176dfc107ec7fd2d6b4e9b6fa8b160dd6",
              "status": "affected",
              "version": "de4c0e7ca8b526a82ff7e5ee5533787bb6d01724",
              "versionType": "git"
            },
            {
              "lessThan": "e6158f1736ebc3681ee164e8d5b5c1607ac60138",
              "status": "affected",
              "version": "de4c0e7ca8b526a82ff7e5ee5533787bb6d01724",
              "versionType": "git"
            },
            {
              "lessThan": "3aa51c92711896c86da9fcef01b1155e8caa7e74",
              "status": "affected",
              "version": "de4c0e7ca8b526a82ff7e5ee5533787bb6d01724",
              "versionType": "git"
            },
            {
              "lessThan": "968d73463059156e1b89bfa6b189acd7d27197b2",
              "status": "affected",
              "version": "de4c0e7ca8b526a82ff7e5ee5533787bb6d01724",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "mm/shmem_quota.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.6"
            },
            {
              "lessThan": "6.6",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.118",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ntmpfs: keep the quota soft limits of an unused id\n\nWhen the last reference to a dquot goes away, shmem_release_dquot()\nstores its limits in the rb tree of the mount, unless\nshmem_is_empty_dquot() says that there is nothing worth storing. That\nfunction looks at the usage and at the two hard limits only.\n\nSo if the administrator sets nothing but soft limits for an id that owns\nno file yet, the entry is thrown away as soon as the dquot that\nQ_SETQUOTA used is released, and the id never gets to see a limit.\n\nTo fix it, compare the soft limits as well: an entry can be empty only if\nboth soft limits are zero as well, which is exactly what\nshmem_acquire_dquot() sets for a new entry.\n\nFix generated by an LLM and sent by Josef Bacik in private.\n\n[ david: slightly adjusted description ]"
    }
  ],
  "id": "CVE-2026-99741",
  "lastModified": "2026-11-23T08:18:14.393",
  "metrics": {},
  "published": "2026-11-20T06:18:11.847",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/3aa51c92711896c86da9fcef01b1155e8caa7e74"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/473c522e8230ace167ededa2cef61a9c890e8144"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/968d73463059156e1b89bfa6b189acd7d27197b2"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/b66796d176dfc107ec7fd2d6b4e9b6fa8b160dd6"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/e6158f1736ebc3681ee164e8d5b5c1607ac60138"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…