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.
Overview
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.
- Published
- 12/27/2024
- Last modified
- 6/17/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
linux kernel linux | ≥ 2.6.30, < 5.4.287 | Verify advisory | Source |
linux kernel linux | ≥ 5.5, < 5.10.231 | Verify advisory | Source |
linux kernel linux | ≥ 5.11, < 5.15.174 | Verify advisory | Source |
linux kernel linux | ≥ 5.16, < 6.1.120 | Verify advisory | Source |
linux kernel linux | ≥ 6.2, ≤ 6.6.66 | Verify advisory | Source |
linux kernel linux | ≥ 6.7, ≤ 6.12.5 | Verify advisory | Source |
linux kernel linux | 6.13 | Verify advisory The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory. | Source |
Linux Linux | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 09d6d05579fd46e61abf6e457bb100ff11f3a9d3 | Verify advisory | Source |
Linux Linux | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < e3732102a9d638d8627d14fdf7b208462f0520e0 | Verify advisory | Source |
Linux Linux | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 48eb6e7404948032bbe811c5affbe39f6b316951 | Verify advisory | Source |
Linux Linux | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 5af8366625182f01f6d8465c9a3210574673af57 | Verify advisory | Source |
Linux Linux | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < c3afea07477baccdbdec4483f8d5e59d42a3f67f | Verify advisory | Source |
Linux Linux | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e | Verify advisory | Source |
Linux Linux | ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d | Verify advisory | Source |
Linux Linux | 2.6.30 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.