btrfs: unlock inode and extent in caller when io_uring read extent fails
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2797eb38773a96914ccedeec71eb2144645400b2, Kernel ada1fc725a4db407294ae90a0d40ef1c46f457f2 and Kernel b6e8add5d79d1f6f819a054c833bab452bd7365d.
In the Linux kernel, the following vulnerability has been resolved: btrfs: unlock inode and extent in caller when io_uring read extent fails btrfs_uring_read_extent() runs only after btrfs_encoded_read() has taken the inode shared lock and the extent lock. On failure it used to unlock in out_fail, and a pages-array allocation failure returned -ENOMEM without unlocking at all. Unlock in the caller instead on all failure returns, matching the copy_to_user() error path. The deferred -EIOCBQUEUED path still unlocks in btrfs_uring_read_finished().
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.13, >=34310c442e175f286b4c06ab5caa4e0b267ea31c <2797eb38773a96914ccedeec71eb2144645400b2, >=34310c442e175f286b4c06ab5caa4e0b267ea31c <ada1fc725a4db407294ae90a0d40ef1c46f457f2, >=34310c442e175f286b4c06ab5caa4e0b267ea31c <b6e8add5d79d1f6f819a054c833bab452bd7365d | 2797eb38773a96914ccedeec71eb2144645400b2, ada1fc725a4db407294ae90a0d40ef1c46f457f2, b6e8add5d79d1f6f819a054c833bab452bd7365d |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket