{"id":"CVE-2026-98961","summary":"btrfs: unlock inode and extent in caller when io_uring read extent fails","details":"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().","modified":"2026-10-25T02:47:32.107828352Z","published":"2026-10-23T12:19:29.616Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98961.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2797eb38773a96914ccedeec71eb2144645400b2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ada1fc725a4db407294ae90a0d40ef1c46f457f2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b6e8add5d79d1f6f819a054c833bab452bd7365d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98961.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98961"},{"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":"34310c442e175f286b4c06ab5caa4e0b267ea31c"},{"fixed":"2797eb38773a96914ccedeec71eb2144645400b2"},{"fixed":"ada1fc725a4db407294ae90a0d40ef1c46f457f2"},{"fixed":"b6e8add5d79d1f6f819a054c833bab452bd7365d"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-98961.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.57"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.11"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-98961.json"}}],"schema_version":"1.9.2"}