caif_virtio: fix wrong pointer check in cfv_probe() (Linux Linux)

CVE-2025-21904
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.23 % · percentile 14 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 0d2e1a2926b1839a4b74519e660739b2566c9386 < 990fff6980d0c1693d60a812f58dbf93eab0473f ; affected 0d2e1a2926b1839a4b74519e660739b2566c9386 < 7b5fe58959822e6cfa884327cabba6be3b01883d ; affected 0d2e1a2926b1839a4b74519e660739b2566c9386 < 8e4e08ca4cc634b337bb74bc9a70758fdeda0bcb ; affected 0d2e1a2926b1839a4b74519e660739b2566c9386 < 29e0cd296c87240278e2f7ea4cf3f496b60c03af ; affected 0d2e1a2926b1839a4b74519e660739b2566c9386 < 90d302619ee7ce5ed0c69c29c290bdccfde66418 ; affected 0d2e1a2926b1839a4b74519e660739b2566c9386 < 56cddf71cce3b15b078e937fadab29962b6f6643
Linux · Linuxaffected 3.10 ; unaffected 0 < 3.10 ; unaffected 5.4.291 ≤ 5.4.* ; unaffected 5.10.235 ≤ 5.10.* ; unaffected 5.15.179 ≤ 5.15.* ; unaffected 6.1.131 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD