{"id":"CVE-2024-56619","published":"2024-12-27T14:51:23Z","modified":"2026-08-05T11:45:29Z","title":"nilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00318,"percentile":0.17195,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/09d6d05579fd46e61abf6e457bb100ff11f3a9d3","tags":[]},{"url":"https://git.kernel.org/stable/c/e3732102a9d638d8627d14fdf7b208462f0520e0","tags":[]},{"url":"https://git.kernel.org/stable/c/48eb6e7404948032bbe811c5affbe39f6b316951","tags":[]},{"url":"https://git.kernel.org/stable/c/5af8366625182f01f6d8465c9a3210574673af57","tags":[]},{"url":"https://git.kernel.org/stable/c/c3afea07477baccdbdec4483f8d5e59d42a3f67f","tags":[]},{"url":"https://git.kernel.org/stable/c/31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e","tags":[]},{"url":"https://git.kernel.org/stable/c/985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":3.44},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 09d6d05579fd46e61abf6e457bb100ff11f3a9d3",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < e3732102a9d638d8627d14fdf7b208462f0520e0",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 48eb6e7404948032bbe811c5affbe39f6b316951",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 5af8366625182f01f6d8465c9a3210574673af57",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < c3afea07477baccdbdec4483f8d5e59d42a3f67f",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 31f7b57a77d4c82a34ddcb6ff35b5aa577ef153e",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 985ebec4ab0a28bb5910c3b1481a40fbf7f9e61d"]},{"vendor":"Linux","product":"Linux","versions":["2.6.30"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-11T15:41:59.486282Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-53267","exploited":false,"provenance":"source"}}