net: qrtr: Avoid potential use after free in MHI send
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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..
From the CVE record · Linux
The Linux kernel's QRTR MHI send path can use an skb after it is freed if the MHI uplink callback runs immediately after the skb is queued for transmission. An attacker could potentially exploit this use-after-free, but the input does not specify how it could be triggered or whether access or user interaction is required.
Anyone running the Linux kernel should check their version; affected versions are not specified.