CVE-2024-24856
JSON

5.3medium

NULL pointer deference in acpi_db_convert_to_package of Linux acpi module

Severity
5.3medium CVSS:3.1 by Anolis
Exploit likelihood
0.17% (higher than 6% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Anolis

Description

The memory allocation function ACPI_ALLOCATE_ZEROED does not guarantee a successful allocation, but the subsequent code directly dereferences the pointer that receives it, which may lead to null pointer dereference. To fix this issue, a null pointer check should be added. If it is null, return exception code AE_NO_MEMORY.

Affected

Product or packageVersionsReported by
kernelfrom v4.4 before v6.9CVE List
openanolis anolis_osfrom v4.4 before v6.9CVE List

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

The memory allocation function ACPI_ALLOCATE_ZEROED does not guarantee a successful allocation, but the subsequent code directly dereferences the pointer that receives it, which may lead to null pointer dereference. To fix this issue, a null pointer check should be added. If it is null, return exception code AE_NO_MEMORY.

NVD (es)

La función de asignación de memoria ACPI_ALLOCATE_ZEROED no garantiza una asignación exitosa, pero el código posterior desreferencia directamente el puntero que la recibe, lo que puede provocar una desreferencia del puntero nulo. Para solucionar este problema, se debe agregar una verificación de puntero nulo. Si es nulo, devuelve el código de excepción AE_NO_MEMORY.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-24856 changed 2024-08-01CVE Terms of Use
NVDCVE-2024-24856 changed 2026-06-17Public domain