{"id":"CVE-2026-98961","aliases":["CVE-2026-98961"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: unlock inode and extent in caller when io_uring read extent fails","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"}],"published":"2026-10-23T12:19:29.616Z","modified":"2026-10-23T13:17:17.500Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"34310c442e175f286b4c06ab5caa4e0b267ea31c","fixed":"2797eb38773a96914ccedeec71eb2144645400b2","status":"affected"},{"type":"git","introduced":"34310c442e175f286b4c06ab5caa4e0b267ea31c","fixed":"ada1fc725a4db407294ae90a0d40ef1c46f457f2","status":"affected"},{"type":"git","introduced":"34310c442e175f286b4c06ab5caa4e0b267ea31c","fixed":"b6e8add5d79d1f6f819a054c833bab452bd7365d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.11","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/2797eb38773a96914ccedeec71eb2144645400b2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ada1fc725a4db407294ae90a0d40ef1c46f457f2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b6e8add5d79d1f6f819a054c833bab452bd7365d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98961","url":"https://www.cve.org/CVERecord?id=CVE-2026-98961","licence":"CVE Terms of Use","modified":"2026-10-23T12:19:29.616Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98961","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98961","licence":"Public domain","modified":"2026-10-23T13:17:17.500Z"}],"updatedAt":"2026-11-25T22:59:46.924Z","epss":{"score":0.00166,"percentile":0.0619,"date":"2026-12-01T12:00:22.000Z"}}