{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2023-52669",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2023-52669"
  ],
  "published": "2024-05-17T14:10:12Z",
  "summary": "crypto: s390/aes - Fix buffer overread in CTR mode",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: s390/aes - Fix buffer overread in CTR mode\n\nWhen processing the last block, the s390 ctr code will always read\na whole block, even if there isn't a whole block of data left.  Fix\nthis by using the actual length left and copy it into a buffer first\nfor processing.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/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-52669"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/cd51e26a3b89706beec64f2d8296cfb1c34e0c79"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a7f580cdb42ec3d53bbb7c4e4335a98423703285"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/dbc9a791a70ea47be9f2acf251700fe254a2ab23"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d68ac38895e84446848b7647ab9458d54cacba3e"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e78f1a43e72daf77705ad5b9946de66fc708b874"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d07f951903fa9922c375b8ab1ce81b18a0034e3b"
    }
  ],
  "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": 8.2,
      "cvss_v3_severity": "High",
      "scenario": "AV:N - rfc3686(ctr(aes)) is an XFRM/ESP transform that resolves to ctr-aes-s390; on an IPsec gateway, attacker-controlled forwarded packet lengths hit authenc encrypt which calls crypto_skcipher_encrypt before ICV generation, so the vulnerable CTR path processes remote traffic.\nAC:L - The attacker reliably triggers the partial final-block path by choosing a cryptlen that is not a multiple of AES_BLOCK_SIZE, and can place that remainder near a page boundary via packet or AF_ALG buffer sizing with no uncontrollable race.\nPR:N - Outbound ESP encryption on a configured IPsec/XFRM path runs on forwarded packets without a local account or capability; SA/policy setup is deployment configuration, not attacker privilege.\nUI:N - No victim interaction is required; crafted packet lengths or local AF_ALG send/recv sequences alone exercise the vulnerable final-block read.\nS:U - Impact stays inside the same kernel authority (crypto/XFRM on the host) and does not demonstrate VM escape, IOMMU bypass, or another cross-scope boundary.\nC:L - The bug over-reads up to 15 bytes of adjacent source memory into the KMCTR path; that is a strictly bounded OOB read (not arbitrary), and the truncated memcpy to dst does not return those bytes, so confidentiality is limited rather than high.\nI:N - This is a source overread only\u2014destination writes are already limited to nbytes\u2014and CTR output for the valid bytes is not an integrity-corrupting write primitive.\nA:H - Reading a full AES block when nbytes is smaller can touch the next page beyond the scatterwalk mapping (or a guard/KFENCE page), causing a kernel fault/oops and denial of service."
    }
  }
}
