{
  "cveId": "CVE-2025-40314",
  "url": "https://patchblox.com/security/cve/CVE-2025-40314",
  "summary": "CVE-2025-40314 is fixed in 20 products on 1 platform, first by DEBIAN-CVE-2025-40314, released December 8, 2025. It is not reported as exploited. Patch Radar priority: High.",
  "title": "usb: cdns3: gadget: Use-after-free during failed initialization and exit of cdnsp gadget",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  usb: cdns3: gadget: Use-after-free during failed initialization and exit of cdnsp gadget  In the __cdnsp_gadget_init() and cdnsp_gadget_exit() functions, the gadget structure (pdev-\u003Egadget) was freed before its endpoints. The endpoints are linked via the ep_list in the gadget structure. Freeing the gadget first leaves dangling pointers in the endpoint list. When the endpoints are subsequently freed, this results in a use-after-free.  Fix: By separating the usb_del_gadget_udc() operation into distinct \u0022del\u0022 and \u0022put\u0022 steps, cdnsp_gadget_free_endpoints() can be executed prior to the final release of the gadget structure with usb_put_gadget().  A patch similar to bb9c74a5bd14(\u0022usb: dwc3: gadget: Free gadget structure  only after freeing endpoints\u0022).",
  "published": "2025-12-08T01:16:03Z",
  "severity": "Important",
  "cvss": 7.8,
  "epss": 0.00191,
  "epssPercentile": 0.08808,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-40314",
  "fixes": [
    {
      "platform": "linux",
      "product": "dtb-aarch64",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "dtb-aarch64",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "sles 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "SUSE-SU-2026:20220-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-20220-1",
      "released": "2026-02-02T10:12:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.20.24.1",
      "fix": "SUSE-SU-2026:0281-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0281-1",
      "released": "2026-01-23T16:03:47Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "sles 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "SUSE-SU-2026:20220-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-20220-1",
      "released": "2026-02-02T10:12:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-debug",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "sles 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "SUSE-SU-2026:20220-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-20220-1",
      "released": "2026-02-02T10:12:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1.150600.12.38.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1.160000.2.6",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1.150600.12.38.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1.150700.17.19.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "sles 16.0",
      "fixedVersion": "6.12.0-160000.9.1.160000.2.6",
      "fix": "SUSE-SU-2026:20220-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-20220-1",
      "released": "2026-02-02T10:12:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "sles 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "SUSE-SU-2026:20220-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-20220-1",
      "released": "2026-02-02T10:12:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-kvmsmall",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-kvmsmall",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-kvmsmall",
      "release": "sles 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "SUSE-SU-2026:20220-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-20220-1",
      "released": "2026-02-02T10:12:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP6_Update_19",
      "release": "sles 15.6",
      "fixedVersion": "1-150600.13.3.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP7-RT_Update_8",
      "release": "sles 15.7",
      "fixedVersion": "1-150700.1.3.1",
      "fix": "SUSE-SU-2026:0278-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0278-1",
      "released": "2026-01-23T15:08:32Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP7_Update_8",
      "release": "sles 15.7",
      "fixedVersion": "1-150700.15.3.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-qa",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-qa",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-qa",
      "release": "sles 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "SUSE-SU-2026:20220-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-20220-1",
      "released": "2026-02-02T10:12:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-rt",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "sles 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "SUSE-SU-2026:20220-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-20220-1",
      "released": "2026-02-02T10:12:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-azure",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.20.24.1",
      "fix": "SUSE-SU-2026:0281-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0281-1",
      "released": "2026-01-23T16:03:47Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "sles 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "SUSE-SU-2026:20220-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-20220-1",
      "released": "2026-02-02T10:12:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-azure",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.20.24.1",
      "fix": "SUSE-SU-2026:0281-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0281-1",
      "released": "2026-01-23T16:03:47Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "OPENSUSE-SU-2026:20145-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-20145-1",
      "released": "2026-02-02T11:54:26Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "sles 16.0",
      "fixedVersion": "6.12.0-160000.9.1",
      "fix": "SUSE-SU-2026:20220-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-20220-1",
      "released": "2026-02-02T10:12:16Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "6.1.159-1",
      "fix": "DEBIAN-CVE-2025-40314",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-40314",
      "released": "2025-12-08T01:16:03Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.12.63-1",
      "fix": "DEBIAN-CVE-2025-40314",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-40314",
      "released": "2025-12-08T01:16:03Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.17.8-1",
      "fix": "DEBIAN-CVE-2025-40314",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-40314",
      "released": "2025-12-08T01:16:03Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}