media: uvcvideo: Fix double free in error path (Linux Linux)

CVE-2024-57980
HIGH 7.8

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: media: uvcvideo: Fix double free in error path If the uvc_status_init() function fails to allocate the int_urb, it will free the dev->status pointer but doesn't reset the pointer to NULL. This results in the kfree() call in uvc_status_cleanup() trying to double-free the memory. Fix it by resetting the dev->status pointer to NULL after freeing it. Reviewed by: Ricardo Ribalda <ribalda@chromium.org>

Weaknesses (CWE)

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:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected a31a4055473bf0a7b2b06cb2262347200d0711e1 < d6e5ba2516c5bef87c1fcb8189b6f3cad7c64b2d ; affected a31a4055473bf0a7b2b06cb2262347200d0711e1 < 87522ef165e5b6de8ef98cc318f3335166a1512c ; affected a31a4055473bf0a7b2b06cb2262347200d0711e1 < 3ba8884a56a3eb97c22f0ce0e4dd410d4ca4c277 ; affected a31a4055473bf0a7b2b06cb2262347200d0711e1 < 9232719ac9ce4d5c213cebda23d72aec3e1c4c0d ; affected a31a4055473bf0a7b2b06cb2262347200d0711e1 < 6c36dcd662ec5276782838660f8533a7cb26be49 ; affected a31a4055473bf0a7b2b06cb2262347200d0711e1 < d1f8e69eec91d5a75ef079778a5d0151db2a7f22
Linux · Linuxaffected 2.6.28 ; unaffected 0 < 2.6.28 ; unaffected 5.4.291 ≤ 5.4.* ; unaffected 5.10.235 ≤ 5.10.* ; unaffected 5.15.179 ≤ 5.15.* ; unaffected 6.1.129 ≤ 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