{"id":"CVE-2024-42295","summary":"nilfs2: handle inconsistent state in nilfs_btnode_create_block()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: handle inconsistent state in nilfs_btnode_create_block()\n\nSyzbot reported that a buffer state inconsistency was detected in\nnilfs_btnode_create_block(), triggering a kernel bug.\n\nIt is not appropriate to treat this inconsistency as a bug; it can occur\nif the argument block address (the buffer index of the newly created\nblock) is a virtual block number and has been reallocated due to\ncorruption of the bitmap used to manage its allocation state.\n\nSo, modify nilfs_btnode_create_block() and its callers to treat it as a\npossible filesystem error, rather than triggering a kernel bug.","modified":"2026-04-02T12:17:55.845830Z","published":"2024-08-17T09:09:03.618Z","related":["MGASA-2024-0309","MGASA-2024-0310","SUSE-SU-2024:3190-1","SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3209-1","SUSE-SU-2024:3383-1","SUSE-SU-2024:3483-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42295.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/012be828a118bf496e666ef1fc47fc0e7358ada2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/02b87e6334a38c65eef49848d3f1ac422f0b2a44"},{"type":"WEB","url":"https://git.kernel.org/stable/c/19cce46238ffe3546e44b9c74057103ff8b24c62"},{"type":"WEB","url":"https://git.kernel.org/stable/c/366c3f688dd0288cbe38af1d3a886b5c62372e4a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4811f7af6090e8f5a398fbdd766f903ef6c0d787"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5f0a6800b8aec1b453c7fe4c44fcaac5ffe9d52e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/be56dfc9be0604291267c07b0e27a69a6bda4899"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e34191cce3ee63dfa5fb241904aaf2a042d5b6d8"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42295.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42295"},{"type":"PACKAGE","url":"https://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":"a60be987d45dd510aeb54389526f9957cfab106c"},{"fixed":"19cce46238ffe3546e44b9c74057103ff8b24c62"},{"fixed":"02b87e6334a38c65eef49848d3f1ac422f0b2a44"},{"fixed":"5f0a6800b8aec1b453c7fe4c44fcaac5ffe9d52e"},{"fixed":"e34191cce3ee63dfa5fb241904aaf2a042d5b6d8"},{"fixed":"012be828a118bf496e666ef1fc47fc0e7358ada2"},{"fixed":"be56dfc9be0604291267c07b0e27a69a6bda4899"},{"fixed":"366c3f688dd0288cbe38af1d3a886b5c62372e4a"},{"fixed":"4811f7af6090e8f5a398fbdd766f903ef6c0d787"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42295.json"}}],"schema_version":"1.7.5"}