# CVE-2024-56744: f2fs: fix to avoid potential deadlock in f2fs\_record\_stop\_reason()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-12-29T11:30:11.816Z
- **Modified:** 2026-06-17T08:12:53.200Z

## Who should check

- Anyone running Linux \>= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, \< ecf4e6782b01fd578b565b3dd2be7bb0ac91082e; \>= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, \< 1539a088b108996bcdaddb7775070b5163b14233; \>= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, \< 801092a2c9c251ef6a8678fcb8fcc1220474a697; \>= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, \< f10a890308a7cd8794e21f646f09827c6cb4bf5d; ed1d478bf838820201f3fb67a1748fdf15954ea4; \>= 6.4.4, \< 6.5
- Anyone running Linux 6.5

## Description

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

f2fs: fix to avoid potential deadlock in f2fs\_record\_stop\_reason()

syzbot reports deadlock issue of f2fs as below:

======================================================
WARNING: possible circular locking dependency detected
6.12.0-rc3-syzkaller-00087-gc964ced77262 \#0 Not tainted
------------------------------------------------------
kswapd0/79 is trying to acquire lock:
ffff888011824088 (&sbi-\>sb\_lock){++++}-{3:3}, at: f2fs\_down\_write fs/f2fs/f2fs.h:2199 \[inline\]
ffff888011824088 (&sbi-\>sb\_lock){++++}-{3:3}, at: f2fs\_record\_stop\_reason+0x52/0x1d0 fs/f2fs/super.c:4068

