{"id":"CVE-2026-100045","aliases":["CVE-2026-100045"],"related":[],"kind":"vulnerability","state":"published","title":"fuse: fix copy_file_range reply handling race","summary":"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->no_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->no_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.","source":"cvelist"}],"published":"2026-11-30T13:23:22.528Z","modified":"2026-11-30T14:17:22.073Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7a37f55af7af868119b4fb69285f5fa03ba8cf35","fixed":"0e49fbd593ed3c9876d72c0ba481a5e70b3e59b9","status":"affected"},{"type":"git","introduced":"7a37f55af7af868119b4fb69285f5fa03ba8cf35","fixed":"0d503ae692491cfeb09050ea5680ea08f0e9fe54","status":"affected"},{"type":"git","introduced":"7a37f55af7af868119b4fb69285f5fa03ba8cf35","fixed":"bf4ccbaad8bdff8c90fd290ed6135b63f89ee8a7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0e49fbd593ed3c9876d72c0ba481a5e70b3e59b9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d503ae692491cfeb09050ea5680ea08f0e9fe54","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bf4ccbaad8bdff8c90fd290ed6135b63f89ee8a7","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-100045","url":"https://www.cve.org/CVERecord?id=CVE-2026-100045","licence":"CVE Terms of Use","modified":"2026-11-30T13:23:22.528Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-100045","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100045","licence":"Public domain","modified":"2026-11-30T14:17:22.073Z"}],"updatedAt":"2026-11-30T14:32:21.578Z","epss":{"score":0.00177,"percentile":0.07517,"date":"2026-12-01T12:00:22.000Z"}}