Linux
irqchip/gic-v5: Check get_logical_index() return value in MADT IAFFID parsing
In the Linux kernel, the following vulnerability has been resolved: irqchip/gic-v5: Check get_logical_index() return value in MADT IAFFID parsing In gic_acpi_parse_iaffid() a given MADT GICC entry might not correspond to a logical cpu recognized by the kernel, resulting in the cpu variable initialization to an error value. Currently, the get_logical_index() return value is not checked for failure, which might result in out-of-bounds memory corruption while trying to index a per_cpu variable array. Add a check to evaluate get_logical_index() return value.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 35866efa52feaf48cc54a0745851a555654e1446, < 6caeb878f809bdf0aec2fdd96f3d41ef4b69fc69
- >= 35866efa52feaf48cc54a0745851a555654e1446, < 328affc639ce9873a7a0a3fd6b8339f19767529b
Fixed in 6caeb878f809bdf0aec2fdd96f3d41ef4b69fc69, 328affc639ce9873a7a0a3fd6b8339f19767529b
- 7.0
Fixed in 0, 7.2.6, 7.3
Mitigation
Upgrade Linux to 6caeb878f809bdf0aec2fdd96f3d41ef4b69fc69 or 328affc639ce9873a7a0a3fd6b8339f19767529b or later.
Upgrade Linux to 0 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.