# CVE-2023-52864: platform/x86: wmi: Fix opening of char device

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-02)
- Published: 2024-05-21T15:31:55.875Z
- Modified: 2026-08-05T09:11:43.009Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 44b6b7661132b1b0e5fd3147ded66f1e4a817ca9 before cf098e937dd125c0317a0d6f261ac2a950a233d6; from 44b6b7661132b1b0e5fd3147ded66f1e4a817ca9 before 9fb0eed09e1470cd4021ff52b2b9dfcbcee4c203; from 44b6b7661132b1b0e5fd3147ded66f1e4a817ca9 before d426a2955e45a95b2282764105fcfb110a540453; from 44b6b7661132b1b0e5fd3147ded66f1e4a817ca9 before e0bf076b734a2fab92d8fddc2b8b03462eee7097; from 44b6b7661132b1b0e5fd3147ded66f1e4a817ca9 before 44a96796d25809502c75771d40ee693c2e44724e; from 44b6b7661132b1b0e5fd3147ded66f1e4a817ca9 before 36d85fa7ae0d6be651c1a745191fa7ef055db43e; from 44b6b7661132b1b0e5fd3147ded66f1e4a817ca9 before fb7b06b59c6887659c6ed0ecd3110835eecbb6a3; from 44b6b7661132b1b0e5fd3147ded66f1e4a817ca9 before eba9ac7abab91c8f6d351460239108bef5e7a0b6; 4.15 (not affected: before 4.15; from 4.19.299 up to 4.19.*; from 5.4.261 up to 5.4.*; from 5.10.201 up to 5.10.*; from 5.15.139 up to 5.15.*; from 6.1.63 up to 6.1.*; from 6.5.12 up to 6.5.*; from 6.6.2 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: from 4.15 before 4.19.299; from 4.20 before 5.4.261; from 5.5 before 5.10.201; from 5.11 before 5.15.139; from 5.16 before 6.1.63; from 6.2 before 6.5.12; from 6.6 before 6.6.2

## Every score

- Linux: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/cf098e937dd125c0317a0d6f261ac2a950a233d6> (patch)
- <https://git.kernel.org/stable/c/9fb0eed09e1470cd4021ff52b2b9dfcbcee4c203> (patch)
- <https://git.kernel.org/stable/c/d426a2955e45a95b2282764105fcfb110a540453> (patch)
- <https://git.kernel.org/stable/c/e0bf076b734a2fab92d8fddc2b8b03462eee7097> (patch)
- <https://git.kernel.org/stable/c/44a96796d25809502c75771d40ee693c2e44724e> (patch)
- <https://git.kernel.org/stable/c/36d85fa7ae0d6be651c1a745191fa7ef055db43e> (patch)
- <https://git.kernel.org/stable/c/fb7b06b59c6887659c6ed0ecd3110835eecbb6a3> (patch)
- <https://git.kernel.org/stable/c/eba9ac7abab91c8f6d351460239108bef5e7a0b6> (patch)

## Sources

- CVE List: [CVE-2023-52864](https://www.cve.org/CVERecord?id=CVE-2023-52864), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-52864](https://nvd.nist.gov/vuln/detail/CVE-2023-52864), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-52864 · Whole record: https://cve.day/CVE-2023-52864.json · Rebuilt by cve.day 2026-11-25T22:58:34.061Z
