ghsa-w3g9-f95x-pwmf
Vulnerability from github
Published
2025-12-24 15:30
Modified
2025-12-24 15:30
Details

In the Linux kernel, the following vulnerability has been resolved:

media: mtk-jpeg: Fix use after free bug due to uncanceled work

In mtk_jpeg_probe, &jpeg->job_timeout_work is bound with mtk_jpeg_job_timeout_work. Then mtk_jpeg_dec_device_run and mtk_jpeg_enc_device_run may be called to start the work. If we remove the module which will call mtk_jpeg_remove to make cleanup, there may be a unfinished work. The possible sequence is as follows, which will cause a typical UAF bug.

Fix it by canceling the work before cleanup in the mtk_jpeg_remove

CPU0 CPU1

                |mtk_jpeg_job_timeout_work

mtk_jpeg_remove | v4l2_m2m_release | kfree(m2m_dev); | | | v4l2_m2m_get_curr_priv | m2m_dev->curr_ctx //use

Show details on source website


{
  "affected": [],
  "aliases": [
    "CVE-2023-54103"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2025-12-24T13:16:12Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: mtk-jpeg: Fix use after free bug due to uncanceled work\n\nIn mtk_jpeg_probe, \u0026jpeg-\u003ejob_timeout_work is bound with\nmtk_jpeg_job_timeout_work. Then mtk_jpeg_dec_device_run\nand mtk_jpeg_enc_device_run may be called to start the\nwork.\nIf we remove the module which will call mtk_jpeg_remove\nto make cleanup, there may be a unfinished work. The\npossible sequence is as follows, which will cause a\ntypical UAF bug.\n\nFix it by canceling the work before cleanup in the mtk_jpeg_remove\n\nCPU0                  CPU1\n\n                    |mtk_jpeg_job_timeout_work\nmtk_jpeg_remove     |\n  v4l2_m2m_release  |\n    kfree(m2m_dev); |\n                    |\n                    | v4l2_m2m_get_curr_priv\n                    |   m2m_dev-\u003ecurr_ctx //use",
  "id": "GHSA-w3g9-f95x-pwmf",
  "modified": "2025-12-24T15:30:38Z",
  "published": "2025-12-24T15:30:37Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-54103"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2fc20f8bcc2b4d31c808a5320506c31aa2cf3834"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/715c0200b4809396998e562ce5cd0284e7314cc1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8977d9924843823f46696d7d9432ea4b2499ed14"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c677d7ae83141d390d1253abebafa49c962afb52"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d346a2ef6b1ebb77d740890cfaf8478c5b286380"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d56dbfe750a8f96789cc86a911864f663e63bc5d"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}


Log in or create an account to share your comment.




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.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • 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.


Loading…

Loading…