# CVE-2025-21904: caif_virtio: fix wrong pointer check in cfv_probe()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2025-04-01T15:40:45.881Z
- Modified: 2026-06-17T08:44:34.383Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 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; 3.10 (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.*; from 6.12.19 up to 6.12.*; from 6.13.7 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 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.14

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/990fff6980d0c1693d60a812f58dbf93eab0473f> (patch)
- <https://git.kernel.org/stable/c/7b5fe58959822e6cfa884327cabba6be3b01883d> (patch)
- <https://git.kernel.org/stable/c/8e4e08ca4cc634b337bb74bc9a70758fdeda0bcb> (patch)
- <https://git.kernel.org/stable/c/29e0cd296c87240278e2f7ea4cf3f496b60c03af> (patch)
- <https://git.kernel.org/stable/c/90d302619ee7ce5ed0c69c29c290bdccfde66418> (patch)
- <https://git.kernel.org/stable/c/56cddf71cce3b15b078e937fadab29962b6f6643> (patch)
- <https://git.kernel.org/stable/c/597c27e5f04cb50e56cc9aeda75d3e42b6b89c3e> (patch)
- <https://git.kernel.org/stable/c/a466fd7e9fafd975949e5945e2f70c33a94b1a70> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Sources

- CVE List: [CVE-2025-21904](https://www.cve.org/CVERecord?id=CVE-2025-21904), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21904](https://nvd.nist.gov/vuln/detail/CVE-2025-21904), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21904 · Whole record: https://cve.day/CVE-2025-21904.json · Rebuilt by cve.day 2026-11-25T22:58:55.878Z
