CVE-2025-21904
JSON

5.5medium

caif_virtio: fix wrong pointer check in cfv_probe()

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.23% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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().

Affected

Product or packageVersionsReported by
Linux Linuxfrom 0d2e1a2926b1839a4b74519e660739b2566c9386 before 990fff6980d0c1693d60a812f58dbf93eab0473f, from 0d2e1a2926b1839a4b74519e660739b2566c9386 before 7b5fe58959822e6cfa884327cabba6be3b01883d, from 0d2e1a2926b1839a4b74519e660739b2566c9386 before 8e4e08ca4cc634b337bb74bc9a70758fdeda0bcb, from 0d2e1a2926b1839a4b74519e660739b2566c9386 before 29e0cd296c87240278e2f7ea4cf3f496b60c03af, from 0d2e1a2926b1839a4b74519e660739b2566c9386 before 90d302619ee7ce5ed0c69c29c290bdccfde66418, from 0d2e1a2926b1839a4b74519e660739b2566c9386 before 56cddf71cce3b15b078e937fadab29962b6f6643, from 0d2e1a2926b1839a4b74519e660739b2566c9386 before 597c27e5f04cb50e56cc9aeda75d3e42b6b89c3e, from 0d2e1a2926b1839a4b74519e660739b2566c9386 before a466fd7e9fafd975949e5945e2f70c33a94b1a70 and 1 more
Not affected: before 3.10, from 5.4.291 up to 5.4.*, from 5.10.235 up to 5.10.*, from 5.15.179 up to 5.15.*, from 6.1.131 up to 6.1.*, from 6.6.83 up to 6.6.*
CVE List
linux linux_kernelfrom 3.10 before 5.4.291, from 5.5 before 5.10.235, from 5.11 before 5.15.179, from 5.16 before 6.1.131, from 6.2 before 6.6.83, from 6.7 before 6.12.19, from 6.13 before 6.13.7, 6.14NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

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

What each source says

CVE List

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().

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: caif_virtio: se corrige una comprobación incorrecta del puntero en cfv_probe() del_vqs() libera colas virtuales. Por lo tanto, se debe comprobar si el puntero cfv->vq_tx es nulo antes de llamarlo, no cfv->vdev. Además, la implementación actual es redundante porque se desreferencia el puntero cfv->vdev antes de comprobar si es nulo. Para solucionar esto, compruebe si el puntero cfv->vq_tx es nulo en lugar de cfv->vdev antes de llamar a del_vqs().

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21904 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-21904 changed 2026-06-17Public domain