CVE-2021-47224

In the Linux kernel, the following vulnerability has been resolved: net: ll_temac: Make sure to free skb when it is completely used With the skb pointer piggy-backed on the TX BD, we have a simple and efficient way to free the skb buffer when the frame has been transmitted. But in order to avoid freeing the skb while there are still fragments from the skb in use, we need to piggy-back on the TX BD of the skb, not the first. Without this, we are doing use-after-free on the DMA side, when the first BD of a multi TX BD packet is seen as completed in xmit_done, and the remaining BDs are still being processed.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc6:*:*:*:*:*:*

History

04 Apr 2025, 14:32

Type Values Removed Values Added
First Time Linux linux Kernel
Linux
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc4:*:*:*:*:*:*
CWE CWE-416
References () https://git.kernel.org/stable/c/019ab7d044d0ebf97e1236bb8935b7809be92358 - () https://git.kernel.org/stable/c/019ab7d044d0ebf97e1236bb8935b7809be92358 - Patch
References () https://git.kernel.org/stable/c/6aa32217a9a446275440ee8724b1ecaf1838df47 - () https://git.kernel.org/stable/c/6aa32217a9a446275440ee8724b1ecaf1838df47 - Patch
References () https://git.kernel.org/stable/c/6d120ab4dc39a543c6b63361e1d0541c382900a3 - () https://git.kernel.org/stable/c/6d120ab4dc39a543c6b63361e1d0541c382900a3 - Patch
References () https://git.kernel.org/stable/c/e8afe05bd359ebe12a61dbdc94c06c00ea3e8d4b - () https://git.kernel.org/stable/c/e8afe05bd359ebe12a61dbdc94c06c00ea3e8d4b - Patch

21 Nov 2024, 06:35

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/019ab7d044d0ebf97e1236bb8935b7809be92358 - () https://git.kernel.org/stable/c/019ab7d044d0ebf97e1236bb8935b7809be92358 -
References () https://git.kernel.org/stable/c/6aa32217a9a446275440ee8724b1ecaf1838df47 - () https://git.kernel.org/stable/c/6aa32217a9a446275440ee8724b1ecaf1838df47 -
References () https://git.kernel.org/stable/c/6d120ab4dc39a543c6b63361e1d0541c382900a3 - () https://git.kernel.org/stable/c/6d120ab4dc39a543c6b63361e1d0541c382900a3 -
References () https://git.kernel.org/stable/c/e8afe05bd359ebe12a61dbdc94c06c00ea3e8d4b - () https://git.kernel.org/stable/c/e8afe05bd359ebe12a61dbdc94c06c00ea3e8d4b -

04 Nov 2024, 21:35

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux se ha resuelto la siguiente vulnerabilidad: net:ll_temac: Asegúrate de liberar skb cuando esté completamente utilizado. Con el puntero skb acoplado en la BD TX, tenemos una forma sencilla y eficaz de liberar el buffer skb. cuando la trama ha sido transmitida. Pero para evitar liberar el skb mientras todavía hay fragmentos del skb en uso, debemos aprovechar el BD TX del skb, no el primero. Sin esto, estamos haciendo use after free en el lado DMA, cuando el primer BD de un paquete BD de transmisión múltiple se considera completado en xmit_done y los BD restantes todavía se están procesando.
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 6.2

21 May 2024, 15:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-05-21 15:15

Updated : 2025-04-04 14:32


NVD link : CVE-2021-47224

Mitre link : CVE-2021-47224

CVE.ORG link : CVE-2021-47224


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-416

Use After Free