OPP: Fix race between OPP addition and lookup
In the Linux kernel, the following vulnerability has been resolved: OPP: Fix race between OPP addition and lookup A race exists between dev_pm_opp_add_dynamic() and dev_pm_opp_find_freq_exact(): CPU0 (add) CPU1 (lookup) ------------------------------- ------------------------------ _opp_add() mutex_lock() list_add(&new_opp->node, head) mutex_unlock() _opp_table_find_key() mutex_lock() dev_pm_opp_get(opp) kref_get() mutex_unlock() kref_init(&new_opp->kref) dev_pm_opp_put() kref_put_mutex() The newly added OPP is inserted into the list before its kref is initialized. A concurrent lookup can find this OPP and increment its reference count while it is still uninitialized, leading to refcount corruption and a potential premature free. Fix this by initializing ->kref and ->opp_table before making the OPP visible via list_add(). This ensures any concurrent lookup observes a fully initialized object. [ Viresh: Updated commit log ]
CVE-2026-74405
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-74405
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": "7034764a1e4a6edbb60914e89aad8384e3fe5d17",
"lessThan": "932ebfad767be1395946cbc1727a7c38eeee3d24",
"versionType": "git"
},
{
"status": "affected",
"version": "7034764a1e4a6edbb60914e89aad8384e3fe5d17",
"lessThan": "1946ea2f6b3ec00e313c78e83fc196f1f6aba2a9",
"versionType": "git"
},
{
"status": "affected",
"version": "7034764a1e4a6edbb60914e89aad8384e3fe5d17",
"lessThan": "46696b0b2123475d7f95909435c09808fc5ffd23",
"versionType": "git"
},
{
"status": "affected",
"version": "7034764a1e4a6edbb60914e89aad8384e3fe5d17",
"lessThan": "bb75bd7d9ae7672034f73ce67a57e6ac89bb39e5",
"versionType": "git"
},
{
"status": "affected",
"version": "7034764a1e4a6edbb60914e89aad8384e3fe5d17",
"lessThan": "f5e1cc9a284bff2510981643a5bca4bc4c21b81a",
"versionType": "git"
}
],
"programFiles": [
"drivers/opp/core.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4.11"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "4.11",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.114",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.40",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.1.5",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/opp/core.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-74405
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #46559 · Revision 1
- Added to Heist Feed
- Publisher date