IB/rdmavt: add lock to call to rvt_error_qp to prevent a race condition
In the Linux kernel, the following vulnerability has been resolved: IB/rdmavt: add lock to call to rvt_error_qp to prevent a race condition The documentation of the function rvt_error_qp says both r_lock and s_lock need to be held when calling that function. It also asserts using lockdep that both of those locks are held. However, the commit I referenced in Fixes accidentally makes the call to rvt_error_qp in rvt_ruc_loopback no longer covered by r_lock. This results in the lockdep assertion failing and also possibly in a race condition.
CVE-2022-49089
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-2022-49089
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": "d757c60eca9b22f4d108929a24401e0fdecda0b1",
"lessThan": "8a50937227c385a477177c9ffa122b4230e40666",
"versionType": "git"
},
{
"status": "affected",
"version": "d757c60eca9b22f4d108929a24401e0fdecda0b1",
"lessThan": "43c2d7890ecabe527448a6c391fb2d9a5e6bbfe0",
"versionType": "git"
},
{
"status": "affected",
"version": "d757c60eca9b22f4d108929a24401e0fdecda0b1",
"lessThan": "92f1947c0d26060e978b3a9f21f32ce7c8c9cca3",
"versionType": "git"
},
{
"status": "affected",
"version": "d757c60eca9b22f4d108929a24401e0fdecda0b1",
"lessThan": "77ffb2495a41098f9d6a14f8aefde3188da75944",
"versionType": "git"
},
{
"status": "affected",
"version": "d757c60eca9b22f4d108929a24401e0fdecda0b1",
"lessThan": "57800cc36e55db0547461c49acf5cd84c0f502b0",
"versionType": "git"
},
{
"status": "affected",
"version": "d757c60eca9b22f4d108929a24401e0fdecda0b1",
"lessThan": "4d809f69695d4e7d1378b3a072fa9aef23123018",
"versionType": "git"
},
{
"status": "affected",
"version": "25636de95557a95d54ac30be94af3748345a0a90",
"versionType": "git"
},
{
"status": "affected",
"version": "5.0.4",
"lessThan": "5.1",
"versionType": "semver"
}
],
"programFiles": [
"drivers/infiniband/sw/rdmavt/qp.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.1"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.1",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.4.189",
"versionType": "semver",
"lessThanOrEqual": "5.4.*"
},
{
"status": "unaffected",
"version": "5.10.111",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.34",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "5.16.20",
"versionType": "semver",
"lessThanOrEqual": "5.16.*"
},
{
"status": "unaffected",
"version": "5.17.3",
"versionType": "semver",
"lessThanOrEqual": "5.17.*"
},
{
"status": "unaffected",
"version": "5.18",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/infiniband/sw/rdmavt/qp.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2022-49089
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #30175 · Revision 1
- Added to Heist Feed
- Publisher date