# CVE-2024-56619: nilfs2: fix potential out-of-bounds memory access in nilfs\_find\_entry()

> 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-28)
- **CWE:** CWE-416
- **Published:** 2024-12-27T14:51:23.516Z
- **Modified:** 2026-08-05T11:45:29.225Z

## Who should check

- Anyone running Linux \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 09d6d05579fd46e61abf6e457bb100ff11f3a9d3; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< e3732102a9d638d8627d14fdf7b208462f0520e0; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 48eb6e7404948032bbe811c5affbe39f6b316951; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 5af8366625182f01f6d8465c9a3210574673af57; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< c3afea07477baccdbdec4483f8d5e59d42a3f67f; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d
- Anyone running Linux 2.6.30

## Description

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

nilfs2: fix potential out-of-bounds memory access in nilfs\_find\_entry()

Syzbot reported that when searching for records in a directory where the
inode's i\_size is corrupted and has a large value, memory access outside
the folio/page range may occur, or a use-after-free bug may be detected if
KASAN is enabled.

This is because nilfs\_last\_byte(), which is called by nilfs\_find\_entry()
and others to calculate the number of valid bytes of directory data in a
page from i\_size and the page index, loses the upper 32 bits of the 64-bit
size information due to an inappropriate type of local variable to which
the i\_size value is assigned.

This caused a large byte offset value due to underflow in the end address
calculation in the calling nilfs\_find\_entry(), resulting in memory access
that exceeds the folio/page size.

Fix this issue by changing the type of the local variable causing the bit
loss from "unsigned int" to "u64".  The return value of nilfs\_last\_byte()
is also of type "unsigned int", but it is truncated so as not to exceed
PAGE\_SIZE and no bit loss occurs, so no change is required.

## Affected and fixed versions

- Linux: \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 09d6d05579fd46e61abf6e457bb100ff11f3a9d3; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< e3732102a9d638d8627d14fdf7b208462f0520e0; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 48eb6e7404948032bbe811c5affbe39f6b316951; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 5af8366625182f01f6d8465c9a3210574673af57; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< c3afea07477baccdbdec4483f8d5e59d42a3f67f; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d (cvelist)
- Linux: 2.6.30 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-56619.md
Affected: Linux >= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 09d6d05579fd46e61abf6e457bb100ff11f3a9d3; >= 2ba466d74ed74f073257f86e61519cb8f8f46184, < e3732102a9d638d8627d14fdf7b208462f0520e0; >= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 48eb6e7404948032bbe811c5affbe39f6b316951; >= 2ba466d74ed74f073257f86…
Fixed in: Linux 09d6d05579fd46e61abf6e457bb100ff11f3a9d3, Linux 48eb6e7404948032bbe811c5affbe39f6b316951, Linux 5af8366625182f01f6d8465c9a3210574673af57, Linux 31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e, Linux 985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d

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

There is no confirmed exploitation: CVE-2024-56619 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-28).

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

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

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

Linux \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 09d6d05579fd46e61abf6e457bb100ff11f3a9d3; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< e3732102a9d638d8627d14fdf7b208462f0520e0; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 48eb6e7404948032bbe811c5affbe39f6b316951; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 5af8366625182f01f6d8465c9a3210574673af57; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< c3afea07477baccdbdec4483f8d5e59d42a3f67f; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d; Linux 2.6.30.

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

Yes. Fixed in Linux 09d6d05579fd46e61abf6e457bb100ff11f3a9d3, Linux 48eb6e7404948032bbe811c5affbe39f6b316951, Linux 5af8366625182f01f6d8465c9a3210574673af57, Linux 31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e, Linux 985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d. Upgrade Linux to 985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d or later.

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

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/09d6d05579fd46e61abf6e457bb100ff11f3a9d3>
- patch: <https://git.kernel.org/stable/c/e3732102a9d638d8627d14fdf7b208462f0520e0>
- patch: <https://git.kernel.org/stable/c/48eb6e7404948032bbe811c5affbe39f6b316951>
- patch: <https://git.kernel.org/stable/c/5af8366625182f01f6d8465c9a3210574673af57>
- patch: <https://git.kernel.org/stable/c/c3afea07477baccdbdec4483f8d5e59d42a3f67f>
- patch: <https://git.kernel.org/stable/c/31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e>
- patch: <https://git.kernel.org/stable/c/985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.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-56619>

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