CVE-2025-21904

caif_virtio: fix wrong pointer check in cfv_probe()

State
Published
Severity
5.5 Medium
Published
Apr 1, 2025
Updated
May 11, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 0d2e1a2926b1839a4b74519e660739b2566c9386 to before 990fff6980d0c1693d60a812f58dbf93eab0473fAffected
  • 0d2e1a2926b1839a4b74519e660739b2566c9386 to before 7b5fe58959822e6cfa884327cabba6be3b01883dAffected
  • 0d2e1a2926b1839a4b74519e660739b2566c9386 to before 8e4e08ca4cc634b337bb74bc9a70758fdeda0bcbAffected
  • 0d2e1a2926b1839a4b74519e660739b2566c9386 to before 29e0cd296c87240278e2f7ea4cf3f496b60c03afAffected
  • 0d2e1a2926b1839a4b74519e660739b2566c9386 to before 90d302619ee7ce5ed0c69c29c290bdccfde66418Affected
  • 0d2e1a2926b1839a4b74519e660739b2566c9386 to before 56cddf71cce3b15b078e937fadab29962b6f6643Affected
  • 0d2e1a2926b1839a4b74519e660739b2566c9386 to before 597c27e5f04cb50e56cc9aeda75d3e42b6b89c3eAffected
  • 0d2e1a2926b1839a4b74519e660739b2566c9386 to before a466fd7e9fafd975949e5945e2f70c33a94b1a70Affected
LinuxLinux
  • 3.10Affected
  • before 3.10Not affected
  • 5.4.291 through 5.4.*Not affected
  • 5.10.235 through 5.10.*Not affected
  • 5.15.179 through 5.15.*Not affected
  • 6.1.131 through 6.1.*Not affected
  • 6.6.83 through 6.6.*Not affected
  • 6.12.19 through 6.12.*Not affected
  • 6.13.7 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.