media: venus: fix use after free bug in venus_remove due to race condition (Linux Linux)

CVE-2024-49981
HIGH 7.8

En bref

Source
NVD
EPSS
EPSS 0.19 % · centile 9 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: media: venus: fix use after free bug in venus_remove due to race condition in venus_probe, core->work is bound with venus_sys_error_handler, which is used to handle error. The code use core->sys_err_done to make sync work. The core->work is started in venus_event_notify. If we call venus_remove, there might be an unfished work. The possible sequence is as follows: CPU0 CPU1 |venus_sys_error_handler venus_remove | hfi_destroy | venus_hfi_destroy | kfree(hdev); | |hfi_reinit |venus_hfi_queues_reinit |//use hdev Fix it by canceling the work in venus_remove.

Faiblesses (CWE)

  • CWE-362 — Situation de compétition
  • CWE-416 — Utilisation après libération

Références

Scores

VersionScoreVecteurÉvalué par
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)
CVSS 3.1HIGH 7.0CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected af2c3834c8ca7cc65d15592ac671933df8848115 < 5098b9e6377577fe13d03e1d8914930f014a3314 ; affected af2c3834c8ca7cc65d15592ac671933df8848115 < 63bbe26471ebdcc3c20bb4cc3950d666279ad658 ; affected af2c3834c8ca7cc65d15592ac671933df8848115 < 60b6968341a6dd5353554f3e72db554693a128a5 ; affected af2c3834c8ca7cc65d15592ac671933df8848115 < bf6be32e2d39f6301ff1831e249d32a8744ab28a ; affected af2c3834c8ca7cc65d15592ac671933df8848115 < 2a541fcc0bd2b05a458e9613376df1289ec11621 ; affected af2c3834c8ca7cc65d15592ac671933df8848115 < b0686aedc5f1343442d044bd64eeac7e7a391f4e
Linux · Linuxaffected 4.13 ; unaffected 0 < 4.13 ; unaffected 4.19.323 ≤ 4.19.* ; unaffected 5.4.285 ≤ 5.4.* ; unaffected 5.10.227 ≤ 5.10.* ; unaffected 5.15.168 ≤ 5.15.*

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