arm64: acpi: Harden get_cpu_for_acpi_id() against missing CPU entry (Linux Linux)

CVE-2024-46822
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.25 % · percentile 16 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: arm64: acpi: Harden get_cpu_for_acpi_id() against missing CPU entry In a review discussion of the changes to support vCPU hotplug where a check was added on the GICC being enabled if was online, it was noted that there is need to map back to the cpu and use that to index into a cpumask. As such, a valid ID is needed. If an MPIDR check fails in acpi_map_gic_cpu_interface() it is possible for the entry in cpu_madt_gicc[cpu] == NULL. This function would then cause a NULL pointer dereference. Whilst a path to trigger this has not been established, harden this caller against the possibility.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 0be7320a635c2e434e8b67e0e9474a85ceb421c4 < f57769ff6fa7f97f1296965f20e8a2bb3ee9fd0f ; affected 0be7320a635c2e434e8b67e0e9474a85ceb421c4 < 4c3b21204abb4fa3ab310fbbb5cf7f0e85f3a1bc ; affected 0be7320a635c2e434e8b67e0e9474a85ceb421c4 < 945be49f4e832a9184c313fdf8917475438a795b ; affected 0be7320a635c2e434e8b67e0e9474a85ceb421c4 < 40cae0df42e5e7f7a1c0f32deed9c4027c1ba94e ; affected 0be7320a635c2e434e8b67e0e9474a85ceb421c4 < 62ca6d3a905b4c40cd942f3cc645a6718f8bc7e7 ; affected 0be7320a635c2e434e8b67e0e9474a85ceb421c4 < bc7fbb37e3d2df59336eadbd6a56be632e3c7df7
Linux · Linuxaffected 3.7 ; unaffected 0 < 3.7 ; unaffected 5.4.284 ≤ 5.4.* ; unaffected 5.10.226 ≤ 5.10.* ; unaffected 5.15.167 ≤ 5.15.* ; unaffected 6.1.110 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD