# CVE-2024-45003: vfs: Don't evict inode under the inode lru traversing context

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 8, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-09-04T19:54:46.276Z
- **Modified:** 2026-06-17T07:53:23.930Z

## Who should check

- Anyone running Linux \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 3525ad25240dfdd8c78f3470911ed10aa727aa72; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 03880af02a78bc9a98b5a581f529cf709c88a9b8; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< cda54ec82c0f9d05393242b20b13f69b083f7e88; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 437741eba63bf4e437e2beb5583f8633556a2b98; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< b9bda5f6012dd00372f3a06a82ed8971a4c57c32; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 9063ab49c11e9518a3f2352434bb276cc8134c5f; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 2a0629834cd82f05d424bbc193374f9a43d1f87d
- Anyone running Linux 4.13

## Description

In the Linux kernel, the following vulnerability has been resolved:

vfs: Don't evict inode under the inode lru traversing context

The inode reclaiming process(See function prune\_icache\_sb) collects all
reclaimable inodes and mark them with I\_FREEING flag at first, at that
time, other processes will be stuck if they try getting these inodes
(See function find\_inode\_fast), then the reclaiming process destroy the
inodes by function dispose\_list(). Some filesystems(eg. ext4 with
ea\_inode feature, ubifs with xattr) may do inode lookup in the inode
evicting callback function, if the inode lookup is operated under the
inode lru traversing context, deadlock problems may happen.

Case 1: In function ext4\_evict\_inode(), the ea inode lookup could happen
        if ea\_inode feature is enabled, the lookup process will be stuck
	under the evicting context like this:

 1. File A has inode i\_reg and an ea inode i\_ea
 2. getfattr(A, xattr\_buf) // i\_ea is added into lru // lru-\>i\_ea
 3. Then, following three processes running like this:

    PA                              PB
 echo 2 \> /proc/sys/vm/drop\_caches
  shrink\_slab
   prune\_dcache\_sb
   // i\_reg is added into lru, lru-\>i\_ea-\>i\_reg
   prune\_icache\_sb
    list\_lru\_walk\_one
     inode\_lru\_isolate
      i\_ea-\>i\_state \|= I\_FREEING // set inode state
     inode\_lru\_isolate
      \_\_iget(i\_reg)
      spin\_unlock(&i\_reg-\>i\_lock)
      spin\_unlock(lru\_lock)
                                     rm file A
                                      i\_reg-\>nlink = 0
      iput(i\_reg) // i\_reg-\>nlink is 0, do evict
       ext4\_evict\_inode
        ext4\_xattr\_delete\_inode
         ext4\_xattr\_inode\_dec\_ref\_all
          ext4\_xattr\_inode\_iget
           ext4\_iget(i\_ea-\>i\_ino)
            iget\_locked
             find\_inode\_fast
              \_\_wait\_on\_freeing\_inode(i\_ea) ----→ AA deadlock
    dispose\_list // cannot be executed by prune\_icache\_sb
     wake\_up\_bit(&i\_ea-\>i\_state)

Case 2: In deleted inode writing function ubifs\_jnl\_write\_inode(), file
        deleting process holds BASEHD's wbuf-\>io\_mutex while getting the
	xattr inode, which could race with inode reclaiming process(The
        reclaiming process could try locking BASEHD's wbuf-\>io\_mutex in
	inode evicting function), then an ABBA deadlock problem would
	happen as following:

 1. File A has inode ia and a xattr(with inode ixa), regular file B has
    inode ib and a xattr.
 2. getfattr(A, xattr\_buf) // ixa is added into lru // lru-\>ixa
 3. Then, following three processes running like this:

        PA                PB                        PC
                echo 2 \> /proc/sys/vm/drop\_caches
                 shrink\_slab
                  prune\_dcache\_sb
                  // ib and ia are added into lru, lru-\>ixa-\>ib-\>ia
                  prune\_icache\_sb
                   list\_lru\_walk\_one
                    inode\_lru\_isolate
                     ixa-\>i\_state \|= I\_FREEING // set inode state
                    inode\_lru\_isolate
                     \_\_iget(ib)
                     spin\_unlock(&ib-\>i\_lock)
                     spin\_unlock(lru\_lock)
                                                   rm file B
                                                    ib-\>nlink = 0
 rm file A
  iput(ia)
   ubifs\_evict\_inode(ia)
    ubifs\_jnl\_delete\_inode(ia)
     ubifs\_jnl\_write\_inode(ia)
      make\_reservation(BASEHD) // Lock wbuf-\>io\_mutex
      ubifs\_iget(ixa-\>i\_ino)
       iget\_locked
        find\_inode\_fast
         \_\_wait\_on\_freeing\_inode(ixa)
          \|          iput(ib) // ib-\>nlink is 0, do evict
          \|           ubifs\_evict\_inode
          \|            ubifs\_jnl\_delete\_inode(ib)
          ↓             ubifs\_jnl\_write\_inode
     ABBA deadlock ←-----make\_reservation(BASEHD)
                   dispose\_list // cannot be executed by prune\_icache\_sb
                    wake\_up\_bit(&ixa-\>i\_state)

