VYPR
Unrated severityNVD Advisory· Published May 17, 2024· Updated May 4, 2025

irqchip/gic-v3-its: Prevent double free on error

CVE-2024-35847

Description

In the Linux kernel, the following vulnerability has been resolved:

irqchip/gic-v3-its: Prevent double free on error

The error handling path in its_vpe_irq_domain_alloc() causes a double free when its_vpe_init() fails after successfully allocating at least one interrupt. This happens because its_vpe_irq_domain_free() frees the interrupts along with the area bitmap and the vprop_page and its_vpe_irq_domain_alloc() subsequently frees the area bitmap and the vprop_page again.

Fix this by unconditionally invoking its_vpe_irq_domain_free() which handles all cases correctly and by removing the bitmap/vprop_page freeing from its_vpe_irq_domain_alloc().

[ tglx: Massaged change log ]

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

106

Patches

Vulnerability mechanics

References

8

News mentions

0

No linked articles in our index yet.