ghsa-5frw-42jx-47v6
Vulnerability from github
Published
2024-10-21 18:30
Modified
2024-11-08 18:30
Details

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.

Show details on source website


{
   affected: [],
   aliases: [
      "CVE-2024-49981",
   ],
   database_specific: {
      cwe_ids: [
         "CWE-362",
      ],
      github_reviewed: false,
      github_reviewed_at: null,
      nvd_published_at: "2024-10-21T18:15:18Z",
      severity: "HIGH",
   },
   details: "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: venus: fix use after free bug in venus_remove due to race condition\n\nin venus_probe, core->work is bound with venus_sys_error_handler, which is\nused to handle error. The code use core->sys_err_done to make sync work.\nThe core->work is started in venus_event_notify.\n\nIf we call venus_remove, there might be an unfished work. The possible\nsequence is as follows:\n\nCPU0                  CPU1\n\n                     |venus_sys_error_handler\nvenus_remove         |\nhfi_destroy\t \t\t |\nvenus_hfi_destroy\t |\nkfree(hdev);\t     |\n                     |hfi_reinit\n\t\t\t\t\t |venus_hfi_queues_reinit\n                     |//use hdev\n\nFix it by canceling the work in venus_remove.",
   id: "GHSA-5frw-42jx-47v6",
   modified: "2024-11-08T18:30:46Z",
   published: "2024-10-21T18:30:59Z",
   references: [
      {
         type: "ADVISORY",
         url: "https://nvd.nist.gov/vuln/detail/CVE-2024-49981",
      },
      {
         type: "WEB",
         url: "https://git.kernel.org/stable/c/10941d4f99a5a34999121b314afcd9c0a1c14f15",
      },
      {
         type: "WEB",
         url: "https://git.kernel.org/stable/c/2a541fcc0bd2b05a458e9613376df1289ec11621",
      },
      {
         type: "WEB",
         url: "https://git.kernel.org/stable/c/5098b9e6377577fe13d03e1d8914930f014a3314",
      },
      {
         type: "WEB",
         url: "https://git.kernel.org/stable/c/60b6968341a6dd5353554f3e72db554693a128a5",
      },
      {
         type: "WEB",
         url: "https://git.kernel.org/stable/c/63bbe26471ebdcc3c20bb4cc3950d666279ad658",
      },
      {
         type: "WEB",
         url: "https://git.kernel.org/stable/c/b0686aedc5f1343442d044bd64eeac7e7a391f4e",
      },
      {
         type: "WEB",
         url: "https://git.kernel.org/stable/c/bf6be32e2d39f6301ff1831e249d32a8744ab28a",
      },
      {
         type: "WEB",
         url: "https://git.kernel.org/stable/c/c5a85ed88e043474161bbfe54002c89c1cb50ee2",
      },
      {
         type: "WEB",
         url: "https://git.kernel.org/stable/c/d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c",
      },
   ],
   schema_version: "1.4.0",
   severity: [
      {
         score: "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
         type: "CVSS_V3",
      },
   ],
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.