irqchip/gic-v3-its: Prevent double free on error
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
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 ]
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- Linux Linux
Version range not reported
- Linux Linux
4.14
References 8
git.kernel.org
- stable/c/f5417ff561b8ac9a7e53c747b8627a7ab58378ae
- stable/c/b72d2b1448b682844f995e660b77f2a1fabc1662
- stable/c/aa44d21574751a7d6bca892eb8e0e9ac68372e52
- stable/c/5dbdbe1133911ca7d8466bb86885adec32ad9438
- stable/c/dd681710ab77c8beafe2e263064cb1bd0e2d6ca9
- stable/c/03170e657f62c26834172742492a8cb8077ef792
- stable/c/5b012f77abde89bf0be8a0547636184fea618137
- stable/c/c26591afd33adce296c022e3480dea4282b7ef91