CVE-2021-46973
JSON

7.8high

net: qrtr: Avoid potential use after free in MHI send

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net: qrtr: Avoid potential use after free in MHI send It is possible that the MHI ul_callback will be invoked immediately following the queueing of the skb for transmission, leading to the callback decrementing the refcount of the associated sk and freeing the skb. As such the dereference of skb and the increment of the sk refcount must happen before the skb is queued, to avoid the skb to be used after free and potentially the sk to drop its last refcount..

Affected

Product or packageVersionsReported by
Linux Linuxfrom 6e728f321393b1fce9e1c2c3e55f9f7c15991321 before 48ec949ac979b4b42d740f67b6177797af834f80, from 6e728f321393b1fce9e1c2c3e55f9f7c15991321 before ea474054c2cc6e1284604b21361f475c7cc8c0a0, from 6e728f321393b1fce9e1c2c3e55f9f7c15991321 before 03c649dee8b1eb5600212a249542a70f47a5ab40, from 6e728f321393b1fce9e1c2c3e55f9f7c15991321 before 47a017f33943278570c072bc71681809b2567b3a, 5.8
Not affected: before 5.8, from 5.10.35 up to 5.10.*, from 5.11.19 up to 5.11.*, from 5.12.2 up to 5.12.*, from 5.13 up to *
CVE List
linux linux_kernelfrom 6e728f321393 before 48ec949ac979, from 6e728f321393 before ea474054c2cc, from 6e728f321393 up to 03c649dee8b1, from 6e728f321393 before 47a017f33943, 5.8, from 5.8 up to 5.10.35, from 5.11 up to 5.11.19, from 5.12 up to 5.12.2
Not affected: before 5.8, from 5.10.35 up to 5.11, from 5.11.19 up to 5.12, from 5.12.2 up to 5.13, from 5.13 up to *
CVE List, NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net: qrtr: Avoid potential use after free in MHI send It is possible that the MHI ul_callback will be invoked immediately following the queueing of the skb for transmission, leading to the callback decrementing the refcount of the associated sk and freeing the skb. As such the dereference of skb and the increment of the sk refcount must happen before the skb is queued, to avoid the skb to be used after free and potentially the sk to drop its last refcount..

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: qrtr: Evite el potencial use after free en el envío MHI. Es posible que MHI ul_callback se invoque inmediatamente después de la puesta en cola del skb para la transmisión, lo que provocará que la devolución de llamada disminuya el recuento del sk asociado y liberación del skb. Como tal, la desreferencia de skb y el incremento del refcount de sk deben ocurrir antes de que el skb se ponga en cola, para evitar que el skb haga use after free y potencialmente que el sk elimine su último refcount.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-46973 changed 2026-08-05CVE Terms of Use
NVDCVE-2021-46973 changed 2026-08-04Public domain