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

CVE-2024-35847
HIGH 7.8

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: 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 ]

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 7d75bbb4bc1ad90386776459d37e4ddfe605671e < f5417ff561b8ac9a7e53c747b8627a7ab58378ae ; affected 7d75bbb4bc1ad90386776459d37e4ddfe605671e < b72d2b1448b682844f995e660b77f2a1fabc1662 ; affected 7d75bbb4bc1ad90386776459d37e4ddfe605671e < aa44d21574751a7d6bca892eb8e0e9ac68372e52 ; affected 7d75bbb4bc1ad90386776459d37e4ddfe605671e < 5dbdbe1133911ca7d8466bb86885adec32ad9438 ; affected 7d75bbb4bc1ad90386776459d37e4ddfe605671e < dd681710ab77c8beafe2e263064cb1bd0e2d6ca9 ; affected 7d75bbb4bc1ad90386776459d37e4ddfe605671e < 03170e657f62c26834172742492a8cb8077ef792
Linux · Linuxaffected 4.14 ; unaffected 0 < 4.14 ; unaffected 4.19.313 ≤ 4.19.* ; unaffected 5.4.275 ≤ 5.4.* ; unaffected 5.10.216 ≤ 5.10.* ; unaffected 5.15.158 ≤ 5.15.*

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