{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2024-56715",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2024-56715"
  ],
  "published": "2024-12-29T08:50:55Z",
  "summary": "ionic: Fix netdev notifier unregister on failure",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nionic: Fix netdev notifier unregister on failure\n\nIf register_netdev() fails, then the driver leaks the netdev notifier.\nFix this by calling ionic_lif_unregister() on register_netdev()\nfailure. This will also call ionic_lif_unregister_phc() if it has\nalready been registered.",
  "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.122",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2024-56715"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/87847938f5708b2509b279369c96572254bcf2ba"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/da93a12876f8b969df7316dc93aac7e725f88252"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/da5736f516a664a9e1ff74902663c64c423045d2"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ee2e931b2b46de9af7f681258e8ec8e2cd81cfc6"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/9590d32e090ea2751e131ae5273859ca22f5ac14"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T11:52:36Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - Both the creation of the dangling notifier (a local PCI driver probe of a Pensando/AMD ionic NIC) and the dereference (a local netdev event such as network-namespace creation) occur entirely on the local system; no network packet or remote peer data reaches this path.\nAC:L - Once probe has failed and left `ionic->nb` on `netdev_chain`, the freed-memory dereference is deterministic and infinitely repeatable \u2014 every `unshare -Urn`, container start, or `ip link` event walks the chain, with no race to win and no unpredictable memory layout required.\nPR:L - Reaching the dangling notifier requires no privilege beyond an ordinary local user: creating a network namespace via an unprivileged user namespace registers `lo` and fires `call_netdevice_notifiers(NETDEV_REGISTER)`, and the same user can groom the freed `struct ionic` region (kernel-stack/vmalloc and slab reclaim) to control the values read back.\nUI:N - No action by any victim user or administrator is needed at exploitation time; the attacker triggers the notifier chain walk himself through ordinary namespace or interface operations.\nS:U - The use-after-free corrupts kernel memory and hijacks control flow within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - `notifier_call_chain()` reads `nb->next` and `nb->notifier_call` from the freed `struct ionic`, and the surviving `ionic_lif_notify()` callback further dereferences the stale `ionic`/`lif` pointers, so a reclaimed and attacker-shaped allocation yields an arbitrary kernel-read primitive.\nI:H - The chain walk performs `nb->notifier_call(nb, val, v)` on a function pointer loaded from freed memory \u2014 a direct indirect-call/control-flow-hijack primitive \u2014 and the corrupted `nb->next` linkage additionally lets a later `raw_notifier_chain_unregister()` write through attacker-influenced pointers.\nA:H - After a failed ionic probe the machine is left one netdev event away from an oops or panic in `notifier_call_chain()`, and any unprivileged user can force that crash on demand and repeatedly."
    }
  }
}
