CVE-2023-54000 (GCVE-0-2023-54000)

Vulnerability from cvelistv5 – Published: 2025-12-24 10:55 – Updated: 2025-12-24 10:55
VLAI?
Title
net: hns3: fix deadlock issue when externel_lb and reset are executed together
Summary
In the Linux kernel, the following vulnerability has been resolved: net: hns3: fix deadlock issue when externel_lb and reset are executed together When externel_lb and reset are executed together, a deadlock may occur: [ 3147.217009] INFO: task kworker/u321:0:7 blocked for more than 120 seconds. [ 3147.230483] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 3147.238999] task:kworker/u321:0 state:D stack: 0 pid: 7 ppid: 2 flags:0x00000008 [ 3147.248045] Workqueue: hclge hclge_service_task [hclge] [ 3147.253957] Call trace: [ 3147.257093] __switch_to+0x7c/0xbc [ 3147.261183] __schedule+0x338/0x6f0 [ 3147.265357] schedule+0x50/0xe0 [ 3147.269185] schedule_preempt_disabled+0x18/0x24 [ 3147.274488] __mutex_lock.constprop.0+0x1d4/0x5dc [ 3147.279880] __mutex_lock_slowpath+0x1c/0x30 [ 3147.284839] mutex_lock+0x50/0x60 [ 3147.288841] rtnl_lock+0x20/0x2c [ 3147.292759] hclge_reset_prepare+0x68/0x90 [hclge] [ 3147.298239] hclge_reset_subtask+0x88/0xe0 [hclge] [ 3147.303718] hclge_reset_service_task+0x84/0x120 [hclge] [ 3147.309718] hclge_service_task+0x2c/0x70 [hclge] [ 3147.315109] process_one_work+0x1d0/0x490 [ 3147.319805] worker_thread+0x158/0x3d0 [ 3147.324240] kthread+0x108/0x13c [ 3147.328154] ret_from_fork+0x10/0x18 In externel_lb process, the hns3 driver call napi_disable() first, then the reset happen, then the restore process of the externel_lb will fail, and will not call napi_enable(). When doing externel_lb again, napi_disable() will be double call, cause a deadlock of rtnl_lock(). This patch use the HNS3_NIC_STATE_DOWN state to protect the calling of napi_disable() and napi_enable() in externel_lb process, just as the usage in ndo_stop() and ndo_start().
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 85fc1d802edf36123ae1bd0a13892bb3772c197f , < d9f609cb50ebab4aa6341112f406bf9d3928ac81 (git)
Affected: 04b6ba143521f4485b7f2c36c655b262a79dae97 , < 743f7c1762e098048ede8cdf8c89a118f8d12391 (git)
Affected: 04b6ba143521f4485b7f2c36c655b262a79dae97 , < ef2d6bf9695669d31ece9f2ef39dec84874a87c7 (git)
Affected: 04b6ba143521f4485b7f2c36c655b262a79dae97 , < ac6257a3ae5db5193b1f19c268e4f72d274ddb88 (git)
Create a notification for this product.
    Linux Linux Affected: 6.1
