media: zoran: Avoid freeing a registered video_device twice (Linux Linux)

CVE-2026-89870
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 6 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

In the Linux kernel, the following vulnerability has been resolved: media: zoran: Avoid freeing a registered video_device twice zoran_init_video_device() installs zoran_vdev_release() as the video_device release callback through zoran_template. After video_register_device() succeeds, video_unregister_device() drops the registered video_device reference and the V4L2 core eventually invokes that release callback, which kfree()s the video_device. zoran_exit_video_devices() called video_unregister_device() and then kfree(zr->video_dev), so device teardown could free the same video_device twice. Remove the direct kfree() and clear the cached pointer after unregistering. The pre-registration failure path keeps its manual free because the video_device was not registered there. This issue was found by a static analysis checker and confirmed by manual source review.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected bd01629315ffd5b63da91d0bd529a77d30e55028 < 29792762e65d4eefbe75b6048c59763fd844191a ; affected ff3357bffd9fb78f59762d8955afc7382a279079 < 99277a387802eb6c1907c73f09d746908cc64913 ; affected 82e3a496eb56da0b9f29fdc5b63cedb3289e91de < 3ad6cf27505017a6794f5f96c31218c2291e951b ; affected 82e3a496eb56da0b9f29fdc5b63cedb3289e91de < c4acac8cdc005b2d14b6cef5e215d264212857f3 ; affected 82e3a496eb56da0b9f29fdc5b63cedb3289e91de < 4d99d8d0d895489064783601a516bd45812fa992 ; affected 82e3a496eb56da0b9f29fdc5b63cedb3289e91de < f1c4f3885df1f09bcab5296d86834d104f865e86
Linux · Linuxaffected 5.18 ; unaffected 0 < 5.18 ; unaffected 5.10.273 ≤ 5.10.* ; unaffected 5.15.224 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 6.6.*

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