{"id":"CVE-2024-56662","summary":"acpi: nfit: vmalloc-out-of-bounds Read in acpi_nfit_ctl","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nacpi: nfit: vmalloc-out-of-bounds Read in acpi_nfit_ctl\n\nFix an issue detected by syzbot with KASAN:\n\nBUG: KASAN: vmalloc-out-of-bounds in cmd_to_func drivers/acpi/nfit/\ncore.c:416 [inline]\nBUG: KASAN: vmalloc-out-of-bounds in acpi_nfit_ctl+0x20e8/0x24a0\ndrivers/acpi/nfit/core.c:459\n\nThe issue occurs in cmd_to_func when the call_pkg-\u003end_reserved2\narray is accessed without verifying that call_pkg points to a buffer\nthat is appropriately sized as a struct nd_cmd_pkg. This can lead\nto out-of-bounds access and undefined behavior if the buffer does not\nhave sufficient space.\n\nTo address this, a check was added in acpi_nfit_ctl() to ensure that\nbuf is not NULL and that buf_len is less than sizeof(*call_pkg)\nbefore accessing it. This ensures safe access to the members of\ncall_pkg, including the nd_reserved2 array.","modified":"2026-04-16T04:38:36.427330201Z","published":"2024-12-27T15:06:24.661Z","related":["ALSA-2025:20095","ALSA-2025:20518","SUSE-SU-2025:0289-1","SUSE-SU-2025:0428-1","SUSE-SU-2025:0499-1","SUSE-SU-2025:0557-1","SUSE-SU-2025:0565-1","SUSE-SU-2025:20165-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20248-1","SUSE-SU-2025:20249-1","USN-7379-2","USN-7380-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56662.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/143f723e9eb4f0302ffb7adfdc7ef77eab3f68e0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/212846fafb753a48e869e2a342fc1e24048da771"},{"type":"WEB","url":"https://git.kernel.org/stable/c/265e98f72bac6c41a4492d3e30a8e5fd22fe0779"},{"type":"WEB","url":"https://git.kernel.org/stable/c/616aa5f3c86e0479bcbb81e41c08c43ff32af637"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bbdb3307f609ec4dc9558770f464ede01fe52aed"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e08dc2dc3c3f7938df0e4476fe3e6fdec5583c1d"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56662.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56662"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ebe9f6f19d80d8978d16078dff3d5bd93ad8d102"},{"fixed":"616aa5f3c86e0479bcbb81e41c08c43ff32af637"},{"fixed":"bbdb3307f609ec4dc9558770f464ede01fe52aed"},{"fixed":"143f723e9eb4f0302ffb7adfdc7ef77eab3f68e0"},{"fixed":"e08dc2dc3c3f7938df0e4476fe3e6fdec5583c1d"},{"fixed":"212846fafb753a48e869e2a342fc1e24048da771"},{"fixed":"265e98f72bac6c41a4492d3e30a8e5fd22fe0779"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"63108f2a408abea7ecab063efa0f398da4d0d14b"},{"last_affected":"f5878c4f084dc6b1386dad03970bb61ad5e9dc4b"},{"last_affected":"0c79794474895dbbc3c52225f7e9f73cfecbb7dd"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56662.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H"}]}