CVE-2024-56619

Source
https://cve.org/CVERecord?id=CVE-2024-56619
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56619.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-56619
Downstream
Related
Published
2024-12-27T14:51:23.516Z
Modified
2026-03-20T12:39:54.937517Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
nilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()
Details

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

nilfs2: fix potential out-of-bounds memory access in nilfsfindentry()

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 nilfslastbyte(), which is called by nilfsfindentry() and others to calculate the number of valid bytes of directory data in a page from isize 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 isize value is assigned.

This caused a large byte offset value due to underflow in the end address calculation in the calling nilfsfindentry(), 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 nilfslastbyte() 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56619.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2ba466d74ed74f073257f86e61519cb8f8f46184
Fixed
09d6d05579fd46e61abf6e457bb100ff11f3a9d3
Fixed
e3732102a9d638d8627d14fdf7b208462f0520e0
Fixed
48eb6e7404948032bbe811c5affbe39f6b316951
Fixed
5af8366625182f01f6d8465c9a3210574673af57
Fixed
c3afea07477baccdbdec4483f8d5e59d42a3f67f
Fixed
31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e
Fixed
985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56619.json"