caif_virtio: fix wrong pointer check in cfv_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0d2e1a2926b1839a4b74519e660739b2566c9386 · < 56cddf71cce3b15b078e937fadab29962b6f6643| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
caif_virtio: fix wrong pointer check in cfv_probe()
del_vqs() frees virtqueues, therefore cfv->vq_tx pointer should be checked for NULL before calling it, not cfv->vdev. Also the current implementation is redundant because the pointer cfv->vdev is dereferenced before it is checked for NULL.
Fix this by checking cfv->vq_tx for NULL instead of cfv->vdev before calling del_vqs().
From the CVE record · Linux
The Linux kernel’s caif_virtio cfv_probe() checks the wrong pointer before calling del_vqs(), which frees virtqueues. The input does not establish how an attacker could trigger this issue or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their kernel includes the affected caif_virtio code; affected versions are not specified.