Fix the possible deadlock by using new inode state flag I\_LRU\_ISOLATING
to pin the inode in memory while inode\_lru\_isolate(
---truncated---

## Affected and fixed versions

- Linux: \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 3525ad25240dfdd8c78f3470911ed10aa727aa72; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 03880af02a78bc9a98b5a581f529cf709c88a9b8; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< cda54ec82c0f9d05393242b20b13f69b083f7e88; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 437741eba63bf4e437e2beb5583f8633556a2b98; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< b9bda5f6012dd00372f3a06a82ed8971a4c57c32; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 9063ab49c11e9518a3f2352434bb276cc8134c5f; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 2a0629834cd82f05d424bbc193374f9a43d1f87d (cvelist)
- Linux: 4.13 (cvelist)

## Mitigation

- Upgrade Linux to 2a0629834cd82f05d424bbc193374f9a43d1f87d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-45003. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-45003.md
Affected: Linux >= e50e5129f384ae282adebfb561189cdb19b81cee, < 3525ad25240dfdd8c78f3470911ed10aa727aa72; >= e50e5129f384ae282adebfb561189cdb19b81cee, < 03880af02a78bc9a98b5a581f529cf709c88a9b8; >= e50e5129f384ae282adebfb561189cdb19b81cee, < cda54ec82c0f9d05393242b20b13f69b083f7e88; >= e50e5129f384ae282adebfb…
Fixed in: Linux 3525ad25240dfdd8c78f3470911ed10aa727aa72, Linux 03880af02a78bc9a98b5a581f529cf709c88a9b8, Linux 437741eba63bf4e437e2beb5583f8633556a2b98, Linux 9063ab49c11e9518a3f2352434bb276cc8134c5f, Linux 2a0629834cd82f05d424bbc193374f9a43d1f87d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-45003 being exploited?

There is no confirmed exploitation: CVE-2024-45003 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-45003?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-45003?

Linux \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 3525ad25240dfdd8c78f3470911ed10aa727aa72; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 03880af02a78bc9a98b5a581f529cf709c88a9b8; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< cda54ec82c0f9d05393242b20b13f69b083f7e88; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 437741eba63bf4e437e2beb5583f8633556a2b98; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< b9bda5f6012dd00372f3a06a82ed8971a4c57c32; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 9063ab49c11e9518a3f2352434bb276cc8134c5f; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 2a0629834cd82f05d424bbc193374f9a43d1f87d; Linux 4.13.

### Is there a fix for CVE-2024-45003?

Yes. Fixed in Linux 3525ad25240dfdd8c78f3470911ed10aa727aa72, Linux 03880af02a78bc9a98b5a581f529cf709c88a9b8, Linux 437741eba63bf4e437e2beb5583f8633556a2b98, Linux 9063ab49c11e9518a3f2352434bb276cc8134c5f, Linux 2a0629834cd82f05d424bbc193374f9a43d1f87d. Upgrade Linux to 2a0629834cd82f05d424bbc193374f9a43d1f87d or later.

### How do I check if I'm affected by CVE-2024-45003?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3525ad25240dfdd8c78f3470911ed10aa727aa72>
- patch: <https://git.kernel.org/stable/c/03880af02a78bc9a98b5a581f529cf709c88a9b8>
- patch: <https://git.kernel.org/stable/c/cda54ec82c0f9d05393242b20b13f69b083f7e88>
- patch: <https://git.kernel.org/stable/c/437741eba63bf4e437e2beb5583f8633556a2b98>
- patch: <https://git.kernel.org/stable/c/b9bda5f6012dd00372f3a06a82ed8971a4c57c32>
- patch: <https://git.kernel.org/stable/c/9063ab49c11e9518a3f2352434bb276cc8134c5f>
- patch: <https://git.kernel.org/stable/c/2a0629834cd82f05d424bbc193374f9a43d1f87d>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-45003>

HTML: <https://flawdb.com/CVE-2024-45003> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-45003>
