media: v4l2-tpg: fix some memleaks in tpg_alloc
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 63881df94d3ecbb0deafa0b77da62ff2f32961c4 · < 4c86c772fef06f5d7a66151bac42366825db0941| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: v4l2-tpg: fix some memleaks in tpg_alloc
In tpg_alloc, resources should be deallocated in each and every error-handling paths, since they are allocated in for statements. Otherwise there would be memleaks because tpg_free is called only when tpg_alloc return 0.
From the CVE record · Linux
The Linux kernel's v4l2-tpg component can leak memory when tpg_alloc encounters an error because some error paths do not release allocated resources. The input does not establish how an attacker could trigger this condition or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the v4l2-tpg component should check their versions; affected versions are not specified.