{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2023-52614",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2023-52614"
  ],
  "published": "2024-03-18T10:15:21Z",
  "summary": "PM / devfreq: Fix buffer overflow in trans_stat_show",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nPM / devfreq: Fix buffer overflow in trans_stat_show\n\nFix buffer overflow in trans_stat_show().\n\nConvert simple snprintf to the more secure scnprintf with size of\nPAGE_SIZE.\n\nAdd condition checking if we are exceeding PAGE_SIZE and exit early from\nloop. Also add at the end a warning that we exceeded PAGE_SIZE and that\nstats is disabled.\n\nReturn -EFBIG in the case where we don't have enough space to write the\nfull transition table.\n\nAlso document in the ABI that this function can return -EFBIG error.",
  "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.76",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2023-52614"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/087de000e4f8c878c81d9dd3725f00a1d292980c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/796d3fad8c35ee9df9027899fb90ceaeb41b958f"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/8a7729cda2dd276d7a3994638038fb89035b6f2c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a979f56aa4b93579cf0e4265ae04d7e9300fd3e8"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/eaef4650fa2050147ca25fd7ee43bc0082e03c87"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/08e23d05fa6dc4fc13da0ccf09defdd4bbc92ff4"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T11:24:39Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - Triggered by reading /sys/class/devfreq/.../trans_stat via a local syscall/sysfs path; not reachable from the network stack or adjacent protocols.\nAC:L - An unprivileged attacker can reliably trigger the overflow with a simple read on platforms whose OPP/freq table is large enough (e.g. Tegra actmon with 21 states exceeds PAGE_SIZE); no race or uncontrolled victim state is required.\nPR:L - trans_stat is DEVICE_ATTR_RW (0644), so any unprivileged local user can open and read it; no capabilities or root are required for the vulnerable show path.\nUI:N - Exploitation requires only the attacker reading the sysfs attribute; no victim action is needed.\nS:U - Impact is kernel memory corruption/privilege escalation within the same OS security authority; it does not cross VM, IOMMU, or other scope boundaries.\nC:H - Out-of-bounds write past the PAGE_SIZE kvmalloc/sysfs buffer corrupts adjacent kernel heap memory and can be leveraged for information disclosure under the kernel CVSS guidance for memory-corruption bugs.\nI:H - Unbounded sprintf into the fixed PAGE_SIZE show buffer is a kernel heap out-of-bounds write, which is scored High for integrity and can enable control-flow hijacking.\nA:H - Heap corruption from the overflow can cause kernel oops/panic or unstable operation when adjacent objects are later used, so availability impact is High."
    }
  }
}
