Skip to content
Heist/ feed
Back to feed
HighFix available

media: venus: fix use after free in vdec_close

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: media: venus: fix use after free in vdec_close There appears to be a possible use after free with vdec_close(). The firmware will add buffer release work to the work queue through HFI callbacks as a normal part of decoding. Randomly closing the decoder device from userspace during normal decoding can incur a read after free for inst. Fix it by cancelling the work in vdec_close.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.320, 5.10.224, 5.15.165, 5.4.282, 6.1.103, 6.10.3, 6.6.44
CVEs
CVE-2024-42313
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 07:02 UTC · Revision 1

Source evidence

media: venus: fix use after free in vdec_close

core-osv · Original source

Published 17 Aug 2024, 09:09 UTC

In the Linux kernel, the following vulnerability has been resolved: media: venus: fix use after free in vdec_close There appears to be a possible use after free with vdec_close(). The firmware will add buffer release work to the work queue through HFI callbacks as a normal part of decoding. Randomly closing the decoder device from userspace during normal decoding can incur a read after free for inst. Fix it by cancelling the work in vdec_close.

osv:CVE-2024-42313

Kernel

Fixed versions: 4.19.320, 5.4.282, 5.10.224, 5.15.165, 6.1.103, 6.6.44, 6.10.3

Complete source record
{
  "id": "94db3cbb6018717a6a7d464e9a22076bd28e68f747f61ade5c04d72d852222da",
  "url": "https://osv.dev/vulnerability/CVE-2024-42313",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "media: venus: fix use after free in vdec_close",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: media: venus: fix use after free in vdec_close There appears to be a possible use after free with vdec_close(). The firmware will add buffer release work to the work queue through HFI callbacks as a normal part of decoding. Randomly closing the decoder device from userspace during normal decoding can incur a read after free for inst. Fix it by cancelling the work in vdec_close.",
    "evidence": "osv:CVE-2024-42313",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.320",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.282",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.224",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.165",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.103",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.44",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.10.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-42313",
      "aliases": [
        "CVE-2024-42313"
      ],
      "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": "ad8cf035baf29467158e0550c7a42b7bb43d1db6"
                },
                {
                  "fixed": "72aff311194c8ceda934f24fd6f250b8827d7567"
                },
                {
                  "fixed": "4c9d235630d35db762b85a4149bbb0be9d504c36"
                },
                {
                  "fixed": "f8e9a63b982a8345470c225679af4ba86e4a7282"
                },
                {
                  "fixed": "da55685247f409bf7f976cc66ba2104df75d8dad"
                },
                {
                  "fixed": "66fa52edd32cdbb675f0803b3c4da10ea19b6635"
                },
                {
                  "fixed": "6a96041659e834dc0b172dda4b2df512d63920c2"
                },
                {
                  "fixed": "a0157b5aa34eb43ec4c5510f9c260bbb03be937e"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42313.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.13.0"
                },
                {
                  "fixed": "4.19.320"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.282"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.224"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.165"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.103"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.44"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.10.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42313.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.879136111Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/4c9d235630d35db762b85a4149bbb0be9d504c36",
        "https://git.kernel.org/stable/c/66fa52edd32cdbb675f0803b3c4da10ea19b6635",
        "https://git.kernel.org/stable/c/6a96041659e834dc0b172dda4b2df512d63920c2",
        "https://git.kernel.org/stable/c/72aff311194c8ceda934f24fd6f250b8827d7567",
        "https://git.kernel.org/stable/c/a0157b5aa34eb43ec4c5510f9c260bbb03be937e",
        "https://git.kernel.org/stable/c/ad8cf035baf29467158e0550c7a42b7bb43d1db6",
        "https://git.kernel.org/stable/c/da55685247f409bf7f976cc66ba2104df75d8dad",
        "https://git.kernel.org/stable/c/f8e9a63b982a8345470c225679af4ba86e4a7282",
        "https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html",
        "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42313.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-42313",
        "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/42xxx/CVE-2024-42313.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-42313",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493165,
  "published_at": "2024-08-17T09:09:17.334+00:00"
}