misc: fastrpc: Fix dma_buf object leak in fastrpc_map_lookup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
misc: fastrpc: Fix dma_buf object leak in fastrpc_map_lookup
In fastrpc_map_lookup, dma_buf_get is called to obtain a reference to the dma_buf for comparison purposes. However, this reference is never released when the function returns, leading to a dma_buf memory leak.
Fix this by adding dma_buf_put before returning from the function, ensuring that the temporarily acquired reference is properly released regardless of whether a matching map is found.
Rule: add
From the CVE record · Linux
The Linux kernel’s fastrpc_map_lookup does not release a temporary dma_buf reference, causing a memory leak. The input does not specify whether an attacker can trigger the leak or what access or interaction would be required.
Engineers running the Linux kernel should check whether their version is affected; affected versions are not specified.