cve/2024/CVE-2024-56662.md
2025-09-29 21:09:30 +02:00

26 lines
2.0 KiB
Markdown

### [CVE-2024-56662](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-56662)
![](https://img.shields.io/static/v1?label=Product&message=Linux&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=0c79794474895dbbc3c52225f7e9f73cfecbb7dd%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=5.1%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=63108f2a408abea7ecab063efa0f398da4d0d14b%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=ebe9f6f19d80d8978d16078dff3d5bd93ad8d102%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=f5878c4f084dc6b1386dad03970bb61ad5e9dc4b%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=blue)
### Description
In the Linux kernel, the following vulnerability has been resolved:acpi: nfit: vmalloc-out-of-bounds Read in acpi_nfit_ctlFix an issue detected by syzbot with KASAN:BUG: KASAN: vmalloc-out-of-bounds in cmd_to_func drivers/acpi/nfit/core.c:416 [inline]BUG: KASAN: vmalloc-out-of-bounds in acpi_nfit_ctl+0x20e8/0x24a0drivers/acpi/nfit/core.c:459The issue occurs in cmd_to_func when the call_pkg->nd_reserved2array is accessed without verifying that call_pkg points to a bufferthat is appropriately sized as a struct nd_cmd_pkg. This can leadto out-of-bounds access and undefined behavior if the buffer does nothave sufficient space.To address this, a check was added in acpi_nfit_ctl() to ensure thatbuf is not NULL and that buf_len is less than sizeof(*call_pkg)before accessing it. This ensures safe access to the members ofcall_pkg, including the nd_reserved2 array.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/cku-heise/euvd-api-doc
- https://github.com/nomi-sec/PoC-in-GitHub
- https://github.com/oogasawa/Utility-security
- https://github.com/w4zu/Debian_security