# CVE-2024-44941: f2fs: fix to cover read extent cache access with lock

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-08-26T11:20:45.678Z
- **Modified:** 2026-10-30T13:17:34.327Z

## Who should check

- Anyone running Linux \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 9bd5d5e3244242e7be26e86025b74eff3cf20d8c; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 263df78166d3a9609b97d28c34029bd01874cbb8; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 323ef20b5558b9d9fd10c1224327af6f11a8177d; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< d7409b05a64f212735f0d33f5f1602051a886eab
- Anyone running Linux 3.8

## Description

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

f2fs: fix to cover read extent cache access with lock

syzbot reports a f2fs bug as below:

BUG: KASAN: slab-use-after-free in sanity\_check\_extent\_cache+0x370/0x410 fs/f2fs/extent\_cache.c:46
Read of size 4 at addr ffff8880739ab220 by task syz-executor200/5097

CPU: 0 PID: 5097 Comm: syz-executor200 Not tainted 6.9.0-rc6-syzkaller \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
 dump\_stack\_lvl+0x241/0x360 lib/dump\_stack.c:114
 print\_address\_description mm/kasan/report.c:377 \[inline\]
 print\_report+0x169/0x550 mm/kasan/report.c:488
 kasan\_report+0x143/0x180 mm/kasan/report.c:601
 sanity\_check\_extent\_cache+0x370/0x410 fs/f2fs/extent\_cache.c:46
 do\_read\_inode fs/f2fs/inode.c:509 \[inline\]
 f2fs\_iget+0x33e1/0x46e0 fs/f2fs/inode.c:560
 f2fs\_nfs\_get\_inode+0x74/0x100 fs/f2fs/super.c:3237
 generic\_fh\_to\_dentry+0x9f/0xf0 fs/libfs.c:1413
 exportfs\_decode\_fh\_raw+0x152/0x5f0 fs/exportfs/expfs.c:444
 exportfs\_decode\_fh+0x3c/0x80 fs/exportfs/expfs.c:584
 do\_handle\_to\_path fs/fhandle.c:155 \[inline\]
 handle\_to\_path fs/fhandle.c:210 \[inline\]
 do\_handle\_open+0x495/0x650 fs/fhandle.c:226
 do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
 do\_syscall\_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

We missed to cover sanity\_check\_extent\_cache() w/ extent cache lock,
so, below race case may happen, result in use after free issue.

- f2fs\_iget
 - do\_read\_inode
  - f2fs\_init\_read\_extent\_tree
  : add largest extent entry in to cache
					- shrink
					 - f2fs\_shrink\_read\_extent\_tree
					  - \_\_shrink\_extent\_tree
					   - \_\_detach\_extent\_node
					   : drop largest extent entry
  - sanity\_check\_extent\_cache
  : access et-\>largest w/o lock

let's refactor sanity\_check\_extent\_cache() to avoid extent cache access
and call it before f2fs\_init\_read\_extent\_tree() to fix this issue.

## Affected and fixed versions

- Linux: \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 9bd5d5e3244242e7be26e86025b74eff3cf20d8c; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 263df78166d3a9609b97d28c34029bd01874cbb8; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 323ef20b5558b9d9fd10c1224327af6f11a8177d; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< d7409b05a64f212735f0d33f5f1602051a886eab (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-44941.md
Affected: Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 9bd5d5e3244242e7be26e86025b74eff3cf20d8c; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 263df78166d3a9609b97d28c34029bd01874cbb8; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 323ef20b5558b9d9fd10c1224327af6f11a8177d; >= 98e4da8ca301e062d79ae16…
Fixed in: Linux 9bd5d5e3244242e7be26e86025b74eff3cf20d8c, Linux 263df78166d3a9609b97d28c34029bd01874cbb8, Linux 323ef20b5558b9d9fd10c1224327af6f11a8177d

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 9bd5d5e3244242e7be26e86025b74eff3cf20d8c; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 263df78166d3a9609b97d28c34029bd01874cbb8; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 323ef20b5558b9d9fd10c1224327af6f11a8177d; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< d7409b05a64f212735f0d33f5f1602051a886eab; Linux 3.8.

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

Yes. Fixed in Linux 9bd5d5e3244242e7be26e86025b74eff3cf20d8c, Linux 263df78166d3a9609b97d28c34029bd01874cbb8, Linux 323ef20b5558b9d9fd10c1224327af6f11a8177d. No fix listed yet: follow the vendor advisory.

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

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/263df78166d3a9609b97d28c34029bd01874cbb8>
- patch: <https://git.kernel.org/stable/c/323ef20b5558b9d9fd10c1224327af6f11a8177d>
- patch: <https://git.kernel.org/stable/c/d7409b05a64f212735f0d33f5f1602051a886eab>
- other: <https://git.kernel.org/stable/c/9bd5d5e3244242e7be26e86025b74eff3cf20d8c>

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

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