{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-43256",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-43256"
  ],
  "published": "2026-05-06T11:29:17Z",
  "summary": "media: qcom: camss: vfe: Fix out-of-bounds access in vfe_isr_reg_update()",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: qcom: camss: vfe: Fix out-of-bounds access in vfe_isr_reg_update()\n\nvfe_isr() iterates using MSM_VFE_IMAGE_MASTERS_NUM(7) as the loop\nbound and passes the index to vfe_isr_reg_update(). However,\nvfe->line[] array is defined with VFE_LINE_NUM_MAX(4):\n\n    struct vfe_line line[VFE_LINE_NUM_MAX];\n\nWhen index is 4, 5, 6, the access to vfe->line[line_id] exceeds\nthe array bounds and resulting in out-of-bounds memory access.\n\nFix this by using separate loops for output lines and write masters.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.167",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-43256"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e6cbf765686fb6c1d8f2530b3daf6c66efc92f5d"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/0c074e80921fd18984b75836730d76c768c84f65"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/1b103307df6d461a0731be25aca69ad0335b0933"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/fade67c88870f497a13ed450ba01f7236c92dd9b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e7a38ecda2498e7ce998793ac2a46ca47317635d"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d965919af524e68cb2ab1a685872050ad2ee933d"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T13:16:28Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The vulnerable path is reached through local V4L2/media device use, where a process starts CAMSS camera streaming and the hardware interrupt enters vfe_isr(). It is not directly network-facing and does not require physical hotplug beyond the affected built-in camera hardware.\nAC:L - On SM8250 VFE-lite, ordinary bus completion bits overlap the erroneous RDI_RUP checks for indices 4-6, so normal streaming interrupts can pass out-of-bounds line IDs. No race or condition outside the attacker's control is required once streaming is active.\nPR:L - The driver has no capable() or administrator-only check on this path; access is governed by V4L2 device-node or camera-service permissions. This is basic local privilege, not real root in the init namespace.\nUI:N - A malicious local process with access to the camera device can configure buffers and start streaming itself. No separate victim action is required.\nS:U - The impact remains within the kernel/CAMSS security authority. There is no guest-to-host, IOMMU, or other cross-scope boundary bypass.\nC:H - The bug performs out-of-bounds reads from kernel memory beyond vfe->line[]. Because this is repeatable kernel memory corruption, high confidentiality impact is defensible.\nI:H - If the out-of-bounds wait_reg_update field is nonzero, the ISR writes to out-of-bounds memory and calls complete() on an out-of-bounds completion object. This can corrupt adjacent kernel objects, so integrity impact is high.\nA:H - The out-of-bounds access and possible complete() on invalid memory occur in interrupt context and can cause an oops or panic. The trigger can be repeated by restarting or continuing camera streaming."
    }
  }
}
