{
  "id": "CVE-2025-38226",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38226",
  "published_at": "2025-07-04T13:37:40.977Z",
  "title": "media: vivid: Change the siize of the composing",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vivid: Change the siize of the composing\n\nsyzkaller found a bug:\n\nBUG: KASAN: vmalloc-out-of-bounds in tpg_fill_plane_pattern drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2608 [inline]\nBUG: KASAN: vmalloc-out-of-bounds in tpg_fill_plane_buffer+0x1a9c/0x5af0 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2705\nWrite of size 1440 at addr ffffc9000d0ffda0 by task vivid-000-vid-c/5304\n\nCPU: 0 UID: 0 PID: 5304 Comm: vivid-000-vid-c Not tainted 6.14.0-rc2-syzkaller-00039-g09fbf3d50205 #0\nHardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014\n\nCall Trace:\n \u003cTASK\u003e\n __dump_stack lib/dump_stack.c:94 [inline]\n dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120\n print_address_description mm/kasan/report.c:378 [inline]\n print_report+0x169/0x550 mm/kasan/report.c:489\n kasan_report+0x143/0x180 mm/kasan/report.c:602\n kasan_check_range+0x282/0x290 mm/kasan/generic.c:189\n __asan_memcpy+0x40/0x70 mm/kasan/shadow.c:106\n tpg_fill_plane_pattern drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2608 [inline]\n tpg_fill_plane_buffer+0x1a9c/0x5af0 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2705\n vivid_fillbuff drivers/media/test-drivers/vivid/vivid-kthread-cap.c:470 [inline]\n vivid_thread_vid_cap_tick+0xf8e/0x60d0 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:629\n vivid_thread_vid_cap+0x8aa/0xf30 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:767\n kthread+0x7a9/0x920 kernel/kthread.c:464\n ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148\n ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244\n \u003c/TASK\u003e\n\nThe composition size cannot be larger than the size of fmt_cap_rect.\nSo execute v4l2_rect_map_inside() even if has_compose_cap == 0.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 54f259906039dbfe46c550011409fa16f72370f6, \u003c 57597d8db5bbda618ba2145b7e8a7e6f01b6a27e",
          "\u003e= f9d19f3a044ca651b0be52a4bf951ffe74259b9f, \u003c 635cea4f44c1ddae208666772c164eab5a6bce39",
          "\u003e= ab54081a2843aefb837812fac5488cc8f1696142, \u003c 89b5ab822bf69867c3951dd0eb34b0314c38966b",
          "\u003e= 2f558c5208b0f70c8140e08ce09fcc84da48e789, \u003c 5d89aa42534723400fefd46e26e053b9c382b4ee",
          "\u003e= 94a7ad9283464b75b12516c5512541d467cefcf8, \u003c f6b1b0f8ba0b61d8b511df5649d57235f230c135",
          "\u003e= 94a7ad9283464b75b12516c5512541d467cefcf8, \u003c 00da1c767a6567e56f23dda586847586868ac064",
          "\u003e= 94a7ad9283464b75b12516c5512541d467cefcf8, \u003c c56398885716d97ee9bcadb2bc9663a8c1757a34",
          "\u003e= 94a7ad9283464b75b12516c5512541d467cefcf8, \u003c f83ac8d30c43fd902af7c84c480f216157b60ef0",
          "8c0ee15d9a102c732d0745566d254040085d5663",
          "5edc3604151919da8da0fb092b71d7dce07d848a",
          "9c7fba9503b826f0c061d136f8f0c9f953ed18b9",
          "ccb5392c4fea0e7d9f7ab35567e839d74cb3998b",
          "\u003e= 5.4.229, \u003c 5.4.296",
          "\u003e= 5.10.163, \u003c 5.10.239",
          "\u003e= 5.15.86, \u003c 5.15.186",
          "\u003e= 6.1.2, \u003c 6.1.142",
          "\u003e= 4.9.337, \u003c 4.10",
          "\u003e= 4.14.303, \u003c 4.15",
          "\u003e= 4.19.270, \u003c 4.20",
          "\u003e= 6.0.16, \u003c 6.1"
        ],
        "fixed_in": [
          "57597d8db5bbda618ba2145b7e8a7e6f01b6a27e",
          "635cea4f44c1ddae208666772c164eab5a6bce39",
          "89b5ab822bf69867c3951dd0eb34b0314c38966b",
          "5d89aa42534723400fefd46e26e053b9c382b4ee",
          "f6b1b0f8ba0b61d8b511df5649d57235f230c135",
          "00da1c767a6567e56f23dda586847586868ac064",
          "c56398885716d97ee9bcadb2bc9663a8c1757a34",
          "f83ac8d30c43fd902af7c84c480f216157b60ef0",
          "5.4.296",
          "5.10.239",
          "5.15.186",
          "6.1.142",
          "4.10",
          "4.15",
          "4.20",
          "6.1"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.2"
        ],
        "fixed_in": [
          "0",
          "5.4.296",
          "5.10.239",
          "5.15.186",
          "6.1.142",
          "6.6.95",
          "6.12.35",
          "6.15.4",
          "6.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 57597d8db5bbda618ba2145b7e8a7e6f01b6a27e or 635cea4f44c1ddae208666772c164eab5a6bce39 or 89b5ab822bf69867c3951dd0eb34b0314c38966b or 5d89aa42534723400fefd46e26e053b9c382b4ee or f6b1b0f8ba0b61d8b511df5649d57235f230c135 or 00da1c767a6567e56f23dda586847586868ac064 or c56398885716d97ee9bcadb2bc9663a8c1757a34 or f83ac8d30c43fd902af7c84c480f216157b60ef0 or 5.4.296 or 5.10.239 or 5.15.186 or 6.1.142 or 4.10 or 4.15 or 4.20 or 6.1 or later.",
      "Upgrade Linux to 0 or 5.4.296 or 5.10.239 or 5.15.186 or 6.1.142 or 6.6.95 or 6.12.35 or 6.15.4 or 6.16 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
