CVE-2024-27058
tmpfs: fix race on handling dquot rbtree
Reported by linux · Published May 1, 2024
In the Linux kernel, the following vulnerability has been resolved: tmpfs: fix race on handling dquot rbtree A syzkaller reproducer found a race while attempting to remove dquot information from the rb tree. Fetching the rb_tree root node must also be protected by the dqopt->dqio_sem, otherwise, giving the right timing, shmem_release_dquot() will trigger a warning because it couldn't find a node in the tree, when the real reason was the root node changing before the search starts: Thread 1 Thread 2 - shmem_release_dquot() - shmem_{acquire,release}_dquot() - fetch ROOT - Fetch ROOT - acquire dqio_sem - wait dqio_sem - do something, triger a tree rebalance - release dqio_sem - acquire dqio_sem - start searching for the node, but from the wrong location, missing the node, and triggering a warning.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | f82f184874d2761ebaa60dccf577921a0dbb3810, c7077f43f30d817d10a9f8245e51576ac114b2f0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | eafc474e202978ac735c551d5ee1eb8c02e2be54, eafc474e202978ac735c551d5ee1eb8c02e2be54, eafc474e202978ac735c551d5ee1eb8c02e2be54 |
| Linux | Linux | 6.6, 0, 6.6.24 |
| Linux | Linux | *, 6.8.3, 6.9 |
| linux | linux_kernel | 6.6, 6.6, 6.6 |
Timeline
- May 1, 2024 CVE Published
- May 2, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
- Jan 15, 2026 Security Advisory (308 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (270 in total, the first dated here)
- Oct 12, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-27058
vulnetix vdb fixes CVE-2024-27058
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-27058/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart