{"id":"CVE-2023-52864","aliases":["CVE-2023-52864"],"related":[],"kind":"vulnerability","state":"published","title":"platform/x86: wmi: Fix opening of char device","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: wmi: Fix opening of char device\n\nSince commit fa1f68db6ca7 (\"drivers: misc: pass miscdevice pointer via\nfile private data\"), the miscdevice stores a pointer to itself inside\nfilp->private_data, which means that private_data will not be NULL when\nwmi_char_open() is called. This might cause memory corruption should\nwmi_char_open() be unable to find its driver, something which can\nhappen when the associated WMI device is deleted in wmi_free_devices().\n\nFix the problem by using the miscdevice pointer to retrieve the WMI\ndevice data associated with a char device using container_of(). This\nalso avoids wmi_char_open() picking a wrong WMI device bound to a\ndriver with the same name as the original driver.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: wmi: Fix opening of char device\n\nSince commit fa1f68db6ca7 (\"drivers: misc: pass miscdevice pointer via\nfile private data\"), the miscdevice stores a pointer to itself inside\nfilp->private_data, which means that private_data will not be NULL when\nwmi_char_open() is called. This might cause memory corruption should\nwmi_char_open() be unable to find its driver, something which can\nhappen when the associated WMI device is deleted in wmi_free_devices().\n\nFix the problem by using the miscdevice pointer to retrieve the WMI\ndevice data associated with a char device using container_of(). This\nalso avoids wmi_char_open() picking a wrong WMI device bound to a\ndriver with the same name as the original driver.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: plataforma/x86: wmi: corrige la apertura del dispositivo char. Desde la confirmación fa1f68db6ca7 (\"drivers: misc: pasar el puntero del dispositivo misc a través de datos privados del archivo\"), el dispositivo misc almacena un puntero a sí mismo en su interior. filp-&gt;private_data, lo que significa que private_data no será NULL cuando se llame a wmi_char_open(). Esto podría causar daños en la memoria si wmi_char_open() no puede encontrar su controlador, algo que puede suceder cuando el dispositivo WMI asociado se elimina en wmi_free_devices(). Solucione el problema utilizando el puntero miscdevice para recuperar los datos del dispositivo WMI asociados con un dispositivo char usando container_of(). Esto también evita que wmi_char_open() seleccione un dispositivo WMI incorrecto vinculado a un controlador con el mismo nombre que el controlador original.","source":"nvd"}],"published":"2024-05-21T15:31:55.875Z","modified":"2026-08-05T09:11:43.009Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"44b6b7661132b1b0e5fd3147ded66f1e4a817ca9","fixed":"cf098e937dd125c0317a0d6f261ac2a950a233d6","status":"affected"},{"type":"git","introduced":"44b6b7661132b1b0e5fd3147ded66f1e4a817ca9","fixed":"9fb0eed09e1470cd4021ff52b2b9dfcbcee4c203","status":"affected"},{"type":"git","introduced":"44b6b7661132b1b0e5fd3147ded66f1e4a817ca9","fixed":"d426a2955e45a95b2282764105fcfb110a540453","status":"affected"},{"type":"git","introduced":"44b6b7661132b1b0e5fd3147ded66f1e4a817ca9","fixed":"e0bf076b734a2fab92d8fddc2b8b03462eee7097","status":"affected"},{"type":"git","introduced":"44b6b7661132b1b0e5fd3147ded66f1e4a817ca9","fixed":"44a96796d25809502c75771d40ee693c2e44724e","status":"affected"},{"type":"git","introduced":"44b6b7661132b1b0e5fd3147ded66f1e4a817ca9","fixed":"36d85fa7ae0d6be651c1a745191fa7ef055db43e","status":"affected"},{"type":"git","introduced":"44b6b7661132b1b0e5fd3147ded66f1e4a817ca9","fixed":"fb7b06b59c6887659c6ed0ecd3110835eecbb6a3","status":"affected"},{"type":"git","introduced":"44b6b7661132b1b0e5fd3147ded66f1e4a817ca9","fixed":"eba9ac7abab91c8f6d351460239108bef5e7a0b6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"4.19.299","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.261","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.201","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.139","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.63","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.5.12","lastAffected":"6.5.*","status":"unaffected"},{"type":"semver","introduced":"6.6.2","lastAffected":"6.6.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.7","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.15","fixed":"4.19.299"},{"status":"affected","introduced":"4.20","fixed":"5.4.261"},{"status":"affected","introduced":"5.5","fixed":"5.10.201"},{"status":"affected","introduced":"5.11","fixed":"5.15.139"},{"status":"affected","introduced":"5.16","fixed":"6.1.63"},{"status":"affected","introduced":"6.2","fixed":"6.5.12"},{"status":"affected","introduced":"6.6","fixed":"6.6.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/cf098e937dd125c0317a0d6f261ac2a950a233d6","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9fb0eed09e1470cd4021ff52b2b9dfcbcee4c203","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d426a2955e45a95b2282764105fcfb110a540453","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e0bf076b734a2fab92d8fddc2b8b03462eee7097","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/44a96796d25809502c75771d40ee693c2e44724e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/36d85fa7ae0d6be651c1a745191fa7ef055db43e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fb7b06b59c6887659c6ed0ecd3110835eecbb6a3","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eba9ac7abab91c8f6d351460239108bef5e7a0b6","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-22T18:21:10.578Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52864","url":"https://www.cve.org/CVERecord?id=CVE-2023-52864","licence":"CVE Terms of Use","modified":"2026-08-05T09:11:43.009Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52864","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52864","licence":"Public domain","modified":"2026-08-04T10:18:46.350Z"}],"updatedAt":"2026-11-25T22:58:34.061Z","epss":{"score":0.00268,"percentile":0.20229,"date":"2026-12-02T12:00:21.000Z"}}