{"id":"CVE-2025-40067","summary":"fs/ntfs3: reject index allocation if $BITMAP is empty but blocks exist","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: reject index allocation if $BITMAP is empty but blocks exist\n\nIndex allocation requires at least one bit in the $BITMAP attribute to\ntrack usage of index entries. If the bitmap is empty while index blocks\nare already present, this reflects on-disk corruption.\n\nsyzbot triggered this condition using a malformed NTFS image. During a\nrename() operation involving a long filename (which spans multiple\nindex entries), the empty bitmap allowed the name to be added without\nvalid tracking. Subsequent deletion of the original entry failed with\n-ENOENT, due to unexpected index state.\n\nReject such cases by verifying that the bitmap is not empty when index\nblocks exist.","modified":"2026-04-16T00:02:13.487840717Z","published":"2025-10-28T11:48:37.034Z","related":["openSUSE-SU-2025:15702-1","openSUSE-SU-2026:10301-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40067.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/039ddf353cc33f6546a87ec1ac3210637d714bec"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0dc7117da8f92dd5fe077d712a756eccbe377d40"},{"type":"WEB","url":"https://git.kernel.org/stable/c/978aac54e93ea35aab20b32ae393d3d33964e7ae"},{"type":"WEB","url":"https://git.kernel.org/stable/c/be66551da203862c689c12e1d35ce87217c017c1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40067.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40067"},{"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":"b35a50d639ca5259466ef5fea85529bb4fb17d5b"},{"fixed":"978aac54e93ea35aab20b32ae393d3d33964e7ae"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc"},{"fixed":"be66551da203862c689c12e1d35ce87217c017c1"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d99208b91933fd2a58ed9ed321af07dacd06ddc3"},{"fixed":"039ddf353cc33f6546a87ec1ac3210637d714bec"},{"fixed":"0dc7117da8f92dd5fe077d712a756eccbe377d40"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"358d4f821c03add421a4c49290538a705852ccf1"},{"last_affected":"a285395020780adac1ffbc844069c3d700bf007a"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40067.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.6.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.53"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40067.json"}}],"schema_version":"1.7.5"}