{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-56619","id":"CVE-2024-56619","title":"nilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()\n\nSyzbot reported that when searching for records in a directory where the\ninode's i_size is corrupted and has a large value, memory access outside\nthe folio/page range may occur, or a use-after-free bug may be detected if\nKASAN is enabled.\n\nThis is because ni","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()\n\nSyzbot reported that when searching for records in a directory where the\ninode's i_size is corrupted and has a large value, memory access outside\nthe folio/page range may occur, or a use-after-free bug may be detected if\nKASAN is enabled.\n\nThis is because nilfs_last_byte(), which is called by nilfs_find_entry()\nand others to calculate the number of valid bytes of directory data in a\npage from i_size and the page index, loses the upper 32 bits of the 64-bit\nsize information due to an inappropriate type of local variable to which\nthe i_size value is assigned.\n\nThis caused a large byte offset value due to underflow in the end address\ncalculation in the calling nilfs_find_entry(), resulting in memory access\nthat exceeds the folio/page size.\n\nFix this issue by changing the type of the local variable causing the bit\nloss from \"unsigned int\" to \"u64\".  The return value of nilfs_last_byte()\nis also of type \"unsigned int\", but it is truncated so as not to exceed\nPAGE_SIZE and no bit loss occurs, so no change is required.","published":"2024-12-27T14:51:23.516Z","updated":"2026-10-28T02:31:00.016628064Z","reserved":"2024-12-27T14:03:06.016Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2ba466d74ed74f073257f86e61519cb8f8f46184","lessThan":"09d6d05579fd46e61abf6e457bb100ff11f3a9d3","status":"affected","versionType":"git"},{"version":"2ba466d74ed74f073257f86e61519cb8f8f46184","lessThan":"e3732102a9d638d8627d14fdf7b208462f0520e0","status":"affected","versionType":"git"},{"version":"2ba466d74ed74f073257f86e61519cb8f8f46184","lessThan":"48eb6e7404948032bbe811c5affbe39f6b316951","status":"affected","versionType":"git"},{"version":"2ba466d74ed74f073257f86e61519cb8f8f46184","lessThan":"5af8366625182f01f6d8465c9a3210574673af57","status":"affected","versionType":"git"},{"version":"2ba466d74ed74f073257f86e61519cb8f8f46184","lessThan":"c3afea07477baccdbdec4483f8d5e59d42a3f67f","status":"affected","versionType":"git"},{"version":"2ba466d74ed74f073257f86e61519cb8f8f46184","lessThan":"31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e","status":"affected","versionType":"git"},{"version":"2ba466d74ed74f073257f86e61519cb8f8f46184","lessThan":"985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.30","status":"affected"},{"version":"0","lessThan":"2.6.30","status":"unaffected","versionType":"semver"},{"version":"5.4.287","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.231","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.174","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.120","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.66","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.5","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/09d6d05579fd46e61abf6e457bb100ff11f3a9d3","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e3732102a9d638d8627d14fdf7b208462f0520e0","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/48eb6e7404948032bbe811c5affbe39f6b316951","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5af8366625182f01f6d8465c9a3210574673af57","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c3afea07477baccdbdec4483f8d5e59d42a3f67f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56619.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56619","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00213,"epssPercentile":0.11809,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-56619","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56619","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-56619","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-56619","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}