{"id":"CVE-2026-100045","summary":"fuse: fix copy_file_range reply handling race","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfuse: fix copy_file_range reply handling race\n\n__fuse_copy_file_range() selects its request opcode and output buffer\nusing fc-\u003eno_copy_file_range_64, then reads the flag again to handle the\nreply. Copies to different destination inodes can run concurrently on\nthe same connection, so the flag may change while a request is pending.\n\nFor example, task A submits FUSE_COPY_FILE_RANGE_64 and waits for its\nreply. Task B submits the same opcode, receives -ENOSYS and sets\nno_copy_file_range_64. When A receives a successful reply, it reads the\nuninitialized outarg.size instead of outarg_64.bytes_copied. This can\nproduce an incorrect return value, page cache invalidation range and\ninode size update, and disclose stack contents if automatic stack\ninitialization is disabled.\n\nIf A also receives -ENOSYS, it instead mistakes that reply for rejection\nof the legacy opcode and sets no_copy_file_range, skipping the legacy\nfallback and unnecessarily disabling copy offload for the connection.\n\nKCSAN reported the conflicting accesses:\n\n  BUG: KCSAN: data-race in __fuse_copy_file_range / __fuse_copy_file_range\n\n  read to 0xffff8881014a4d4d of 1 bytes by task 123 on cpu 4:\n   __fuse_copy_file_range+0x1a7/0x6e0\n   fuse_copy_file_range+0x54/0xd0\n   vfs_copy_file_range+0x290/0x9d0\n   __do_sys_copy_file_range+0x10f/0x2f0\n\n  write to 0xffff8881014a4d4d of 8 bytes by task 119 on cpu 0:\n   __fuse_copy_file_range+0x633/0x6e0\n   fuse_copy_file_range+0x54/0xd0\n   vfs_copy_file_range+0x290/0x9d0\n   __do_sys_copy_file_range+0x10f/0x2f0\n\nThe bug can lead to leak kernel base address for KASLR bypass, the\ncorresponding reproducer can be provided per request.\n\nUse args.opcode for both -ENOSYS handling and output buffer selection.\nIt records the opcode actually sent and is updated on fallback, keeping\neach reply tied to its request regardless of concurrent flag updates.","modified":"2026-11-30T15:00:21.924410553Z","published":"2026-11-30T13:23:22.528Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100045.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0d503ae692491cfeb09050ea5680ea08f0e9fe54"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0e49fbd593ed3c9876d72c0ba481a5e70b3e59b9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bf4ccbaad8bdff8c90fd290ed6135b63f89ee8a7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100045.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100045"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7a37f55af7af868119b4fb69285f5fa03ba8cf35"},{"fixed":"0e49fbd593ed3c9876d72c0ba481a5e70b3e59b9"},{"fixed":"0d503ae692491cfeb09050ea5680ea08f0e9fe54"},{"fixed":"bf4ccbaad8bdff8c90fd290ed6135b63f89ee8a7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100045.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100045.json"}}],"schema_version":"1.9.2"}