# CVE-2024-39467: f2fs: fix to do sanity check on i\_xattr\_nid in sanity\_check\_inode()

> 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.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-06-25T14:25:05.609Z
- **Modified:** 2026-08-05T11:33:25.374Z

## Who should check

- Anyone running Linux \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< c559a8d840562fbfce9f318448dda2f7d3e6d8e8; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 75c87e2ac6149abf44bdde0dd6d541763ddb0dff; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 1640dcf383cdba52be8b28d2a1a2aa7ef7a30c98; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 8c8aa473fe6eb46a4bf99f3ea2dbe52bf0c1a1f0; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< be0155202e431f3007778568a72432c68f8946ba; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 68e3cd4ecb8603936cccdc338929130045df2e57; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 20faaf30e55522bba2b56d9c46689233205d7717
- Anyone running Linux 3.8

## Description

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

f2fs: fix to do sanity check on i\_xattr\_nid in sanity\_check\_inode()

syzbot reports a kernel bug as below:

F2FS-fs (loop0): Mounted with checkpoint version = 48b305e4
==================================================================
BUG: KASAN: slab-out-of-bounds in f2fs\_test\_bit fs/f2fs/f2fs.h:2933 \[inline\]
BUG: KASAN: slab-out-of-bounds in current\_nat\_addr fs/f2fs/node.h:213 \[inline\]
BUG: KASAN: slab-out-of-bounds in f2fs\_get\_node\_info+0xece/0x1200 fs/f2fs/node.c:600
Read of size 1 at addr ffff88807a58c76c by task syz-executor280/5076

CPU: 1 PID: 5076 Comm: syz-executor280 Not tainted 6.9.0-rc5-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
 f2fs\_test\_bit fs/f2fs/f2fs.h:2933 \[inline\]
 current\_nat\_addr fs/f2fs/node.h:213 \[inline\]
 f2fs\_get\_node\_info+0xece/0x1200 fs/f2fs/node.c:600
 f2fs\_xattr\_fiemap fs/f2fs/data.c:1848 \[inline\]
 f2fs\_fiemap+0x55d/0x1ee0 fs/f2fs/data.c:1925
 ioctl\_fiemap fs/ioctl.c:220 \[inline\]
 do\_vfs\_ioctl+0x1c07/0x2e50 fs/ioctl.c:838
 \_\_do\_sys\_ioctl fs/ioctl.c:902 \[inline\]
 \_\_se\_sys\_ioctl+0x81/0x170 fs/ioctl.c:890
 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

The root cause is we missed to do sanity check on i\_xattr\_nid during
f2fs\_iget(), so that in fiemap() path, current\_nat\_addr() will access
nat\_bitmap w/ offset from invalid i\_xattr\_nid, result in triggering
kasan bug report, fix it.

## Affected and fixed versions

- Linux: \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< c559a8d840562fbfce9f318448dda2f7d3e6d8e8; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 75c87e2ac6149abf44bdde0dd6d541763ddb0dff; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 1640dcf383cdba52be8b28d2a1a2aa7ef7a30c98; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 8c8aa473fe6eb46a4bf99f3ea2dbe52bf0c1a1f0; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< be0155202e431f3007778568a72432c68f8946ba; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 68e3cd4ecb8603936cccdc338929130045df2e57; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 20faaf30e55522bba2b56d9c46689233205d7717 (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-39467.md
Affected: Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < c559a8d840562fbfce9f318448dda2f7d3e6d8e8; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 75c87e2ac6149abf44bdde0dd6d541763ddb0dff; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 1640dcf383cdba52be8b28d2a1a2aa7ef7a30c98; >= 98e4da8ca301e062d79ae16…
Fixed in: Linux 75c87e2ac6149abf44bdde0dd6d541763ddb0dff, Linux 1640dcf383cdba52be8b28d2a1a2aa7ef7a30c98, Linux 8c8aa473fe6eb46a4bf99f3ea2dbe52bf0c1a1f0, Linux 68e3cd4ecb8603936cccdc338929130045df2e57, Linux 20faaf30e55522bba2b56d9c46689233205d7717

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

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

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

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

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

Linux \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< c559a8d840562fbfce9f318448dda2f7d3e6d8e8; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 75c87e2ac6149abf44bdde0dd6d541763ddb0dff; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 1640dcf383cdba52be8b28d2a1a2aa7ef7a30c98; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 8c8aa473fe6eb46a4bf99f3ea2dbe52bf0c1a1f0; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< be0155202e431f3007778568a72432c68f8946ba; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 68e3cd4ecb8603936cccdc338929130045df2e57; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 20faaf30e55522bba2b56d9c46689233205d7717; Linux 3.8.

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

Yes. Fixed in Linux 75c87e2ac6149abf44bdde0dd6d541763ddb0dff, Linux 1640dcf383cdba52be8b28d2a1a2aa7ef7a30c98, Linux 8c8aa473fe6eb46a4bf99f3ea2dbe52bf0c1a1f0, Linux 68e3cd4ecb8603936cccdc338929130045df2e57, Linux 20faaf30e55522bba2b56d9c46689233205d7717. Upgrade Linux to 20faaf30e55522bba2b56d9c46689233205d7717 or later.

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

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/c559a8d840562fbfce9f318448dda2f7d3e6d8e8>
- patch: <https://git.kernel.org/stable/c/75c87e2ac6149abf44bdde0dd6d541763ddb0dff>
- patch: <https://git.kernel.org/stable/c/1640dcf383cdba52be8b28d2a1a2aa7ef7a30c98>
- patch: <https://git.kernel.org/stable/c/8c8aa473fe6eb46a4bf99f3ea2dbe52bf0c1a1f0>
- patch: <https://git.kernel.org/stable/c/be0155202e431f3007778568a72432c68f8946ba>
- patch: <https://git.kernel.org/stable/c/68e3cd4ecb8603936cccdc338929130045df2e57>
- patch: <https://git.kernel.org/stable/c/20faaf30e55522bba2b56d9c46689233205d7717>

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

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