{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-72406",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-72406"
  ],
  "published": "2026-08-15T06:04:33Z",
  "summary": "net: sungem: fix probe error cleanup",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: sungem: fix probe error cleanup\n\ngem_init_one() calls gem_remove_one() when register_netdev() fails.\ngem_remove_one() unregisters and frees resources owned by the net_device,\nincluding the DMA block, MMIO mapping, PCI regions, and the net_device\nitself. gem_init_one() then falls through to its own cleanup labels and\nfrees the same resources again.\n\nKeep the register_netdev() error path in gem_init_one(): clear drvdata so\nPM/remove paths do not see a half-registered device, remove the NAPI\ninstance added during probe, and let the existing cleanup labels release\nthe resources once.\n\nThe issue was found by a local static-analysis checker for probe error\npaths. The reported path was manually inspected before sending this fix.\n\nCompile-tested with CONFIG_SUNGEM=y. Runtime testing was not performed\nbecause no sungem hardware is available.",
  "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.178",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-72406"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f3bd60b26814b7c3c57c629abb0857dfc76d214a"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f1d04fefb0c2a2de32d9cee22cdc2088be3758d1"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/331c99029a1cee1111f82f63d15b3cdebefbd341"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a63eaf7605d1579cf3f551792e478cfaf5ac37d1"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/fb73cdc50b6755e5c3a80a195b2708a39ada0230"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b15a3cc68e2450aa0edd94a74a7bdd45fcc17dd9"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/bc49e8746584564dba47d963d1916cc876fc6f6b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/36dea2f639249460d13f6ca66b2a9064187cd34d"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-17T05:50:24Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The flaw is in sungem PCI driver probe (gem_init_one) when register_netdev() fails during gem_init_one(); it is reached via local PCI enumeration/module load/hotplug/sysfs bind, not by processing remote network traffic through the NIC.\nAC:L - An attacker can reliably force register_netdev() to fail with ENOMEM using memory exhaustion timed with sungem probe or reprobe (modprobe, PCI hotplug, or sysfs bind); no uncontrollable race or rare heap layout is required beyond attacker-driven pressure.\nPR:L - Only a basic local process is needed to exhaust memory during probe; CAP_SYS_ADMIN/CAP_SYS_MODULE for driver rebind or modprobe is commonly available to maintenance operators, and concurrent unprivileged memory pressure can trigger the failing path without init-namespace root.\nUI:N - No victim interaction (opening files, mounting filesystems, clicking prompts) is required; exploitation is driven by attacker-timed memory pressure during sungem PCI probe error cleanup without actions from other users.\nS:U - The double-free corrupts kernel heap/DMA bookkeeping within the same kernel security domain; it enables local privilege escalation but does not cross VM, container, or IOMMU boundaries on its own.\nC:H - gem_remove_one() followed by fallthrough cleanup double-frees dma_alloc_coherent memory and free_netdev(), and then dereferences freed netdev_priv(gp) in gem_put_cell/iounmap, giving UAF-class heap disclosure primitives.\nI:H - Repeated dma_free_coherent, pci_release_regions, and free_netdev on the same objects corrupts kernel heap/SLUB metadata and can be developed into arbitrary kernel writes or control-flow hijacking, not merely a one-time fault.\nA:H - The double-free and subsequent use-after-free on probe error cleanup can immediately trigger kernel BUG/WARN, oops, or panic, causing total loss of system availability on affected legacy systems using sungem hardware."
    }
  }
}
