CVE-2024-27058

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-27058
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27058.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-27058
Downstream
Published
2024-05-01T13:15:50Z
Modified
2025-04-08T19:42:55Z
Summary
[none]
Details

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 rbtree root node must also be protected by the dqopt->dqiosem, otherwise, giving the right timing, shmemreleasedquot() 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 - shmemreleasedquot() - 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.
References

Affected packages

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.7.12-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}