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->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.
Impact
Base Score 3.x
6.00
Severity 3.x
MEDIUM
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:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/143f723e9eb4f0302ffb7adfdc7ef77eab3f68e0
- https://git.kernel.org/stable/c/212846fafb753a48e869e2a342fc1e24048da771
- https://git.kernel.org/stable/c/265e98f72bac6c41a4492d3e30a8e5fd22fe0779
- https://git.kernel.org/stable/c/616aa5f3c86e0479bcbb81e41c08c43ff32af637
- https://git.kernel.org/stable/c/bbdb3307f609ec4dc9558770f464ede01fe52aed
- https://git.kernel.org/stable/c/e08dc2dc3c3f7938df0e4476fe3e6fdec5583c1d