{"id":"CVE-2026-98961","state":"PUBLISHED","title":"btrfs: unlock inode and extent in caller when io_uring read extent fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: unlock inode and extent in caller when io_uring read extent fails\n\nbtrfs_uring_read_extent() runs only after btrfs_encoded_read() has taken\nthe inode shared lock and the extent lock.  On failure it used to unlock\nin out_fail, and a pages-array allocation failure returned -ENOMEM\nwithout unlocking at all.\n\nUnlock in the caller instead on all failure returns, matching the\ncopy_to_user() error path.  The deferred -EIOCBQUEUED path still unlocks\nin btrfs_uring_read_finished().","publishedAt":"2026-10-23T12:19:29.616Z","updatedAt":"2026-10-23T12:19:29.616Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"34310c442e175f286b4c06ab5caa4e0b267ea31c","status":"affected","lessThan":"2797eb38773a96914ccedeec71eb2144645400b2","versionType":"git"},{"version":"34310c442e175f286b4c06ab5caa4e0b267ea31c","status":"affected","lessThan":"ada1fc725a4db407294ae90a0d40ef1c46f457f2","versionType":"git"},{"version":"34310c442e175f286b4c06ab5caa4e0b267ea31c","status":"affected","lessThan":"b6e8add5d79d1f6f819a054c833bab452bd7365d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/ioctl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.11","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/ioctl.c"]}],"references":["https://git.kernel.org/stable/c/2797eb38773a96914ccedeec71eb2144645400b2","https://git.kernel.org/stable/c/ada1fc725a4db407294ae90a0d40ef1c46f457f2","https://git.kernel.org/stable/c/b6e8add5d79d1f6f819a054c833bab452bd7365d"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98961.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98961","state":"PUBLISHED","datePublished":"2026-10-23T12:19:29.616Z","dateUpdated":"2026-10-23T12:19:29.616Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.382Z"},"containers":{"cna":{"title":"btrfs: unlock inode and extent in caller when io_uring read extent fails","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: unlock inode and extent in caller when io_uring read extent fails\n\nbtrfs_uring_read_extent() runs only after btrfs_encoded_read() has taken\nthe inode shared lock and the extent lock.  On failure it used to unlock\nin out_fail, and a pages-array allocation failure returned -ENOMEM\nwithout unlocking at all.\n\nUnlock in the caller instead on all failure returns, matching the\ncopy_to_user() error path.  The deferred -EIOCBQUEUED path still unlocks\nin btrfs_uring_read_finished()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"34310c442e175f286b4c06ab5caa4e0b267ea31c","status":"affected","lessThan":"2797eb38773a96914ccedeec71eb2144645400b2","versionType":"git"},{"version":"34310c442e175f286b4c06ab5caa4e0b267ea31c","status":"affected","lessThan":"ada1fc725a4db407294ae90a0d40ef1c46f457f2","versionType":"git"},{"version":"34310c442e175f286b4c06ab5caa4e0b267ea31c","status":"affected","lessThan":"b6e8add5d79d1f6f819a054c833bab452bd7365d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/ioctl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.11","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/ioctl.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2797eb38773a96914ccedeec71eb2144645400b2"},{"url":"https://git.kernel.org/stable/c/ada1fc725a4db407294ae90a0d40ef1c46f457f2"},{"url":"https://git.kernel.org/stable/c/b6e8add5d79d1f6f819a054c833bab452bd7365d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-23T12:19:29.616Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.18.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"7.2.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}