{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-80584",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-80584"
  ],
  "published": "2026-08-26T14:37:59Z",
  "summary": "s390/qeth: validate user buffer length in SNMP and ARP query ioctls",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ns390/qeth: validate user buffer length in SNMP and ARP query ioctls\n\nqeth_snmp_command() and qeth_l3_arp_query() allocate a buffer sized by\na user-supplied length (udata_len) without checking a lower bound, then\nset udata_offset to a fixed non-zero value and pass both to a reply\ncallback. The callback bounds-checks the copy with\n\n        if ((udata_len - udata_offset) < len)\n\nBoth fields are u32, so a udata_len smaller than udata_offset makes the\nsubtraction wrap and the check pass, and the following memcpy() writes\npast the allocation. A udata_len of 0 also yields ZERO_SIZE_PTR from\nkzalloc(), which the existing NULL check does not catch.\n\nReject buffers smaller than udata_offset before allocating, so the\ncallback subtraction can no longer underflow.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/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.184",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-80584"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/9d00eeb2d27f4cc817c5e408760226d43f811ec6"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/46443eaddebd84c51940857b11787229be169dec"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/91935843f9396a9e45253e2c0d4337ca1371754b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/cc423f4105fe145b33e1d7cad34245a798358f73"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3083818e67bcd656965797fbac9a3d6c1d44f78a"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a3083647747942ea32faf14560d6397ff3068046"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/75fb3151513d7d9f77a8f9545418279b119c06b8"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d141f087b1af656f055d7c5793a3e87817ba0bbe"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-27T05:18:36Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 8.4,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - Exploitation requires a local ioctl(2) on a qeth netdev (SIOC_QETH_ADP_SET_SNMP_CONTROL or SIOC_QETH_ARP_QUERY_INFO) via socket()->dev_ioctl()->dev_siocdevprivate(); no remote packet or network protocol handler reaches these code paths.\nAC:L - The attacker fully controls udata_len in the ioctl argument; values below the fixed udata_offset (16 for SNMP, 6 for ARP) deterministically underflow the u32 bounds check and cause memcpy() past the kmalloc allocation without races or uncontrollable memory layout.\nPR:N - On affected kernels before CVE-2026-74467, SIOC_QETH_ADP_SET_SNMP_CONTROL had no CAP_NET_ADMIN gate and dev_ioctl() performs no capability check for SIOCDEVPRIVATE, so any unprivileged local user on an IBM Z/LinuxONE LPAR with a qeth interface can reach the overflow.\nUI:N - Exploitation requires only the attacker opening a socket and issuing the crafted ioctl against a qeth interface; no victim login, mount, or other interactive action is needed on a shared mainframe guest.\nS:U - Impact is kernel heap corruption and crash within the local LPAR/kernel security boundary on IBM Z; this does not cross a VM guest-to-host, container, or IOMMU security boundary.\nC:H - The unchecked memcpy() performs a kernel heap out-of-bounds write past a user-sized kmalloc buffer, corrupting adjacent slab objects; per CNA guidance, memory corruption exploitable for information disclosure warrants High confidentiality impact.\nI:H - Integer underflow bypasses the bounds check and memcpy() writes OSA SNMP/ARP response data past the kmalloc allocation end, providing a kernel heap overflow primitive suitable for adjacent-object corruption and privilege escalation.\nA:H - udata_len=0 yields ZERO_SIZE_PTR from kzalloc() (not caught by the NULL check) and memcpy() writes to a fixed low kernel address causing a CPU fault; undersized non-zero lengths corrupt the heap and can trigger kernel oops or panic."
    }
  }
}
