8.4

CVE-2021-46973

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

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..
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
LinuxLinux Kernel Version >= 5.8 <= 5.10.35
LinuxLinux Kernel Version >= 5.11 <= 5.11.19
LinuxLinux Kernel Version >= 5.12 <= 5.12.2
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.24% 0.143
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
134c704f-9b21-4f2e-91b3-4a467353bcc0 8.4 2.5 5.9
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE-416 Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.

https://git.kernel.org/stable/c/03c649dee8b1eb5600212a249542a70f47a5ab40
Patch
https://git.kernel.org/stable/c/47a017f33943278570c072bc71681809b2567b3a
Patch
https://git.kernel.org/stable/c/48ec949ac979b4b42d740f67b6177797af834f80
Patch
https://git.kernel.org/stable/c/ea474054c2cc6e1284604b21361f475c7cc8c0a0
Patch