cpufreq: initialize policy rwsem before sysfs publication
In the Linux kernel, the following vulnerability has been resolved: cpufreq: initialize policy rwsem before sysfs publication cpufreq_policy_alloc() initializes policy->rwsem after kobject_init_and_add() has created the policy sysfs directory and its default attributes. A sysfs access can therefore reach a policy callback before the semaphore has been initialized. Initialize policy->rwsem before publishing the policy kobject so sysfs callbacks always see an initialized semaphore.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.271, 5.15.222, 6.1.189, 6.12.111, 6.18.53, 6.6.158, 7.2.7
- CVEs
- CVE-2026-97904
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 04:14 UTC · Revision 1
Source evidence
cpufreq: initialize policy rwsem before sysfs publication
core-osv · Original sourcePublished 25 Sept 2026, 10:22 UTC
In the Linux kernel, the following vulnerability has been resolved: cpufreq: initialize policy rwsem before sysfs publication cpufreq_policy_alloc() initializes policy->rwsem after kobject_init_and_add() has created the policy sysfs directory and its default attributes. A sysfs access can therefore reach a policy callback before the semaphore has been initialized. Initialize policy->rwsem before publishing the policy kobject so sysfs callbacks always see an initialized semaphore.
osv:CVE-2026-97904
Kernel
Fixed versions: 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.111, 6.18.53, 7.2.7
Complete source record
{
"id": "ac3b3538bbce614d6e9e9b23bb4fa42d98598ffd36d0ecf2d627801f0751bc69",
"url": "https://osv.dev/vulnerability/CVE-2026-97904",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "cpufreq: initialize policy rwsem before sysfs publication",
"summary": "In the Linux kernel, the following vulnerability has been resolved: cpufreq: initialize policy rwsem before sysfs publication cpufreq_policy_alloc() initializes policy->rwsem after kobject_init_and_add() has created the policy sysfs directory and its default attributes. A sysfs access can therefore reach a policy callback before the semaphore has been initialized. Initialize policy->rwsem before publishing the policy kobject so sysfs callbacks always see an initialized semaphore.",
"evidence": "osv:CVE-2026-97904",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.271",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.222",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.189",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.158",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.111",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.53",
"evidence": "/affected/1/ranges"
},
{
"value": "7.2.7",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-97904",
"aliases": [
"CVE-2026-97904"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "2fc3384dc75bf7333384c7a16d12c796f61c3f56"
},
{
"fixed": "c9d8435814f2ac533c40fe3f35d94235bc3a9443"
},
{
"fixed": "82a54923700da5de83ce2b26c0b43f6b5005c8f1"
},
{
"fixed": "b14987a0f73777644099f47f01aba3b0f9dc6c27"
},
{
"fixed": "b22193eea2ce32c39dda5e09f9c2be2f3fd7eb4a"
},
{
"fixed": "dc11263cb05ed519758fd135fe08d611bad1f241"
},
{
"fixed": "27c9b491bf7604e83b50c3bbfa18a30266ff345f"
},
{
"fixed": "2cee937f779f69b195b37bbec1e888da9bfe9d58"
},
{
"fixed": "3e5d1bf4bd687beb2cb4e32a07af695455925588"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97904.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.2.0"
},
{
"fixed": "5.10.271"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.222"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.189"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.158"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.111"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.53"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.2.7"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97904.json"
}
}
],
"modified": "2026-10-28T02:30:49.454494415Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/27c9b491bf7604e83b50c3bbfa18a30266ff345f",
"https://git.kernel.org/stable/c/2cee937f779f69b195b37bbec1e888da9bfe9d58",
"https://git.kernel.org/stable/c/3e5d1bf4bd687beb2cb4e32a07af695455925588",
"https://git.kernel.org/stable/c/82a54923700da5de83ce2b26c0b43f6b5005c8f1",
"https://git.kernel.org/stable/c/b14987a0f73777644099f47f01aba3b0f9dc6c27",
"https://git.kernel.org/stable/c/b22193eea2ce32c39dda5e09f9c2be2f3fd7eb4a",
"https://git.kernel.org/stable/c/c9d8435814f2ac533c40fe3f35d94235bc3a9443",
"https://git.kernel.org/stable/c/dc11263cb05ed519758fd135fe08d611bad1f241",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97904.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-97904",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97904.json"
}
},
"related_cves": [
{
"value": "CVE-2026-97904",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 518049,
"published_at": "2026-09-25T10:22:30.444+00:00"
}