GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2021-47349 (GCVE-0-2021-47349)

Vulnerability from cvelistv5 – Published: 2024-05-21 14:35 – Updated: 2026-05-11 13:52
VLAI
Title
mwifiex: bring down link before deleting interface
Summary
In the Linux kernel, the following vulnerability has been resolved: mwifiex: bring down link before deleting interface We can deadlock when rmmod'ing the driver or going through firmware reset, because the cfg80211_unregister_wdev() has to bring down the link for us, ... which then grab the same wiphy lock. nl80211_del_interface() already handles a very similar case, with a nice description: /* * We hold RTNL, so this is safe, without RTNL opencount cannot * reach 0, and thus the rdev cannot be deleted. * * We need to do it for the dev_close(), since that will call * the netdev notifiers, and we need to acquire the mutex there * but don't know if we get there from here or from some other * place (e.g. "ip link set ... down"). */ mutex_unlock(&rdev->wiphy.mtx); ... Do similarly for mwifiex teardown, by ensuring we bring the link down first. Sample deadlock trace: [ 247.103516] INFO: task rmmod:2119 blocked for more than 123 seconds. [ 247.110630] Not tainted 5.12.4 #5 [ 247.115796] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 247.124557] task:rmmod state:D stack: 0 pid: 2119 ppid: 2114 flags:0x00400208 [ 247.133905] Call trace: [ 247.136644] __switch_to+0x130/0x170 [ 247.140643] __schedule+0x714/0xa0c [ 247.144548] schedule_preempt_disabled+0x88/0xf4 [ 247.149714] __mutex_lock_common+0x43c/0x750 [ 247.154496] mutex_lock_nested+0x5c/0x68 [ 247.158884] cfg80211_netdev_notifier_call+0x280/0x4e0 [cfg80211] [ 247.165769] raw_notifier_call_chain+0x4c/0x78 [ 247.170742] call_netdevice_notifiers_info+0x68/0xa4 [ 247.176305] __dev_close_many+0x7c/0x138 [ 247.180693] dev_close_many+0x7c/0x10c [ 247.184893] unregister_netdevice_many+0xfc/0x654 [ 247.190158] unregister_netdevice_queue+0xb4/0xe0 [ 247.195424] _cfg80211_unregister_wdev+0xa4/0x204 [cfg80211] [ 247.201816] cfg80211_unregister_wdev+0x20/0x2c [cfg80211] [ 247.208016] mwifiex_del_virtual_intf+0xc8/0x188 [mwifiex] [ 247.214174] mwifiex_uninit_sw+0x158/0x1b0 [mwifiex] [ 247.219747] mwifiex_remove_card+0x38/0xa0 [mwifiex] [ 247.225316] mwifiex_pcie_remove+0xd0/0xe0 [mwifiex_pcie] [ 247.231451] pci_device_remove+0x50/0xe0 [ 247.235849] device_release_driver_internal+0x110/0x1b0 [ 247.241701] driver_detach+0x5c/0x9c [ 247.245704] bus_remove_driver+0x84/0xb8 [ 247.250095] driver_unregister+0x3c/0x60 [ 247.254486] pci_unregister_driver+0x2c/0x90 [ 247.259267] cleanup_module+0x18/0xcdc [mwifiex_pcie]
Severity
No CVSS data available.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2024-09-10 15:38 UTC
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: a05829a7222e9d10c416dd2dbbf3929fe6646b89 , < a3041d39d3c14da97fa3476835aba043ba810cf0 (git)
Affected: a05829a7222e9d10c416dd2dbbf3929fe6646b89 , < 35af69c7c0490fdccfc159c6a87e4d1dc070838a (git)
Affected: a05829a7222e9d10c416dd2dbbf3929fe6646b89 , < 1f9482aa8d412b4ba06ce6ab8e333fb8ca29a06e (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.12
Unaffected: 0 , < 5.12 (semver)
Unaffected: 5.12.18 , ≤ 5.12.* (semver)
Unaffected: 5.13.3 , ≤ 5.13.* (semver)
Unaffected: 5.14 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-04T05:32:08.509Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/a3041d39d3c14da97fa3476835aba043ba810cf0"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/35af69c7c0490fdccfc159c6a87e4d1dc070838a"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/1f9482aa8d412b4ba06ce6ab8e333fb8ca29a06e"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2021-47349",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T15:38:43.542695Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:32:57.818Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/wireless/marvell/mwifiex/main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a3041d39d3c14da97fa3476835aba043ba810cf0",
              "status": "affected",
              "version": "a05829a7222e9d10c416dd2dbbf3929fe6646b89",
              "versionType": "git"
            },
            {
              "lessThan": "35af69c7c0490fdccfc159c6a87e4d1dc070838a",
              "status": "affected",
              "version": "a05829a7222e9d10c416dd2dbbf3929fe6646b89",
              "versionType": "git"
            },
            {
              "lessThan": "1f9482aa8d412b4ba06ce6ab8e333fb8ca29a06e",
              "status": "affected",
              "version": "a05829a7222e9d10c416dd2dbbf3929fe6646b89",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/wireless/marvell/mwifiex/main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.12"
            },
            {
              "lessThan": "5.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.12.*",
              "status": "unaffected",
              "version": "5.12.18",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.13.*",
              "status": "unaffected",
              "version": "5.13.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.14",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.12.18",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.13.3",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.14",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmwifiex: bring down link before deleting interface\n\nWe can deadlock when rmmod\u0027ing the driver or going through firmware\nreset, because the cfg80211_unregister_wdev() has to bring down the link\nfor us, ... which then grab the same wiphy lock.\n\nnl80211_del_interface() already handles a very similar case, with a nice\ndescription:\n\n        /*\n         * We hold RTNL, so this is safe, without RTNL opencount cannot\n         * reach 0, and thus the rdev cannot be deleted.\n         *\n         * We need to do it for the dev_close(), since that will call\n         * the netdev notifiers, and we need to acquire the mutex there\n         * but don\u0027t know if we get there from here or from some other\n         * place (e.g. \"ip link set ... down\").\n         */\n        mutex_unlock(\u0026rdev-\u003ewiphy.mtx);\n...\n\nDo similarly for mwifiex teardown, by ensuring we bring the link down\nfirst.\n\nSample deadlock trace:\n\n[  247.103516] INFO: task rmmod:2119 blocked for more than 123 seconds.\n[  247.110630]       Not tainted 5.12.4 #5\n[  247.115796] \"echo 0 \u003e /proc/sys/kernel/hung_task_timeout_secs\" disables this message.\n[  247.124557] task:rmmod           state:D stack:    0 pid: 2119 ppid:  2114 flags:0x00400208\n[  247.133905] Call trace:\n[  247.136644]  __switch_to+0x130/0x170\n[  247.140643]  __schedule+0x714/0xa0c\n[  247.144548]  schedule_preempt_disabled+0x88/0xf4\n[  247.149714]  __mutex_lock_common+0x43c/0x750\n[  247.154496]  mutex_lock_nested+0x5c/0x68\n[  247.158884]  cfg80211_netdev_notifier_call+0x280/0x4e0 [cfg80211]\n[  247.165769]  raw_notifier_call_chain+0x4c/0x78\n[  247.170742]  call_netdevice_notifiers_info+0x68/0xa4\n[  247.176305]  __dev_close_many+0x7c/0x138\n[  247.180693]  dev_close_many+0x7c/0x10c\n[  247.184893]  unregister_netdevice_many+0xfc/0x654\n[  247.190158]  unregister_netdevice_queue+0xb4/0xe0\n[  247.195424]  _cfg80211_unregister_wdev+0xa4/0x204 [cfg80211]\n[  247.201816]  cfg80211_unregister_wdev+0x20/0x2c [cfg80211]\n[  247.208016]  mwifiex_del_virtual_intf+0xc8/0x188 [mwifiex]\n[  247.214174]  mwifiex_uninit_sw+0x158/0x1b0 [mwifiex]\n[  247.219747]  mwifiex_remove_card+0x38/0xa0 [mwifiex]\n[  247.225316]  mwifiex_pcie_remove+0xd0/0xe0 [mwifiex_pcie]\n[  247.231451]  pci_device_remove+0x50/0xe0\n[  247.235849]  device_release_driver_internal+0x110/0x1b0\n[  247.241701]  driver_detach+0x5c/0x9c\n[  247.245704]  bus_remove_driver+0x84/0xb8\n[  247.250095]  driver_unregister+0x3c/0x60\n[  247.254486]  pci_unregister_driver+0x2c/0x90\n[  247.259267]  cleanup_module+0x18/0xcdc [mwifiex_pcie]"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T13:52:58.952Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a3041d39d3c14da97fa3476835aba043ba810cf0"
        },
        {
          "url": "https://git.kernel.org/stable/c/35af69c7c0490fdccfc159c6a87e4d1dc070838a"
        },
        {
          "url": "https://git.kernel.org/stable/c/1f9482aa8d412b4ba06ce6ab8e333fb8ca29a06e"
        }
      ],
      "title": "mwifiex: bring down link before deleting interface",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2021-47349",
    "datePublished": "2024-05-21T14:35:54.314Z",
    "dateReserved": "2024-05-21T14:28:16.983Z",
    "dateUpdated": "2026-05-11T13:52:58.952Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2021-47349",
      "date": "2026-09-17",
      "epss": "0.00178",
      "percentile": "0.07648"
    },
    "fkie_nvd": {
      "configurations": "[{\"nodes\": [{\"operator\": \"OR\", \"negate\": false, \"cpeMatch\": [{\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"5.12\", \"versionEndExcluding\": \"5.12.18\", \"matchCriteriaId\": \"5EB72DFA-B894-49EE-B7E0-64BEA02A6669\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"5.13\", \"versionEndExcluding\": \"5.13.3\", \"matchCriteriaId\": \"853187F6-707A-487B-95C0-621B5211B43C\"}]}]}]",
      "descriptions": "[{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmwifiex: bring down link before deleting interface\\n\\nWe can deadlock when rmmod\u0027ing the driver or going through firmware\\nreset, because the cfg80211_unregister_wdev() has to bring down the link\\nfor us, ... which then grab the same wiphy lock.\\n\\nnl80211_del_interface() already handles a very similar case, with a nice\\ndescription:\\n\\n        /*\\n         * We hold RTNL, so this is safe, without RTNL opencount cannot\\n         * reach 0, and thus the rdev cannot be deleted.\\n         *\\n         * We need to do it for the dev_close(), since that will call\\n         * the netdev notifiers, and we need to acquire the mutex there\\n         * but don\u0027t know if we get there from here or from some other\\n         * place (e.g. \\\"ip link set ... down\\\").\\n         */\\n        mutex_unlock(\u0026rdev-\u003ewiphy.mtx);\\n...\\n\\nDo similarly for mwifiex teardown, by ensuring we bring the link down\\nfirst.\\n\\nSample deadlock trace:\\n\\n[  247.103516] INFO: task rmmod:2119 blocked for more than 123 seconds.\\n[  247.110630]       Not tainted 5.12.4 #5\\n[  247.115796] \\\"echo 0 \u003e /proc/sys/kernel/hung_task_timeout_secs\\\" disables this message.\\n[  247.124557] task:rmmod           state:D stack:    0 pid: 2119 ppid:  2114 flags:0x00400208\\n[  247.133905] Call trace:\\n[  247.136644]  __switch_to+0x130/0x170\\n[  247.140643]  __schedule+0x714/0xa0c\\n[  247.144548]  schedule_preempt_disabled+0x88/0xf4\\n[  247.149714]  __mutex_lock_common+0x43c/0x750\\n[  247.154496]  mutex_lock_nested+0x5c/0x68\\n[  247.158884]  cfg80211_netdev_notifier_call+0x280/0x4e0 [cfg80211]\\n[  247.165769]  raw_notifier_call_chain+0x4c/0x78\\n[  247.170742]  call_netdevice_notifiers_info+0x68/0xa4\\n[  247.176305]  __dev_close_many+0x7c/0x138\\n[  247.180693]  dev_close_many+0x7c/0x10c\\n[  247.184893]  unregister_netdevice_many+0xfc/0x654\\n[  247.190158]  unregister_netdevice_queue+0xb4/0xe0\\n[  247.195424]  _cfg80211_unregister_wdev+0xa4/0x204 [cfg80211]\\n[  247.201816]  cfg80211_unregister_wdev+0x20/0x2c [cfg80211]\\n[  247.208016]  mwifiex_del_virtual_intf+0xc8/0x188 [mwifiex]\\n[  247.214174]  mwifiex_uninit_sw+0x158/0x1b0 [mwifiex]\\n[  247.219747]  mwifiex_remove_card+0x38/0xa0 [mwifiex]\\n[  247.225316]  mwifiex_pcie_remove+0xd0/0xe0 [mwifiex_pcie]\\n[  247.231451]  pci_device_remove+0x50/0xe0\\n[  247.235849]  device_release_driver_internal+0x110/0x1b0\\n[  247.241701]  driver_detach+0x5c/0x9c\\n[  247.245704]  bus_remove_driver+0x84/0xb8\\n[  247.250095]  driver_unregister+0x3c/0x60\\n[  247.254486]  pci_unregister_driver+0x2c/0x90\\n[  247.259267]  cleanup_module+0x18/0xcdc [mwifiex_pcie]\"}, {\"lang\": \"es\", \"value\": \"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mwifiex: desactivar el enlace antes de eliminar la interfaz. Podemos bloquearnos al modificar el controlador o restablecer el firmware, porque cfg80211_unregister_wdev() tiene que desactivar el enlace por nosotros. .. que luego agarra el mismo candado wiphy. nl80211_del_interface() ya maneja un caso muy similar, con una buena descripci\\u00f3n: /* * Mantenemos RTNL, por lo que esto es seguro, sin RTNL opencount no puede * llegar a 0 y, por lo tanto, rdev no se puede eliminar. * * Necesitamos hacerlo para dev_close(), ya que eso llamar\\u00e1 * a los notificadores de netdev, y necesitamos adquirir el mutex all\\u00ed * pero no sabemos si llegamos all\\u00ed desde aqu\\u00ed o desde alg\\u00fan otro * lugar (por ejemplo \\\"enlace IP configurado... inactivo\\\"). */ mutex_unlock(\u0026amp;rdev-\u0026gt;wiphy.mtx); ... Haga lo mismo con el desmontaje de mwifiex, asegur\\u00e1ndose de que primero desconectamos el enlace. Ejemplo de seguimiento de interbloqueo: [247.103516] INFORMACI\\u00d3N: tarea rmmod:2119 bloqueada durante m\\u00e1s de 123 segundos. [247.110630] No contaminado 5.12.4 #5 [247.115796] \\\"echo 0 \u0026gt; /proc/sys/kernel/hung_task_timeout_secs\\\" desactiva este mensaje. [247.124557] tarea:rmmod estado:D pila: 0 pid: 2119 ppid: 2114 banderas:0x00400208 [247.133905] Rastreo de llamadas: [247.136644] __switch_to+0x130/0x170 [ 247.140643] 14/0xa0c [247.144548] Schedule_preempt_disabled+0x88/ 0xf4 [ 247.149714] __mutex_lock_common+0x43c/0x750 [ 247.154496] mutex_lock_nested+0x5c/0x68 [ 247.158884] cfg80211_netdev_notifier_call+0x280/0x4e0 [cfg80211] [ 47.165769] raw_notifier_call_chain+0x4c/0x78 [ 247.170742] call_netdevice_notifiers_info+0x68/0xa4 [ 247.176305] __dev_close_many+0x7c /0x138 [ 247.180693] dev_close_many+0x7c/0x10c [ 247.184893] unregister_netdevice_many+0xfc/0x654 [ 247.190158] unregister_netdevice_queue+0xb4/0xe0 [ 247.195424] 11_unregister_wdev+0xa4/0x204 [cfg80211] [ 247.201816] cfg80211_unregister_wdev+0x20/0x2c [cfg80211] [ 247.208016 ] mwifiex_del_virtual_intf+0xc8/0x188 [mwifiex] [ 247.214174] mwifiex_uninit_sw+0x158/0x1b0 [mwifiex] [ 247.219747] mwifiex_remove_card+0x38/0xa0 [mwifiex] [ 247.225316 ] mwifiex_pcie_remove+0xd0/0xe0 [mwifiex_pcie] [ 247.231451] pci_device_remove+0x50/0xe0 [ 247.235849] device_release_driver_internal+0x110/0x1b0 [ 247.241701] driver_detach+0x5c/0x9c [ 247.245704] bus_remove_driver+0x84/0xb8 [ 247.250095] driver_unregister+0x3c/0x60 [ 2 47.254486] pci_unregister_driver+0x2c/0x90 [ 247.259267] cleanup_module+0x18/0xcdc [mwifiex_pcie ]\"}]",
      "id": "CVE-2021-47349",
      "lastModified": "2025-01-10T18:12:28.513",
      "metrics": "{\"cvssMetricV31\": [{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"baseScore\": 5.5, \"baseSeverity\": \"MEDIUM\", \"attackVector\": \"LOCAL\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"LOW\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"NONE\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 1.8, \"impactScore\": 3.6}]}",
      "published": "2024-05-21T15:15:21.417",
      "references": "[{\"url\": \"https://git.kernel.org/stable/c/1f9482aa8d412b4ba06ce6ab8e333fb8ca29a06e\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/35af69c7c0490fdccfc159c6a87e4d1dc070838a\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/a3041d39d3c14da97fa3476835aba043ba810cf0\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/1f9482aa8d412b4ba06ce6ab8e333fb8ca29a06e\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/35af69c7c0490fdccfc159c6a87e4d1dc070838a\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/a3041d39d3c14da97fa3476835aba043ba810cf0\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Patch\"]}]",
      "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "vulnStatus": "Analyzed",
      "weaknesses": "[{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-667\"}]}]"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2021-47349\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-05-21T15:15:21.417\",\"lastModified\":\"2026-06-17T04:17:15.750\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmwifiex: bring down link before deleting interface\\n\\nWe can deadlock when rmmod\u0027ing the driver or going through firmware\\nreset, because the cfg80211_unregister_wdev() has to bring down the link\\nfor us, ... which then grab the same wiphy lock.\\n\\nnl80211_del_interface() already handles a very similar case, with a nice\\ndescription:\\n\\n        /*\\n         * We hold RTNL, so this is safe, without RTNL opencount cannot\\n         * reach 0, and thus the rdev cannot be deleted.\\n         *\\n         * We need to do it for the dev_close(), since that will call\\n         * the netdev notifiers, and we need to acquire the mutex there\\n         * but don\u0027t know if we get there from here or from some other\\n         * place (e.g. \\\"ip link set ... down\\\").\\n         */\\n        mutex_unlock(\u0026rdev-\u003ewiphy.mtx);\\n...\\n\\nDo similarly for mwifiex teardown, by ensuring we bring the link down\\nfirst.\\n\\nSample deadlock trace:\\n\\n[  247.103516] INFO: task rmmod:2119 blocked for more than 123 seconds.\\n[  247.110630]       Not tainted 5.12.4 #5\\n[  247.115796] \\\"echo 0 \u003e /proc/sys/kernel/hung_task_timeout_secs\\\" disables this message.\\n[  247.124557] task:rmmod           state:D stack:    0 pid: 2119 ppid:  2114 flags:0x00400208\\n[  247.133905] Call trace:\\n[  247.136644]  __switch_to+0x130/0x170\\n[  247.140643]  __schedule+0x714/0xa0c\\n[  247.144548]  schedule_preempt_disabled+0x88/0xf4\\n[  247.149714]  __mutex_lock_common+0x43c/0x750\\n[  247.154496]  mutex_lock_nested+0x5c/0x68\\n[  247.158884]  cfg80211_netdev_notifier_call+0x280/0x4e0 [cfg80211]\\n[  247.165769]  raw_notifier_call_chain+0x4c/0x78\\n[  247.170742]  call_netdevice_notifiers_info+0x68/0xa4\\n[  247.176305]  __dev_close_many+0x7c/0x138\\n[  247.180693]  dev_close_many+0x7c/0x10c\\n[  247.184893]  unregister_netdevice_many+0xfc/0x654\\n[  247.190158]  unregister_netdevice_queue+0xb4/0xe0\\n[  247.195424]  _cfg80211_unregister_wdev+0xa4/0x204 [cfg80211]\\n[  247.201816]  cfg80211_unregister_wdev+0x20/0x2c [cfg80211]\\n[  247.208016]  mwifiex_del_virtual_intf+0xc8/0x188 [mwifiex]\\n[  247.214174]  mwifiex_uninit_sw+0x158/0x1b0 [mwifiex]\\n[  247.219747]  mwifiex_remove_card+0x38/0xa0 [mwifiex]\\n[  247.225316]  mwifiex_pcie_remove+0xd0/0xe0 [mwifiex_pcie]\\n[  247.231451]  pci_device_remove+0x50/0xe0\\n[  247.235849]  device_release_driver_internal+0x110/0x1b0\\n[  247.241701]  driver_detach+0x5c/0x9c\\n[  247.245704]  bus_remove_driver+0x84/0xb8\\n[  247.250095]  driver_unregister+0x3c/0x60\\n[  247.254486]  pci_unregister_driver+0x2c/0x90\\n[  247.259267]  cleanup_module+0x18/0xcdc [mwifiex_pcie]\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mwifiex: desactivar el enlace antes de eliminar la interfaz. Podemos bloquearnos al modificar el controlador o restablecer el firmware, porque cfg80211_unregister_wdev() tiene que desactivar el enlace por nosotros. .. que luego agarra el mismo candado wiphy. nl80211_del_interface() ya maneja un caso muy similar, con una buena descripci\u00f3n: /* * Mantenemos RTNL, por lo que esto es seguro, sin RTNL opencount no puede * llegar a 0 y, por lo tanto, rdev no se puede eliminar. * * Necesitamos hacerlo para dev_close(), ya que eso llamar\u00e1 * a los notificadores de netdev, y necesitamos adquirir el mutex all\u00ed * pero no sabemos si llegamos all\u00ed desde aqu\u00ed o desde alg\u00fan otro * lugar (por ejemplo \\\"enlace IP configurado... inactivo\\\"). */ mutex_unlock(\u0026amp;rdev-\u0026gt;wiphy.mtx); ... Haga lo mismo con el desmontaje de mwifiex, asegur\u00e1ndose de que primero desconectamos el enlace. Ejemplo de seguimiento de interbloqueo: [247.103516] INFORMACI\u00d3N: tarea rmmod:2119 bloqueada durante m\u00e1s de 123 segundos. [247.110630] No contaminado 5.12.4 #5 [247.115796] \\\"echo 0 \u0026gt; /proc/sys/kernel/hung_task_timeout_secs\\\" desactiva este mensaje. [247.124557] tarea:rmmod estado:D pila: 0 pid: 2119 ppid: 2114 banderas:0x00400208 [247.133905] Rastreo de llamadas: [247.136644] __switch_to+0x130/0x170 [ 247.140643] 14/0xa0c [247.144548] Schedule_preempt_disabled+0x88/ 0xf4 [ 247.149714] __mutex_lock_common+0x43c/0x750 [ 247.154496] mutex_lock_nested+0x5c/0x68 [ 247.158884] cfg80211_netdev_notifier_call+0x280/0x4e0 [cfg80211] [ 47.165769] raw_notifier_call_chain+0x4c/0x78 [ 247.170742] call_netdevice_notifiers_info+0x68/0xa4 [ 247.176305] __dev_close_many+0x7c /0x138 [ 247.180693] dev_close_many+0x7c/0x10c [ 247.184893] unregister_netdevice_many+0xfc/0x654 [ 247.190158] unregister_netdevice_queue+0xb4/0xe0 [ 247.195424] 11_unregister_wdev+0xa4/0x204 [cfg80211] [ 247.201816] cfg80211_unregister_wdev+0x20/0x2c [cfg80211] [ 247.208016 ] mwifiex_del_virtual_intf+0xc8/0x188 [mwifiex] [ 247.214174] mwifiex_uninit_sw+0x158/0x1b0 [mwifiex] [ 247.219747] mwifiex_remove_card+0x38/0xa0 [mwifiex] [ 247.225316 ] mwifiex_pcie_remove+0xd0/0xe0 [mwifiex_pcie] [ 247.231451] pci_device_remove+0x50/0xe0 [ 247.235849] device_release_driver_internal+0x110/0x1b0 [ 247.241701] driver_detach+0x5c/0x9c [ 247.245704] bus_remove_driver+0x84/0xb8 [ 247.250095] driver_unregister+0x3c/0x60 [ 2 47.254486] pci_unregister_driver+0x2c/0x90 [ 247.259267] cleanup_module+0x18/0xcdc [mwifiex_pcie ]\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/net/wireless/marvell/mwifiex/main.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"a05829a7222e9d10c416dd2dbbf3929fe6646b89\",\"lessThan\":\"a3041d39d3c14da97fa3476835aba043ba810cf0\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"a05829a7222e9d10c416dd2dbbf3929fe6646b89\",\"lessThan\":\"35af69c7c0490fdccfc159c6a87e4d1dc070838a\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"a05829a7222e9d10c416dd2dbbf3929fe6646b89\",\"lessThan\":\"1f9482aa8d412b4ba06ce6ab8e333fb8ca29a06e\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/net/wireless/marvell/mwifiex/main.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.12\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.12\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.12.18\",\"lessThanOrEqual\":\"5.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.13.3\",\"lessThanOrEqual\":\"5.13.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.14\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2024-09-10T15:38:43.542695Z\",\"id\":\"CVE-2021-47349\",\"options\":[{\"exploitation\":\"none\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-667\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.12\",\"versionEndExcluding\":\"5.12.18\",\"matchCriteriaId\":\"5EB72DFA-B894-49EE-B7E0-64BEA02A6669\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.13\",\"versionEndExcluding\":\"5.13.3\",\"matchCriteriaId\":\"853187F6-707A-487B-95C0-621B5211B43C\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1f9482aa8d412b4ba06ce6ab8e333fb8ca29a06e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/35af69c7c0490fdccfc159c6a87e4d1dc070838a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/a3041d39d3c14da97fa3476835aba043ba810cf0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/1f9482aa8d412b4ba06ce6ab8e333fb8ca29a06e\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/35af69c7c0490fdccfc159c6a87e4d1dc070838a\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/a3041d39d3c14da97fa3476835aba043ba810cf0\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2025-11-21T14:03:59+00:00",
      "cve": "CVE-2021-47349",
      "id": "CVE-2021-47349",
      "initial_release_date": "2021-01-01T00:00:00+00:00",
      "product_status:known_affected": "198",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: mwifiex: bring down link before deleting interface",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-47349.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-01T01:36:27Z",
      "cve": "CVE-2021-47349",
      "id": "CVE-2021-47349",
      "initial_release_date": "2024-05-24T10:33:02Z",
      "product_status:known_not_affected": "385",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2021-47349",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2021-47349.json",
      "version": "19"
    },
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/a3041d39d3c14da97fa3476835aba043ba810cf0\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/35af69c7c0490fdccfc159c6a87e4d1dc070838a\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/1f9482aa8d412b4ba06ce6ab8e333fb8ca29a06e\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-04T05:32:08.509Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2021-47349\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T15:38:43.542695Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:13.781Z\"}}], \"cna\": {\"title\": \"mwifiex: bring down link before deleting interface\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"a05829a7222e\", \"lessThan\": \"a3041d39d3c1\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"a05829a7222e\", \"lessThan\": \"35af69c7c049\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"a05829a7222e\", \"lessThan\": \"1f9482aa8d41\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/net/wireless/marvell/mwifiex/main.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.12\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.12\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.12.18\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.12.*\"}, {\"status\": \"unaffected\", \"version\": \"5.13.3\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.13.*\"}, {\"status\": \"unaffected\", \"version\": \"5.14\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/net/wireless/marvell/mwifiex/main.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/a3041d39d3c14da97fa3476835aba043ba810cf0\"}, {\"url\": \"https://git.kernel.org/stable/c/35af69c7c0490fdccfc159c6a87e4d1dc070838a\"}, {\"url\": \"https://git.kernel.org/stable/c/1f9482aa8d412b4ba06ce6ab8e333fb8ca29a06e\"}], \"x_generator\": {\"engine\": \"bippy-9e1c9544281a\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmwifiex: bring down link before deleting interface\\n\\nWe can deadlock when rmmod\u0027ing the driver or going through firmware\\nreset, because the cfg80211_unregister_wdev() has to bring down the link\\nfor us, ... which then grab the same wiphy lock.\\n\\nnl80211_del_interface() already handles a very similar case, with a nice\\ndescription:\\n\\n        /*\\n         * We hold RTNL, so this is safe, without RTNL opencount cannot\\n         * reach 0, and thus the rdev cannot be deleted.\\n         *\\n         * We need to do it for the dev_close(), since that will call\\n         * the netdev notifiers, and we need to acquire the mutex there\\n         * but don\u0027t know if we get there from here or from some other\\n         * place (e.g. \\\"ip link set ... down\\\").\\n         */\\n        mutex_unlock(\u0026rdev-\u003ewiphy.mtx);\\n...\\n\\nDo similarly for mwifiex teardown, by ensuring we bring the link down\\nfirst.\\n\\nSample deadlock trace:\\n\\n[  247.103516] INFO: task rmmod:2119 blocked for more than 123 seconds.\\n[  247.110630]       Not tainted 5.12.4 #5\\n[  247.115796] \\\"echo 0 \u003e /proc/sys/kernel/hung_task_timeout_secs\\\" disables this message.\\n[  247.124557] task:rmmod           state:D stack:    0 pid: 2119 ppid:  2114 flags:0x00400208\\n[  247.133905] Call trace:\\n[  247.136644]  __switch_to+0x130/0x170\\n[  247.140643]  __schedule+0x714/0xa0c\\n[  247.144548]  schedule_preempt_disabled+0x88/0xf4\\n[  247.149714]  __mutex_lock_common+0x43c/0x750\\n[  247.154496]  mutex_lock_nested+0x5c/0x68\\n[  247.158884]  cfg80211_netdev_notifier_call+0x280/0x4e0 [cfg80211]\\n[  247.165769]  raw_notifier_call_chain+0x4c/0x78\\n[  247.170742]  call_netdevice_notifiers_info+0x68/0xa4\\n[  247.176305]  __dev_close_many+0x7c/0x138\\n[  247.180693]  dev_close_many+0x7c/0x10c\\n[  247.184893]  unregister_netdevice_many+0xfc/0x654\\n[  247.190158]  unregister_netdevice_queue+0xb4/0xe0\\n[  247.195424]  _cfg80211_unregister_wdev+0xa4/0x204 [cfg80211]\\n[  247.201816]  cfg80211_unregister_wdev+0x20/0x2c [cfg80211]\\n[  247.208016]  mwifiex_del_virtual_intf+0xc8/0x188 [mwifiex]\\n[  247.214174]  mwifiex_uninit_sw+0x158/0x1b0 [mwifiex]\\n[  247.219747]  mwifiex_remove_card+0x38/0xa0 [mwifiex]\\n[  247.225316]  mwifiex_pcie_remove+0xd0/0xe0 [mwifiex_pcie]\\n[  247.231451]  pci_device_remove+0x50/0xe0\\n[  247.235849]  device_release_driver_internal+0x110/0x1b0\\n[  247.241701]  driver_detach+0x5c/0x9c\\n[  247.245704]  bus_remove_driver+0x84/0xb8\\n[  247.250095]  driver_unregister+0x3c/0x60\\n[  247.254486]  pci_unregister_driver+0x2c/0x90\\n[  247.259267]  cleanup_module+0x18/0xcdc [mwifiex_pcie]\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-11-04T12:04:12.235Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2021-47349\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-11-04T12:04:12.235Z\", \"dateReserved\": \"2024-05-21T14:28:16.983Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-21T14:35:54.314Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

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…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…