CVE-2024-56662

Severity CVSS v4.0:
Pending analysis
Type:
CWE-125 Out-of-bounds Read
Publication date:
27/12/2024
Last modified:
21/05/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> acpi: nfit: vmalloc-out-of-bounds Read in acpi_nfit_ctl<br /> <br /> Fix an issue detected by syzbot with KASAN:<br /> <br /> BUG: KASAN: vmalloc-out-of-bounds in cmd_to_func drivers/acpi/nfit/<br /> core.c:416 [inline]<br /> BUG: KASAN: vmalloc-out-of-bounds in acpi_nfit_ctl+0x20e8/0x24a0<br /> drivers/acpi/nfit/core.c:459<br /> <br /> The issue occurs in cmd_to_func when the call_pkg-&gt;nd_reserved2<br /> array is accessed without verifying that call_pkg points to a buffer<br /> that is appropriately sized as a struct nd_cmd_pkg. This can lead<br /> to out-of-bounds access and undefined behavior if the buffer does not<br /> have sufficient space.<br /> <br /> To address this, a check was added in acpi_nfit_ctl() to ensure that<br /> buf is not NULL and that buf_len is less than sizeof(*call_pkg)<br /> before accessing it. This ensures safe access to the members of<br /> call_pkg, including the nd_reserved2 array.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.14.176 (including) 4.15 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.19.31 (including) 4.20 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.0.4 (including) 5.10.232 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.175 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.121 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.67 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.12.6 (excluding)
cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*