CVE-2025-21904

caif_virtio: fix wrong pointer check in cfv_probe()

MEDIUM
5.5
CVSS Score
Published: April 1, 2025 at 03:40 PM UTC
Updated: June 17, 2026 at 08:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.10 ≤ v < 5.10.2353.10 ≤ v < 5.15.1793.10 ≤ v < 5.4.2913.10 ≤ v < 6.1.1313.10 ≤ v < 6.12.193.10 ≤ v < 6.13.73.10 ≤ v < 6.143.10 ≤ v < 6.6.835.11 ≤ v < 5.15.1795.16 ≤ v < 6.1.1315.5 ≤ v < 5.10.2356.13 ≤ v < 6.13.76.2 ≤ v < 6.6.836.7 ≤ v < 6.12.190d2e1a2926b1839a4b74519e660739b2566c93866.14 rc16.14 rc26.14 rc36.14 rc46.14 rc5
Vendor states this is fixed in 29e0cd296c87240278e2f7ea4cf3f496b60c03af (fixed)
Vendor states this is fixed in 56cddf71cce3b15b078e937fadab29962b6f6643 (fixed)
Vendor states this is fixed in 597c27e5f04cb50e56cc9aeda75d3e42b6b89c3e (fixed)
Vendor states this is fixed in 7b5fe58959822e6cfa884327cabba6be3b01883d (fixed)
Vendor states this is fixed in 8e4e08ca4cc634b337bb74bc9a70758fdeda0bcb (fixed)
Vendor states this is fixed in 90d302619ee7ce5ed0c69c29c290bdccfde66418 (fixed)
Vendor states this is fixed in 990fff6980d0c1693d60a812f58dbf93eab0473f (fixed)
Vendor states this is fixed in a466fd7e9fafd975949e5945e2f70c33a94b1a70 (fixed)
Vendor states this is fixed in 3.10 (unaffected)
Vendor states this is fixed in 5.10.235 (unaffected)
Vendor states this is fixed in 5.15.179 (unaffected)
Vendor states this is fixed in 5.4.291 (unaffected)
Vendor states this is fixed in 6.1.131 (unaffected)
Vendor states this is fixed in 6.12.19 (unaffected)
Vendor states this is fixed in 6.13.7 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.83 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/29e0cd296c87240278e2f7ea4cf3f496b60c03af
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/56cddf71cce3b15b078e937fadab29962b6f6643
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/597c27e5f04cb50e56cc9aeda75d3e42b6b89c3e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7b5fe58959822e6cfa884327cabba6be3b01883d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8e4e08ca4cc634b337bb74bc9a70758fdeda0bcb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/90d302619ee7ce5ed0c69c29c290bdccfde66418
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/990fff6980d0c1693d60a812f58dbf93eab0473f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a466fd7e9fafd975949e5945e2f70c33a94b1a70

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card