media: rkvdec: do not destroy borrowed SRAM pool
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
media: rkvdec: do not destroy borrowed SRAM pool
rkvdec_probe() obtains a provider-owned SRAM pool with of_gen_pool_get(), but its error path incorrectly destroys the borrowed pool with gen_pool_destroy().
of_gen_pool_get() returns a pool managed by the SRAM provider. The pool is not created or owned by the rkvdec driver and is destroyed by the provider when its own managed resources are released.
Destroying it when rkvdec_v4l2_init() fails can invalidate the pool while the provider and other consumers still reference it, and can also result in the provider attempting to destroy it again later.
Remove the incorrect gen_pool_destroy() call from the probe failure path.
This issue was found by manual code inspection.
| Product | Versions |
|---|---|
| Linux Linux | e5640dbb991c498b0f6fcf2e968fa795a8062eb6 to before 54e5aa1854d2c22cb6a95d40e6d5af675e5008ff Affectede5640dbb991c498b0f6fcf2e968fa795a8062eb6 to before 19449e913cf0cb866957fe7ddc9b357f7244d079 Affected |
| Linux Linux | 7.0 Affectedbefore 7.0 Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
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.