but task is already holding lock:
ffff88804bd92610 (sb\_internal\#2){.+.+}-{0:0}, at: f2fs\_evict\_inode+0x662/0x15c0 fs/f2fs/inode.c:842

which lock already depends on the new lock.

the existing dependency chain (in reverse order) is:

-\> \#2 (sb\_internal\#2){.+.+}-{0:0}:
       lock\_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5825
       percpu\_down\_read include/linux/percpu-rwsem.h:51 \[inline\]
       \_\_sb\_start\_write include/linux/fs.h:1716 \[inline\]
       sb\_start\_intwrite+0x4d/0x1c0 include/linux/fs.h:1899
       f2fs\_evict\_inode+0x662/0x15c0 fs/f2fs/inode.c:842
       evict+0x4e8/0x9b0 fs/inode.c:725
       f2fs\_evict\_inode+0x1a4/0x15c0 fs/f2fs/inode.c:807
       evict+0x4e8/0x9b0 fs/inode.c:725
       dispose\_list fs/inode.c:774 \[inline\]
       prune\_icache\_sb+0x239/0x2f0 fs/inode.c:963
       super\_cache\_scan+0x38c/0x4b0 fs/super.c:223
       do\_shrink\_slab+0x701/0x1160 mm/shrinker.c:435
       shrink\_slab+0x1093/0x14d0 mm/shrinker.c:662
       shrink\_one+0x43b/0x850 mm/vmscan.c:4818
       shrink\_many mm/vmscan.c:4879 \[inline\]
       lru\_gen\_shrink\_node mm/vmscan.c:4957 \[inline\]
       shrink\_node+0x3799/0x3de0 mm/vmscan.c:5937
       kswapd\_shrink\_node mm/vmscan.c:6765 \[inline\]
       balance\_pgdat mm/vmscan.c:6957 \[inline\]
       kswapd+0x1ca3/0x3700 mm/vmscan.c:7226
       kthread+0x2f0/0x390 kernel/kthread.c:389
       ret\_from\_fork+0x4b/0x80 arch/x86/kernel/process.c:147
       ret\_from\_fork\_asm+0x1a/0x30 arch/x86/entry/entry\_64.S:244

-\> \#1 (fs\_reclaim){+.+.}-{0:0}:
       lock\_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5825
       \_\_fs\_reclaim\_acquire mm/page\_alloc.c:3834 \[inline\]
       fs\_reclaim\_acquire+0x88/0x130 mm/page\_alloc.c:3848
       might\_alloc include/linux/sched/mm.h:318 \[inline\]
       prepare\_alloc\_pages+0x147/0x5b0 mm/page\_alloc.c:4493
       \_\_alloc\_pages\_noprof+0x16f/0x710 mm/page\_alloc.c:4722
       alloc\_pages\_mpol\_noprof+0x3e8/0x680 mm/mempolicy.c:2265
       alloc\_pages\_noprof mm/mempolicy.c:2345 \[inline\]
       folio\_alloc\_noprof+0x128/0x180 mm/mempolicy.c:2352
       filemap\_alloc\_folio\_noprof+0xdf/0x500 mm/filemap.c:1010
       do\_read\_cache\_folio+0x2eb/0x850 mm/filemap.c:3787
       read\_mapping\_folio include/linux/pagemap.h:1011 \[inline\]
       f2fs\_commit\_super+0x3c0/0x7d0 fs/f2fs/super.c:4032
       f2fs\_record\_stop\_reason+0x13b/0x1d0 fs/f2fs/super.c:4079
       f2fs\_handle\_critical\_error+0x2ac/0x5c0 fs/f2fs/super.c:4174
       f2fs\_write\_inode+0x35f/0x4d0 fs/f2fs/inode.c:785
       write\_inode fs/fs-writeback.c:1503 \[inline\]
       \_\_writeback\_single\_inode+0x711/0x10d0 fs/fs-writeback.c:1723
       writeback\_single\_inode+0x1f3/0x660 fs/fs-writeback.c:1779
       sync\_inode\_metadata+0xc4/0x120 fs/fs-writeback.c:2849
       f2fs\_release\_file+0xa8/0x100 fs/f2fs/file.c:1941
       \_\_fput+0x23f/0x880 fs/file\_table.c:431
       task\_work\_run+0x24f/0x310 kernel/task\_work.c:228
       resume\_user\_mode\_work include/linux/resume\_user\_mode.h:50 \[inline\]
       exit\_to\_user\_mode\_loop kernel/entry/common.c:114 \[inline\]
       exit\_to\_user\_mode\_prepare include/linux/entry-common.h:328 \[inline\]
       \_\_syscall\_exit\_to\_user\_mode\_work kernel/entry/common.c:207 \[inline\]
       syscall\_exit\_to\_user\_mode+0x168/0x370 kernel/entry/common.c:218
       do\_syscall\_64+0x100/0x230 arch/x86/entry/common.c:89
       entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

---truncated---

## Affected and fixed versions

- Linux: \>= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, \< ecf4e6782b01fd578b565b3dd2be7bb0ac91082e; \>= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, \< 1539a088b108996bcdaddb7775070b5163b14233; \>= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, \< 801092a2c9c251ef6a8678fcb8fcc1220474a697; \>= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, \< f10a890308a7cd8794e21f646f09827c6cb4bf5d; ed1d478bf838820201f3fb67a1748fdf15954ea4; \>= 6.4.4, \< 6.5 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 6.5 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-56744. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56744.md
Affected: Linux >= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, < ecf4e6782b01fd578b565b3dd2be7bb0ac91082e; >= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, < 1539a088b108996bcdaddb7775070b5163b14233; >= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, < 801092a2c9c251ef6a8678fcb8fcc1220474a697; >= b62e71be2110d8b52bf5faf…
Fixed in: Linux 1539a088b108996bcdaddb7775070b5163b14233, Linux 801092a2c9c251ef6a8678fcb8fcc1220474a697, Linux 6.5

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-56744 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, \< ecf4e6782b01fd578b565b3dd2be7bb0ac91082e; \>= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, \< 1539a088b108996bcdaddb7775070b5163b14233; \>= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, \< 801092a2c9c251ef6a8678fcb8fcc1220474a697; \>= b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5, \< f10a890308a7cd8794e21f646f09827c6cb4bf5d; ed1d478bf838820201f3fb67a1748fdf15954ea4; \>= 6.4.4, \< 6.5; Linux 6.5.

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

Yes. Fixed in Linux 1539a088b108996bcdaddb7775070b5163b14233, Linux 801092a2c9c251ef6a8678fcb8fcc1220474a697, Linux 6.5. Upgrade Linux to 6.5 or later.

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

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/ecf4e6782b01fd578b565b3dd2be7bb0ac91082e>
- patch: <https://git.kernel.org/stable/c/1539a088b108996bcdaddb7775070b5163b14233>
- patch: <https://git.kernel.org/stable/c/801092a2c9c251ef6a8678fcb8fcc1220474a697>
- patch: <https://git.kernel.org/stable/c/f10a890308a7cd8794e21f646f09827c6cb4bf5d>

## 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-56744>

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