5.5medium
ice: xsk: return xsk buffers back to pool when cleaning the ring
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ice: xsk: return xsk buffers back to pool when cleaning the ring Currently we only NULL the xdp_buff pointer in the internal SW ring but we never give it back to the xsk buffer pool. This means that buffers can be leaked out of the buff pool and never be used again. Add missing xsk_buff_free() call to the routine that is supposed to clean the entries that are left in the ring so that these buffers in the umem can be used by other sockets. Also, only go through the space that is actually left to be cleaned instead of a whole ring.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 2d4238f5569722197612656163d824098208519c before ad6d20da2cfbe14b7b1200d15f39e65988b0b9e8, from 2d4238f5569722197612656163d824098208519c before afe8a3ba85ec2a6b6849367e25c06a2f8e0ddd05, 5.5 Not affected: before 5.5, from 5.15.12 up to 5.15.*, from 5.16 up to * | CVE List |
| linux linux_kernel | from 5.5 before 5.15.12, 5.16 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: ice: xsk: return xsk buffers back to pool when cleaning the ring Currently we only NULL the xdp_buff pointer in the internal SW ring but we never give it back to the xsk buffer pool. This means that buffers can be leaked out of the buff pool and never be used again. Add missing xsk_buff_free() call to the routine that is supposed to clean the entries that are left in the ring so that these buffers in the umem can be used by other sockets. Also, only go through the space that is actually left to be cleaned instead of a whole ring.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ice: xsk: devuelve los buffers xsk al grupo al limpiar el anillo. Actualmente solo hacemos NULL en el puntero xdp_buff en el anillo SW interno, pero nunca lo devolvemos al grupo de buffers xsk. Esto significa que los buffers se pueden filtrar fuera del grupo de buffers y no volver a usarse nunca más. Agregue la llamada xsk_buff_free() faltante a la rutina que se supone que limpia las entradas que quedan en el anillo para que otros sockets puedan usar estos buffers en el umem. Además, pase solo por el espacio que realmente queda por limpiar en lugar de por un anillo completo.
References
| https://git.kernel.org/stable/c/ad6d20da2cfbe14b7b1200d15f39e65988b0b9e8 | exploit, mailing-list, patch | |
| https://git.kernel.org/stable/c/afe8a3ba85ec2a6b6849367e25c06a2f8e0ddd05 | exploit, mailing-list, patch | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47105 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47105 changed 2026-06-17 | Public domain |