btrfs: unlock inode and extent in caller when io_uring read extent fails
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().
CVE-2026-98961
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-98961
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "34310c442e175f286b4c06ab5caa4e0b267ea31c",
"lessThan": "2797eb38773a96914ccedeec71eb2144645400b2",
"versionType": "git"
},
{
"status": "affected",
"version": "34310c442e175f286b4c06ab5caa4e0b267ea31c",
"lessThan": "ada1fc725a4db407294ae90a0d40ef1c46f457f2",
"versionType": "git"
},
{
"status": "affected",
"version": "34310c442e175f286b4c06ab5caa4e0b267ea31c",
"lessThan": "b6e8add5d79d1f6f819a054c833bab452bd7365d",
"versionType": "git"
}
],
"programFiles": [
"fs/btrfs/ioctl.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.13"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.13",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.18.57",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.11",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"fs/btrfs/ioctl.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-98961
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #52815 · Revision 1
- Added to Heist Feed
- Publisher date