{"id":"CVE-2026-74405","state":"PUBLISHED","title":"OPP: Fix race between OPP addition and lookup","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nOPP: Fix race between OPP addition and lookup\n\nA race exists between dev_pm_opp_add_dynamic() and\ndev_pm_opp_find_freq_exact():\n\n  CPU0 (add)                          CPU1 (lookup)\n  -------------------------------     ------------------------------\n  _opp_add()\n    mutex_lock()\n    list_add(&new_opp->node, head)\n    mutex_unlock()                    _opp_table_find_key()\n                                        mutex_lock()\n                                        dev_pm_opp_get(opp)\n                                          kref_get()\n                                        mutex_unlock()\n    kref_init(&new_opp->kref)\n                                      dev_pm_opp_put()\n                                        kref_put_mutex()\n\nThe newly added OPP is inserted into the list before its kref is\ninitialized. A concurrent lookup can find this OPP and increment its\nreference count while it is still uninitialized, leading to refcount\ncorruption and a potential premature free.\n\nFix this by initializing ->kref and ->opp_table before making the OPP\nvisible via list_add(). This ensures any concurrent lookup observes a\nfully initialized object.\n\n[ Viresh: Updated commit log ]","publishedAt":"2026-08-15T05:59:14.719Z","updatedAt":"2026-10-30T12:29:58.561Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"835b9b5b4d287a03c713680b0231d36ff599201b","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"2fb061a90898420d8ca1a0b9959ca977d90fa841","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"e25be5d812ec8ca2615d23726b3861b04e2fff35","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"932ebfad767be1395946cbc1727a7c38eeee3d24","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"1946ea2f6b3ec00e313c78e83fc196f1f6aba2a9","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"46696b0b2123475d7f95909435c09808fc5ffd23","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"bb75bd7d9ae7672034f73ce67a57e6ac89bb39e5","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"f5e1cc9a284bff2510981643a5bca4bc4c21b81a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/opp/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.11","versionType":"semver"},{"version":"5.10.273","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.224","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/opp/core.c"]}],"references":["https://git.kernel.org/stable/c/835b9b5b4d287a03c713680b0231d36ff599201b","https://git.kernel.org/stable/c/2fb061a90898420d8ca1a0b9959ca977d90fa841","https://git.kernel.org/stable/c/e25be5d812ec8ca2615d23726b3861b04e2fff35","https://git.kernel.org/stable/c/932ebfad767be1395946cbc1727a7c38eeee3d24","https://git.kernel.org/stable/c/1946ea2f6b3ec00e313c78e83fc196f1f6aba2a9","https://git.kernel.org/stable/c/46696b0b2123475d7f95909435c09808fc5ffd23","https://git.kernel.org/stable/c/bb75bd7d9ae7672034f73ce67a57e6ac89bb39e5","https://git.kernel.org/stable/c/f5e1cc9a284bff2510981643a5bca4bc4c21b81a"],"weaknesses":[],"ingestedAt":"2026-10-30T12:48:04.825Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/74xxx/CVE-2026-74405.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-74405","state":"PUBLISHED","datePublished":"2026-08-15T05:59:14.719Z","dateUpdated":"2026-10-30T12:29:58.561Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-15T05:44:03.892Z"},"containers":{"cna":{"title":"OPP: Fix race between OPP addition and lookup","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nOPP: Fix race between OPP addition and lookup\n\nA race exists between dev_pm_opp_add_dynamic() and\ndev_pm_opp_find_freq_exact():\n\n  CPU0 (add)                          CPU1 (lookup)\n  -------------------------------     ------------------------------\n  _opp_add()\n    mutex_lock()\n    list_add(&new_opp->node, head)\n    mutex_unlock()                    _opp_table_find_key()\n                                        mutex_lock()\n                                        dev_pm_opp_get(opp)\n                                          kref_get()\n                                        mutex_unlock()\n    kref_init(&new_opp->kref)\n                                      dev_pm_opp_put()\n                                        kref_put_mutex()\n\nThe newly added OPP is inserted into the list before its kref is\ninitialized. A concurrent lookup can find this OPP and increment its\nreference count while it is still uninitialized, leading to refcount\ncorruption and a potential premature free.\n\nFix this by initializing ->kref and ->opp_table before making the OPP\nvisible via list_add(). This ensures any concurrent lookup observes a\nfully initialized object.\n\n[ Viresh: Updated commit log ]"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"835b9b5b4d287a03c713680b0231d36ff599201b","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"2fb061a90898420d8ca1a0b9959ca977d90fa841","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"e25be5d812ec8ca2615d23726b3861b04e2fff35","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"932ebfad767be1395946cbc1727a7c38eeee3d24","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"1946ea2f6b3ec00e313c78e83fc196f1f6aba2a9","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"46696b0b2123475d7f95909435c09808fc5ffd23","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"bb75bd7d9ae7672034f73ce67a57e6ac89bb39e5","versionType":"git"},{"version":"7034764a1e4a6edbb60914e89aad8384e3fe5d17","status":"affected","lessThan":"f5e1cc9a284bff2510981643a5bca4bc4c21b81a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/opp/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.11","versionType":"semver"},{"version":"5.10.273","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.224","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/opp/core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/835b9b5b4d287a03c713680b0231d36ff599201b"},{"url":"https://git.kernel.org/stable/c/2fb061a90898420d8ca1a0b9959ca977d90fa841"},{"url":"https://git.kernel.org/stable/c/e25be5d812ec8ca2615d23726b3861b04e2fff35"},{"url":"https://git.kernel.org/stable/c/932ebfad767be1395946cbc1727a7c38eeee3d24"},{"url":"https://git.kernel.org/stable/c/1946ea2f6b3ec00e313c78e83fc196f1f6aba2a9"},{"url":"https://git.kernel.org/stable/c/46696b0b2123475d7f95909435c09808fc5ffd23"},{"url":"https://git.kernel.org/stable/c/bb75bd7d9ae7672034f73ce67a57e6ac89bb39e5"},{"url":"https://git.kernel.org/stable/c/f5e1cc9a284bff2510981643a5bca4bc4c21b81a"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is in the kernel OPP DVFS core reached only from local cpufreq, devfreq, thermal, and GPU power-management paths (e.g. scmi-cpufreq, mtk-mfg, MSM Adreno) that call dev_pm_opp_add_dynamic() and dev_pm_opp_find_freq_exact(); there is no network, adjacent-radio, or physical-device input into _opp_add().\nAC:L - The attacker can drive the lookup side with parallel CPU/GPU load or cpufreq scaling while the kernel concurrently inserts OPPs via _opp_add() during multi-CPU SCMI/GPU power-domain attach and boot cpufreq init; both race participants are attacker-influenceable timing on multi-core ARM/Android/embedded systems.\nPR:L - No init-namespace root is required to hammer dev_pm_opp_find_freq_exact() through normal cpufreq, thermal, or GPU DVFS activity from an unprivileged local process; OPP registration runs automatically in kernel driver attach/probe paths without attacker credentials.\nUI:N - Exploitation does not require any victim action beyond the attacker (or kernel) driving DVFS activity; no mount, file open, or other interactive step is needed once the attacker runs concurrent workload or scaling pressure on the target system.\nS:U - Refcount corruption causes premature kfree() of a dev_pm_opp slab object still linked in the OPP table, enabling standard kernel memory corruption and privilege escalation within the same OS boundary rather than a VM, IOMMU, or sandbox escape.\nC:H - Uninitialized kref_get()/kref_init() races corrupt the OPP refcount and can free the structure while still listed; this use-after-free of kmalloc'd dev_pm_opp memory can expose adjacent heap contents and support arbitrary kernel read primitives.\nI:H - Premature free of dev_pm_opp while its list node remains reachable allows heap reuse and controlled writes through subsequent allocations, providing a standard path to corrupt kernel objects and achieve arbitrary code execution.\nA:H - Refcount corruption can trigger _opp_kref_release() to kfree() an OPP still referenced by concurrent lookups, causing kernel oops/panic from use-after-free or list corruption during ongoing DVFS operations."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:29:58.561Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"5.10.273"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"5.15.224"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.12.114"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-74405","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T18:55:48.602720Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T19:05:43.186Z"}}]}}}