{
  "id": "CVE-2025-40347",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40347",
  "published_at": "2025-12-16T13:30:21.539Z",
  "title": "net: enetc: fix the deadlock of enetc_mdio_lock",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: enetc: fix the deadlock of enetc_mdio_lock\n\nAfter applying the workaround for err050089, the LS1028A platform\nexperiences RCU stalls on RT kernel. This issue is caused by the\nrecursive acquisition of the read lock enetc_mdio_lock. Here list some\nof the call stacks identified under the enetc_poll path that may lead to\na deadlock:\n\nenetc_poll\n  -\u003e enetc_lock_mdio\n  -\u003e enetc_clean_rx_ring OR napi_complete_done\n     -\u003e napi_gro_receive\n        -\u003e enetc_start_xmit\n           -\u003e enetc_lock_mdio\n           -\u003e enetc_map_tx_buffs\n           -\u003e enetc_unlock_mdio\n  -\u003e enetc_unlock_mdio\n\nAfter enetc_poll acquires the read lock, a higher-priority writer attempts\nto acquire the lock, causing preemption. The writer detects that a\nread lock is already held and is scheduled out. However, readers under\nenetc_poll cannot acquire the read lock again because a writer is already\nwaiting, leading to a thread hang.\n\nCurrently, the deadlock is avoided by adjusting enetc_lock_mdio to prevent\nrecursive lock acquisition.",
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, \u003c a649161526736f48bcc592e3a412e5bcd7dd9e24",
          "\u003e= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, \u003c 2781ca82ce8cad263d80b617addb727e6a84c9e5",
          "\u003e= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, \u003c 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed",
          "\u003e= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, \u003c 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa",
          "\u003e= 6d36ecdbc4410e61a0e02adc5d3abeee22a8ffd3, \u003c 50bd33f6b3922a6b760aa30d409cae891cec8fb5",
          "bf9c564716a13dde6a990d3b02c27cd6e39608bf",
          "ff966263f5f9fdf9740f03fed0762ce73c230a6a",
          "\u003e= 5.10.24, \u003c 5.11",
          "\u003e= 5.11.7, \u003c 5.12"
        ],
        "fixed_in": [
          "a649161526736f48bcc592e3a412e5bcd7dd9e24",
          "2781ca82ce8cad263d80b617addb727e6a84c9e5",
          "1f92f5bd057a4fad9dab6af17963cdd21e5da6ed",
          "2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa",
          "50bd33f6b3922a6b760aa30d409cae891cec8fb5",
          "5.11",
          "5.12"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.12"
        ],
        "fixed_in": [
          "0",
          "6.1.175",
          "6.6.115",
          "6.12.56",
          "6.17.6",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to a649161526736f48bcc592e3a412e5bcd7dd9e24 or 2781ca82ce8cad263d80b617addb727e6a84c9e5 or 1f92f5bd057a4fad9dab6af17963cdd21e5da6ed or 2e55a49dc3b2a6b23329e4fbbd8a5feb20e220aa or 50bd33f6b3922a6b760aa30d409cae891cec8fb5 or 5.11 or 5.12 or later.",
      "Upgrade Linux to 0 or 6.1.175 or 6.6.115 or 6.12.56 or 6.17.6 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
