{"id":"CVE-2026-97610","aliases":["CVE-2026-97610"],"related":[],"kind":"vulnerability","state":"published","title":"netfs: Fix uninitialized return value in netfs_unbuffered_write()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix uninitialized return value in netfs_unbuffered_write()\n\nIf preparation of the first subrequest fails,\nnetfs_unbuffered_write() exits its loop before ret is initialized. The\nempty-iterator check can do the same.\n\nFor synchronous writes, netfs_unbuffered_write_iter_locked() may then\nreturn an unrelated error instead of wreq->error. This is reachable\nthrough CIFS if cifs_prepare_write() fails to reopen the file or obtain\ncredits.\n\nInitialize ret to 0 so the caller returns wreq->error if no data was\nwritten, or the number of bytes already written otherwise.\n\nFound with Clang's -Wconditional-uninitialized.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix uninitialized return value in netfs_unbuffered_write()\n\nIf preparation of the first subrequest fails,\nnetfs_unbuffered_write() exits its loop before ret is initialized. The\nempty-iterator check can do the same.\n\nFor synchronous writes, netfs_unbuffered_write_iter_locked() may then\nreturn an unrelated error instead of wreq->error. This is reachable\nthrough CIFS if cifs_prepare_write() fails to reopen the file or obtain\ncredits.\n\nInitialize ret to 0 so the caller returns wreq->error if no data was\nwritten, or the number of bytes already written otherwise.\n\nFound with Clang's -Wconditional-uninitialized.","source":"cvelist"}],"published":"2026-09-25T10:22:20.228Z","modified":"2026-10-19T10:17:31.027Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"72d08d2839649d1c5efbe375751f4473fa4486af","fixed":"3d038eebdbd400c3bc4b66bd8aa0dff0c2bcce26","status":"affected"},{"type":"git","introduced":"a0b4c7a49137ed21279f354eb59f49ddae8dffc2","fixed":"2e38d500471d097cda87d7d374bbc1b13493075d","status":"affected"},{"type":"git","introduced":"a0b4c7a49137ed21279f354eb59f49ddae8dffc2","fixed":"f18e8774f4d3137fa0a5fb8ffa83d59a719666d8","status":"affected"},{"type":"git","version":"0c29f6d63122a0168d67cb8ecde5b4cf7fe4acb0","status":"affected"},{"type":"semver","introduced":"6.18.17","fixed":"6.18.53","status":"affected"},{"type":"semver","introduced":"6.19.7","fixed":"6.20","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.0","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/3d038eebdbd400c3bc4b66bd8aa0dff0c2bcce26","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e38d500471d097cda87d7d374bbc1b13493075d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f18e8774f4d3137fa0a5fb8ffa83d59a719666d8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97610","url":"https://www.cve.org/CVERecord?id=CVE-2026-97610","licence":"CVE Terms of Use","modified":"2026-10-19T09:10:14.001Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97610","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97610","licence":"Public domain","modified":"2026-10-19T10:17:31.027Z"}],"updatedAt":"2026-11-25T22:59:40.976Z","epss":{"score":0.00198,"percentile":0.10041,"date":"2026-12-01T12:00:22.000Z"}}