media: platform: allegro-dvt: Fix possible memory leak in allocate_buffers_internal()
Published Dec 27, 2024
5.5
MEDIUMCVSS 3.1
EPSS 0.24%
Description
The buffer in the loop should be released under the exception path, otherwise there may be a memory leak here.
To mitigate this, free the buffer when allegro_alloc_buffer fails.
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 5.3StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<5.3
- Version 5.10.231StatusunaffectedConstraints<=5.10.*
- Version 5.15.174StatusunaffectedConstraints<=5.15.*
- Version 5.4.287StatusunaffectedConstraints<=5.4.*
- Version 6.1.120StatusunaffectedConstraints<=6.1.*
- Version 6.12.4StatusunaffectedConstraints<=6.12.*
- Version 6.13StatusunaffectedConstraints<=*
- Version 6.6.64StatusunaffectedConstraints<=6.6.*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| ||||||||||||||||||||||||||||||
| Linux | Linux | affected |
|
- ≥ 5.3 · < 5.4.287
- ≥ 5.5 · < 5.10.231
- ≥ 5.11 · < 5.15.174
- ≥ 5.16 · < 6.1.120
- ≥ 6.2 · < 6.6.64
- ≥ 6.7 · < 6.12.4
No data.
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (14)
- https://access.redhat.com/security/cve/CVE-2024-56572 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2334440 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-53220 Advisory
- https://git.kernel.org/stable/c/0f514068fbc5d4d189c817adc7c4e32cffdc2e47 Patch
- https://git.kernel.org/stable/c/17e5613666209be4e5be1f1894f1a6014a8a0658 Patch
- https://git.kernel.org/stable/c/64f72a738864b506ab50b4a6cb3ce3c3e04b71af Patch
- https://git.kernel.org/stable/c/6712a28a4f923ffdf51cff267ad05a634ee1babc Patch
- https://git.kernel.org/stable/c/74a65313578b35e1239966adfa7ac2bdd60caf00 Patch
- https://git.kernel.org/stable/c/891b5790bee8fc6ddba17874dd87a646128d0b99 Patch
- https://git.kernel.org/stable/c/cf642904be39ae0d441dbdfa8f485e0a46260be4 Patch
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
- https://lore.kernel.org/linux-cve-announce/2024122717-CVE-2024-56572-b0fd@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2024-56572
- https://www.cve.org/CVERecord?id=CVE-2024-56572
Change history (0)
No recorded changes yet.