Unaffected: 0 , < 6.1 (semver)
Unaffected: 6.1.46 , ≤ 6.1.* (semver)
Unaffected: 6.4.11 , ≤ 6.4.* (semver)
Unaffected: 6.5 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/hisilicon/hns3/hns3_enet.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "d9f609cb50ebab4aa6341112f406bf9d3928ac81",
              "status": "affected",
              "version": "85fc1d802edf36123ae1bd0a13892bb3772c197f",
              "versionType": "git"
            },
            {
              "lessThan": "743f7c1762e098048ede8cdf8c89a118f8d12391",
              "status": "affected",
              "version": "04b6ba143521f4485b7f2c36c655b262a79dae97",
              "versionType": "git"
            },
            {
              "lessThan": "ef2d6bf9695669d31ece9f2ef39dec84874a87c7",
              "status": "affected",
              "version": "04b6ba143521f4485b7f2c36c655b262a79dae97",
              "versionType": "git"
            },
            {
              "lessThan": "ac6257a3ae5db5193b1f19c268e4f72d274ddb88",
              "status": "affected",
              "version": "04b6ba143521f4485b7f2c36c655b262a79dae97",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/hisilicon/hns3/hns3_enet.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.1"
            },
            {
              "lessThan": "6.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.46",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.4.*",
              "status": "unaffected",
              "version": "6.4.11",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.5",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.46",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4.11",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.5",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hns3: fix deadlock issue when externel_lb and reset are executed together\n\nWhen externel_lb and reset are executed together, a deadlock may\noccur:\n[ 3147.217009] INFO: task kworker/u321:0:7 blocked for more than 120 seconds.\n[ 3147.230483] \"echo 0 \u003e /proc/sys/kernel/hung_task_timeout_secs\" disables this message.\n[ 3147.238999] task:kworker/u321:0  state:D stack:    0 pid:    7 ppid:     2 flags:0x00000008\n[ 3147.248045] Workqueue: hclge hclge_service_task [hclge]\n[ 3147.253957] Call trace:\n[ 3147.257093]  __switch_to+0x7c/0xbc\n[ 3147.261183]  __schedule+0x338/0x6f0\n[ 3147.265357]  schedule+0x50/0xe0\n[ 3147.269185]  schedule_preempt_disabled+0x18/0x24\n[ 3147.274488]  __mutex_lock.constprop.0+0x1d4/0x5dc\n[ 3147.279880]  __mutex_lock_slowpath+0x1c/0x30\n[ 3147.284839]  mutex_lock+0x50/0x60\n[ 3147.288841]  rtnl_lock+0x20/0x2c\n[ 3147.292759]  hclge_reset_prepare+0x68/0x90 [hclge]\n[ 3147.298239]  hclge_reset_subtask+0x88/0xe0 [hclge]\n[ 3147.303718]  hclge_reset_service_task+0x84/0x120 [hclge]\n[ 3147.309718]  hclge_service_task+0x2c/0x70 [hclge]\n[ 3147.315109]  process_one_work+0x1d0/0x490\n[ 3147.319805]  worker_thread+0x158/0x3d0\n[ 3147.324240]  kthread+0x108/0x13c\n[ 3147.328154]  ret_from_fork+0x10/0x18\n\nIn externel_lb process, the hns3 driver call napi_disable()\nfirst, then the reset happen, then the restore process of the\nexternel_lb will fail, and will not call napi_enable(). When\ndoing externel_lb again, napi_disable() will be double call,\ncause a deadlock of rtnl_lock().\n\nThis patch use the HNS3_NIC_STATE_DOWN state to protect the\ncalling of napi_disable() and napi_enable() in externel_lb\nprocess, just as the usage in ndo_stop() and ndo_start()."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-24T10:55:36.216Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/d9f609cb50ebab4aa6341112f406bf9d3928ac81"
        },
        {
          "url": "https://git.kernel.org/stable/c/743f7c1762e098048ede8cdf8c89a118f8d12391"
        },
        {
          "url": "https://git.kernel.org/stable/c/ef2d6bf9695669d31ece9f2ef39dec84874a87c7"
        },
        {
          "url": "https://git.kernel.org/stable/c/ac6257a3ae5db5193b1f19c268e4f72d274ddb88"
        }
      ],
      "title": "net: hns3: fix deadlock issue when externel_lb and reset are executed together",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-54000",
    "datePublished": "2025-12-24T10:55:36.216Z",
    "dateReserved": "2025-12-24T10:53:46.177Z",
    "dateUpdated": "2025-12-24T10:55:36.216Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-54000\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-24T11:15:52.910\",\"lastModified\":\"2025-12-29T15:58:56.260\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: hns3: fix deadlock issue when externel_lb and reset are executed together\\n\\nWhen externel_lb and reset are executed together, a deadlock may\\noccur:\\n[ 3147.217009] INFO: task kworker/u321:0:7 blocked for more than 120 seconds.\\n[ 3147.230483] \\\"echo 0 \u003e /proc/sys/kernel/hung_task_timeout_secs\\\" disables this message.\\n[ 3147.238999] task:kworker/u321:0  state:D stack:    0 pid:    7 ppid:     2 flags:0x00000008\\n[ 3147.248045] Workqueue: hclge hclge_service_task [hclge]\\n[ 3147.253957] Call trace:\\n[ 3147.257093]  __switch_to+0x7c/0xbc\\n[ 3147.261183]  __schedule+0x338/0x6f0\\n[ 3147.265357]  schedule+0x50/0xe0\\n[ 3147.269185]  schedule_preempt_disabled+0x18/0x24\\n[ 3147.274488]  __mutex_lock.constprop.0+0x1d4/0x5dc\\n[ 3147.279880]  __mutex_lock_slowpath+0x1c/0x30\\n[ 3147.284839]  mutex_lock+0x50/0x60\\n[ 3147.288841]  rtnl_lock+0x20/0x2c\\n[ 3147.292759]  hclge_reset_prepare+0x68/0x90 [hclge]\\n[ 3147.298239]  hclge_reset_subtask+0x88/0xe0 [hclge]\\n[ 3147.303718]  hclge_reset_service_task+0x84/0x120 [hclge]\\n[ 3147.309718]  hclge_service_task+0x2c/0x70 [hclge]\\n[ 3147.315109]  process_one_work+0x1d0/0x490\\n[ 3147.319805]  worker_thread+0x158/0x3d0\\n[ 3147.324240]  kthread+0x108/0x13c\\n[ 3147.328154]  ret_from_fork+0x10/0x18\\n\\nIn externel_lb process, the hns3 driver call napi_disable()\\nfirst, then the reset happen, then the restore process of the\\nexternel_lb will fail, and will not call napi_enable(). When\\ndoing externel_lb again, napi_disable() will be double call,\\ncause a deadlock of rtnl_lock().\\n\\nThis patch use the HNS3_NIC_STATE_DOWN state to protect the\\ncalling of napi_disable() and napi_enable() in externel_lb\\nprocess, just as the usage in ndo_stop() and ndo_start().\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/743f7c1762e098048ede8cdf8c89a118f8d12391\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ac6257a3ae5db5193b1f19c268e4f72d274ddb88\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d9f609cb50ebab4aa6341112f406bf9d3928ac81\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ef2d6bf9695669d31ece9f2ef39dec84874a87c7\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…