Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.323, 5.10.227, 5.15.168, 5.4.285, 6.1.113, 6.10.14, 6.11.3, 6.6.55
CVEs
CVE-2024-49981
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 08:46 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 21 Oct 2024, 18:02 UTC

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.

osv:CVE-2024-49981

Kernel

Fixed versions: 4.19.323, 5.4.285, 5.10.227, 5.15.168, 6.1.113, 6.6.55, 6.10.14, 6.11.3

Complete source record
{
  "id": "90dc21a2ce2d2e28f77be128b35d198887f15c3af30bf3e28b56e834239ebb69",
  "url": "https://osv.dev/vulnerability/CVE-2024-49981",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "media: venus: fix use after free bug in venus_remove due to race condition",
    "summary": "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.",
    "evidence": "osv:CVE-2024-49981",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.323",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.285",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.227",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.168",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.113",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.55",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.10.14",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-49981",
      "aliases": [
        "CVE-2024-49981"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "af2c3834c8ca7cc65d15592ac671933df8848115"
                },
                {
                  "fixed": "5098b9e6377577fe13d03e1d8914930f014a3314"
                },
                {
                  "fixed": "63bbe26471ebdcc3c20bb4cc3950d666279ad658"
                },
                {
                  "fixed": "60b6968341a6dd5353554f3e72db554693a128a5"
                },
                {
                  "fixed": "bf6be32e2d39f6301ff1831e249d32a8744ab28a"
                },
                {
                  "fixed": "2a541fcc0bd2b05a458e9613376df1289ec11621"
                },
                {
                  "fixed": "b0686aedc5f1343442d044bd64eeac7e7a391f4e"
                },
                {
                  "fixed": "d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c"
                },
                {
                  "fixed": "10941d4f99a5a34999121b314afcd9c0a1c14f15"
                },
                {
                  "fixed": "c5a85ed88e043474161bbfe54002c89c1cb50ee2"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49981.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.13.0"
                },
                {
                  "fixed": "4.19.323"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.285"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.227"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.168"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.113"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.55"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.10.14"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.11.0"
                },
                {
                  "fixed": "6.11.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49981.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:34.337155993Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/10941d4f99a5a34999121b314afcd9c0a1c14f15",
        "https://git.kernel.org/stable/c/2a541fcc0bd2b05a458e9613376df1289ec11621",
        "https://git.kernel.org/stable/c/5098b9e6377577fe13d03e1d8914930f014a3314",
        "https://git.kernel.org/stable/c/60b6968341a6dd5353554f3e72db554693a128a5",
        "https://git.kernel.org/stable/c/63bbe26471ebdcc3c20bb4cc3950d666279ad658",
        "https://git.kernel.org/stable/c/b0686aedc5f1343442d044bd64eeac7e7a391f4e",
        "https://git.kernel.org/stable/c/bf6be32e2d39f6301ff1831e249d32a8744ab28a",
        "https://git.kernel.org/stable/c/c5a85ed88e043474161bbfe54002c89c1cb50ee2",
        "https://git.kernel.org/stable/c/d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c",
        "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49981.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-49981",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49981.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-49981",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 501250,
  "published_at": "2024-10-21T18:02:27.142+00:00"
}