CVE-2024-47679

medium
Published 2025-11-11 · Modified 2025-11-19
CVSS v3
CVSS v2
VIR risk
5.5

Description

In the Linux kernel, the following vulnerability has been resolved: vfs: fix race between evice_inodes() and find_inode()&iput() Hi, all Recently I noticed a bug[1] in btrfs, after digged it into and I believe it'a race in vfs. Let's assume there's a inode (ie ino 261) with i_count 1 is called by iput(), and there's a concurrent thread calling generic_shutdown_super(). cpu0: cpu1: iput() // i_count is 1 ->spin_lock(inode) ->dec i_count to 0 ->iput_final() generic_shutdown_super() ->__inode_add_lru() ->evict_inodes() // cause some reason[2] ->if (atomic_read(inode->i_count)) continue; // return before // inode 261 passed the above check // list_lru_add_obj() // and then schedule out ->spin_unlock() // note here: the inode 261 // was still at sb list and hash list, // and I_FREEING|I_WILL_FREE was not been set btrfs_iget() // after some function calls ->find_inode() // found the above inode 261 ->spin_lock(inode) // check I_FREEING|I_WILL_FREE // and passed ->__iget() ->spin_unlock(inode) // schedule back ->spin_lock(inode) // check (I_NEW|I_FREEING|I_WILL_FREE) flags, // passed and set I_FREEING iput() ->spin_unlock(inode) ->spin_lock(inode) ->evict() // dec i_count to 0 ->iput_final() ->spin_unlock() ->evict() Now, we have two threads simultaneously evicting the same inode, which may trigger the BUG(inode->i_state & I_CLEAR) statement both within clear_inode() and iput(). To fix the bug, recheck the inode->i_count after holding i_lock. Because in the most scenarios, the first check is valid, and the overhead of spin_lock() can be reduced. If there is any misunderstanding, please let me know, thanks. [1]: https://lore.kernel.org/linux-btrfs/000000000000eabe1d0619c48986@google.com/ [2]: The reason might be 1. SB_ACTIVE was removed or 2. mapping_shrinkable() return false when I reproduced the bug.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: alma — https://errata.almalinux.org/9/ALSA-2025-20518.html

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2383441

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2376076

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2369184

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2363380

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2360215

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351633

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351629

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351625

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351624

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351620

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351618

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351616

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351613

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351612

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351608

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351606

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350726

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350725

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350589

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350585

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350400

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350397

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350396

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350392

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350388

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350386

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350375

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350374

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350367

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350363

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348901

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348654

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348650

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348645

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348634

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348625

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348620

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348615

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348601

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348600

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348597

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348595

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348587

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348585

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348584

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348581

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348578

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348577

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348574

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348573

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348566

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348556

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348554

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348550

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348547

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348543

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348541

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348528

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348523

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348515

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348279

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348240

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348238

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348071

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348022

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347968

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347919

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347859

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347807

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347781

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347759

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347753

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347707

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2346272

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2345240

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2344687

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2344684

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2343175

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2343172

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2338832

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2338828

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2338814

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2337124

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2337121

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2336541

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334829

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334795

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334676

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334560

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334548

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334547

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334537

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334439

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334415

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334396

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334357

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2331326

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2330341

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2329918

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2327887

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2327374

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2327203

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2324549

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320722

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320616

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320455

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320259

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320172

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2313092

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2312077

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2298169

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2024-47679

vendor Authored 2026-05-27

Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2025:20518

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2024-47679.html

vendor Authored 2026-05-27

Vendor advisory: redhat — https://access.redhat.com/errata/RHSA-2025:20518

OS impact

OSVersionStatusFixed in
redhat rhel9fixed
suse slesaffected
rockylinux rocky9fixed
debian debianbookwormfixed6.1.115-1
debian debianbullseyefixed5.10.234-1
debian debianforkyfixed6.11.2-1
debian debiansidfixed6.11.2-1
debian debiantrixiefixed6.11.2-1
almalinux almalinux9fixedkernel-doc-5.14.0-611.5.1.el9_7.noarch.rpm

References

Verify integrity in audit chain (admin only). AS-IS.