CVE-2024-35847

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

State
Published
Severity
7.8 High
Published
May 17, 2024
Updated
Aug 5, 2026
Reserved
May 17, 2024

Read the record on cve.org

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 ]

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7d75bbb4bc1ad90386776459d37e4ddfe605671e to before f5417ff561b8ac9a7e53c747b8627a7ab58378aeAffected
  • 7d75bbb4bc1ad90386776459d37e4ddfe605671e to before b72d2b1448b682844f995e660b77f2a1fabc1662Affected
  • 7d75bbb4bc1ad90386776459d37e4ddfe605671e to before aa44d21574751a7d6bca892eb8e0e9ac68372e52Affected
  • 7d75bbb4bc1ad90386776459d37e4ddfe605671e to before 5dbdbe1133911ca7d8466bb86885adec32ad9438Affected
  • 7d75bbb4bc1ad90386776459d37e4ddfe605671e to before dd681710ab77c8beafe2e263064cb1bd0e2d6ca9Affected
  • 7d75bbb4bc1ad90386776459d37e4ddfe605671e to before 03170e657f62c26834172742492a8cb8077ef792Affected
  • 7d75bbb4bc1ad90386776459d37e4ddfe605671e to before 5b012f77abde89bf0be8a0547636184fea618137Affected
  • 7d75bbb4bc1ad90386776459d37e4ddfe605671e to before c26591afd33adce296c022e3480dea4282b7ef91Affected
LinuxLinux
  • 4.14Affected
  • before 4.14Not affected
  • 4.19.313 through 4.19.*Not affected
  • 5.4.275 through 5.4.*Not affected
  • 5.10.216 through 5.10.*Not affected
  • 5.15.158 through 5.15.*Not affected
  • 6.1.90 through 6.1.*Not affected
  • 6.6.30 through 6.6.*Not affected
  • 6.8.9 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.