platform/x86: wmi: Fix opening of char device
In the Linux kernel, the following vulnerability has been resolved: platform/x86: wmi: Fix opening of char device Since commit fa1f68db6ca7 ("drivers: misc: pass miscdevice pointer via file private data"), the miscdevice stores a pointer to itself inside filp->private_data, which means that private_data will not be NULL when wmi_char_open() is called. This might cause memory corruption should wmi_char_open() be unable to find its driver, something which can happen when the associated WMI device is deleted in wmi_free_devices(). Fix the problem by using the miscdevice pointer to retrieve the WMI device data associated with a char device using container_of(). This also avoids wmi_char_open() picking a wrong WMI device bound to a driver with the same name as the original driver.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.19.299, 5.10.201, 5.15.139, 5.4.261, 6.1.63, 6.5.12, 6.6.2
- CVEs
- CVE-2023-52864
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 18:22 UTC · Revision 1
Source evidence
platform/x86: wmi: Fix opening of char device
core-osv · Original sourcePublished 21 May 2024, 15:31 UTC
In the Linux kernel, the following vulnerability has been resolved: platform/x86: wmi: Fix opening of char device Since commit fa1f68db6ca7 ("drivers: misc: pass miscdevice pointer via file private data"), the miscdevice stores a pointer to itself inside filp->private_data, which means that private_data will not be NULL when wmi_char_open() is called. This might cause memory corruption should wmi_char_open() be unable to find its driver, something which can happen when the associated WMI device is deleted in wmi_free_devices(). Fix the problem by using the miscdevice pointer to retrieve the WMI device data associated with a char device using container_of(). This also avoids wmi_char_open() picking a wrong WMI device bound to a driver with the same name as the original driver.
osv:CVE-2023-52864
Kernel
Fixed versions: 4.19.299, 5.4.261, 5.10.201, 5.15.139, 6.1.63, 6.5.12, 6.6.2
Complete source record
{
"id": "8c1d53cc7f6029e0e8fec39c4533f91af6400f4aae4daa2107ec224efddc0e45",
"url": "https://osv.dev/vulnerability/CVE-2023-52864",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "platform/x86: wmi: Fix opening of char device",
"summary": "In the Linux kernel, the following vulnerability has been resolved: platform/x86: wmi: Fix opening of char device Since commit fa1f68db6ca7 (\"drivers: misc: pass miscdevice pointer via file private data\"), the miscdevice stores a pointer to itself inside filp->private_data, which means that private_data will not be NULL when wmi_char_open() is called. This might cause memory corruption should wmi_char_open() be unable to find its driver, something which can happen when the associated WMI device is deleted in wmi_free_devices(). Fix the problem by using the miscdevice pointer to retrieve the WMI device data associated with a char device using container_of(). This also avoids wmi_char_open() picking a wrong WMI device bound to a driver with the same name as the original driver.",
"evidence": "osv:CVE-2023-52864",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.19.299",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.261",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.201",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.139",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.63",
"evidence": "/affected/1/ranges"
},
{
"value": "6.5.12",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2023-52864",
"aliases": [
"CVE-2023-52864"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "44b6b7661132b1b0e5fd3147ded66f1e4a817ca9"
},
{
"fixed": "cf098e937dd125c0317a0d6f261ac2a950a233d6"
},
{
"fixed": "9fb0eed09e1470cd4021ff52b2b9dfcbcee4c203"
},
{
"fixed": "d426a2955e45a95b2282764105fcfb110a540453"
},
{
"fixed": "e0bf076b734a2fab92d8fddc2b8b03462eee7097"
},
{
"fixed": "44a96796d25809502c75771d40ee693c2e44724e"
},
{
"fixed": "36d85fa7ae0d6be651c1a745191fa7ef055db43e"
},
{
"fixed": "fb7b06b59c6887659c6ed0ecd3110835eecbb6a3"
},
{
"fixed": "eba9ac7abab91c8f6d351460239108bef5e7a0b6"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52864.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.299"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.261"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.201"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.139"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.63"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.5.12"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.6.0"
},
{
"fixed": "6.6.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52864.json"
}
}
],
"modified": "2026-10-28T02:30:51.560552684Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/36d85fa7ae0d6be651c1a745191fa7ef055db43e",
"https://git.kernel.org/stable/c/44a96796d25809502c75771d40ee693c2e44724e",
"https://git.kernel.org/stable/c/9fb0eed09e1470cd4021ff52b2b9dfcbcee4c203",
"https://git.kernel.org/stable/c/cf098e937dd125c0317a0d6f261ac2a950a233d6",
"https://git.kernel.org/stable/c/d426a2955e45a95b2282764105fcfb110a540453",
"https://git.kernel.org/stable/c/e0bf076b734a2fab92d8fddc2b8b03462eee7097",
"https://git.kernel.org/stable/c/eba9ac7abab91c8f6d351460239108bef5e7a0b6",
"https://git.kernel.org/stable/c/fb7b06b59c6887659c6ed0ecd3110835eecbb6a3",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52864.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-52864",
"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/2023/52xxx/CVE-2023-52864.json"
}
},
"related_cves": [
{
"value": "CVE-2023-52864",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 520084,
"published_at": "2024-05-21T15:31:55.875+00:00"
}